|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.programix.gui.layout.AnchorLayout
public class AnchorLayout
This LayoutManager lays out a single component
within a container "anchoring" it as specified by the AnchorPoint.
If at the time of layout there is more than one component in the container, only the first component is used (the others are ignored). If there are not any components in the container, this layout manger quietly does nothing.
AnchorPoint,
AnchorTableLayout,
FormLayout,
ColumnButtonLayout,
RowButtonLayout,
StackLayout,
Serialized Form| Field Summary | |
|---|---|
static AnchorPoint |
DEFAULT_ANCHOR_POINT
The default anchor point used when the container is larger than is needed for the child component. |
static int |
DEFAULT_BORDER_GAP
The default number of pixels to be placed around the outside of all the child component before the edge of the container. |
| Constructor Summary | |
|---|---|
AnchorLayout()
Creates a layout using the DEFAULT_ANCHOR_POINT
and the DEFAULT_BORDER_GAP. |
|
AnchorLayout(AnchorPoint anchorPoint)
Creates a layout using the specified anchor. |
|
AnchorLayout(int borderGap)
Creates a layout using the specified border. |
|
AnchorLayout(int borderGap,
AnchorPoint anchorPoint)
Creates a layout using the specified border size and anchor. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(String name,
Component comp)
Called by the graphical subsystem when a component is being added to the container. |
AnchorPoint |
getAnchorPoint()
Returns the region to cluster the single child component in when the container is bigger than the table requires. |
int |
getBorderGap()
Returns the number of pixels to pad the top, bottom, left, and right areas around the single child component. |
void |
layoutContainer(Container parent)
Called by the graphical subsystem when the container wants to re-layout the components within it. |
Dimension |
minimumLayoutSize(Container parent)
Called by the graphical subsystem when the container wants to know what to report its minimum size as. |
Dimension |
preferredLayoutSize(Container parent)
Called by the graphical subsystem when the container wants to know what to report its preferred size as. |
void |
removeLayoutComponent(Component comp)
Called by the graphical subsystem when a component is being removed from the container. |
void |
setAnchorPoint(AnchorPoint anchorPoint)
Changes the region to cluster the table in when the container is bigger than the table requires. |
void |
setBorderGap(int borderGap)
Changes the number of pixels to pad the top, bottom, left, and right areas around the single child component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final AnchorPoint DEFAULT_ANCHOR_POINT
AnchorPoint.NORTH.
public static final int DEFAULT_BORDER_GAP
| Constructor Detail |
|---|
public AnchorLayout(int borderGap,
AnchorPoint anchorPoint)
borderGap - - minimum blanks space around the outside of the
child component. See setBorderGap.anchorPoint - - region to anchor the component into when
there is extra space. See setAnchorPoint.public AnchorLayout(AnchorPoint anchorPoint)
DEFAULT_BORDER_GAP.
anchorPoint - - region to anchor the component into when
there is extra space. See setAnchorPoint.public AnchorLayout(int borderGap)
DEFAULT_ANCHOR_POINT.
borderGap - - minimum blanks space around the outside of the
child component. See setBorderGap.public AnchorLayout()
DEFAULT_ANCHOR_POINT
and the DEFAULT_BORDER_GAP.
| Method Detail |
|---|
public void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManager
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent in interface LayoutManagerpublic int getBorderGap()
Border).
public void setBorderGap(int borderGap)
Border).
Passed value is silently increased to 0 if a negative gap
is specified.
public AnchorPoint getAnchorPoint()
public void setAnchorPoint(AnchorPoint anchorPoint)
DEFAULT_ANCHOR_POINT will
be used instead.
|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||