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
ConstructorsConstructorDescriptionAnchorLayoutData(Alignment myPoint, UIComponent parent, Alignment parentPoint, int xOffset, int yOffset) Construct a new AnchorLayoutData using the provided values. -
Method Summary
Modifier and TypeMethodDescriptionintintvoidsetMyPoint(Alignment myPoint) voidsetParent(UIComponent parent) voidsetParentPoint(Alignment parentPoint) voidsetXOffset(int offset) voidsetYOffset(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)
-