Package com.ardor3d.extension.ui.layout
Class AnchorLayoutData
java.lang.Object
com.ardor3d.extension.ui.layout.AnchorLayoutData
- All Implemented Interfaces:
UILayoutData
A data class that is used in conjunction with AnchorLayout.
- See Also:
-
Constructor Summary
ConstructorDescriptionAnchorLayoutData
(Alignment myPoint, UIComponent parent, Alignment parentPoint, int xOffset, int yOffset) Construct a new AnchorLayoutData using the provided values. -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
setMyPoint
(Alignment myPoint) void
setParent
(UIComponent parent) void
setParentPoint
(Alignment parentPoint) void
setXOffset
(int offset) void
setYOffset
(int offset)
-
Constructor Details
-
AnchorLayoutData
public AnchorLayoutData(Alignment myPoint, UIComponent parent, Alignment parentPoint, int xOffset, int yOffset) Construct a new AnchorLayoutData using the provided values.- Parameters:
myPoint
- the point on our component to align atparent
- the component or container to align toparentPoint
- the point on the parent to align my point toxOffset
- a value added to our component's x position after the alignment is done.yOffset
- a value added to our component's y position after the alignment is done.
-
-
Method Details
-
getMyPoint
- Returns:
- the point on our component to align at
-
setMyPoint
-
getParent
- Returns:
- the component or container to align to
-
setParent
-
getParentPoint
- Returns:
- the point on the parent to align my point to
-
setParentPoint
-
getXOffset
public int getXOffset()- Returns:
- a value added to our component's x position after the alignment is done
-
setXOffset
public void setXOffset(int offset) -
getYOffset
public int getYOffset()- Returns:
- a value added to our component's y position after the alignment is done.
-
setYOffset
public void setYOffset(int offset)
-