|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.swing.AbstractLayout
public abstract class AbstractLayout
AbstractLayout - support for DeckLayout.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormField Summary | |
---|---|
protected int |
hgap
horizontal gap |
protected int |
vgap
vertical gap |
Constructor Summary | |
---|---|
protected |
AbstractLayout()
Defaults the horizontal and vertical gaps to 0 |
protected |
AbstractLayout(int hgap,
int vgap)
Constructor that specifies the horizontal and vertical gaps |
Method Summary | |
---|---|
void |
addLayoutComponent(Component comp,
Object constraints)
Add the specified component from the layout. |
void |
addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
int |
getHgap()
Get the horizontal gap between components. |
float |
getLayoutAlignmentX(Container parent)
Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(Container parent)
Returns the alignment along the y axis. |
int |
getVgap()
Get the vertical gap between components. |
void |
invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
Dimension |
maximumLayoutSize(Container target)
Returns the maximum dimensions for this layout given the component in the specified target container. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
void |
setHgap(int gap)
Set the horizontal gap between components. |
void |
setVgap(int gap)
Set the vertical gap between components. |
String |
toString()
Return a string representation of the layout manager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.LayoutManager |
---|
layoutContainer, minimumLayoutSize, preferredLayoutSize |
Field Detail |
---|
protected int hgap
protected int vgap
Constructor Detail |
---|
protected AbstractLayout()
protected AbstractLayout(int hgap, int vgap)
Method Detail |
---|
public final int getHgap()
public final int getVgap()
public final void setHgap(int gap)
gap
- The horizontal gap to be setpublic final void setVgap(int gap)
gap
- The vertical gap to be setpublic Dimension maximumLayoutSize(Container target)
maximumLayoutSize
in interface LayoutManager2
target
- The component which needs to be laid outpublic float getLayoutAlignmentX(Container parent)
getLayoutAlignmentX
in interface LayoutManager2
public float getLayoutAlignmentY(Container parent)
getLayoutAlignmentY
in interface LayoutManager2
public void invalidateLayout(Container target)
invalidateLayout
in interface LayoutManager2
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
name
- The name of the componentcomp
- The component to be addedpublic void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent
in interface LayoutManager2
comp
- The component to be addedconstraints
- The constraints to apply when laying out.public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
comp
- the component to be removedpublic String toString()
toString
in class Object
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |