Class AnchorLayoutData

java.lang.Object
com.ardor3d.extension.ui.layout.AnchorLayoutData
All Implemented Interfaces:
UILayoutData

public class AnchorLayoutData extends Object implements UILayoutData
A data class that is used in conjunction with AnchorLayout.
See Also:
  • 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 at
      parent - the component or container to align to
      parentPoint - the point on the parent to align my point to
      xOffset - 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

      public Alignment getMyPoint()
      Returns:
      the point on our component to align at
    • setMyPoint

      public void setMyPoint(Alignment myPoint)
    • getParent

      public UIComponent getParent()
      Returns:
      the component or container to align to
    • setParent

      public void setParent(UIComponent parent)
    • getParentPoint

      public Alignment getParentPoint()
      Returns:
      the point on the parent to align my point to
    • setParentPoint

      public void setParentPoint(Alignment parentPoint)
    • 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)