Class GridLayoutData

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

public class GridLayoutData extends Object implements UILayoutData
This class provides layout data for the GridLayout.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Default, no grow, no wrap, single span
    a shared GridLayoutData that just lets a component fill any extra space in the grid
    a shared GridLayoutData that just wraps the layout line after this component
    a shared GridLayoutData that just wraps the layout line after this component and let it fill the space
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    GridLayoutData(int span, boolean wrap, boolean grow)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
     
    boolean
     
    void
    setGrow(boolean grow)
     
    void
    setSpan(int span)
     
    void
    setWrap(boolean wrap)
     
    Span(int columns)
    create a new GridLayoutData that specifies the number of cells the component should use horizontally
    SpanAndWrap(int columns)
    create a new GridLayoutData that specifies the number of cells the component should use horizontally and that the layout line should wrap after this component

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • Default

      public static GridLayoutData Default
      Default, no grow, no wrap, single span
    • Wrap

      public static GridLayoutData Wrap
      a shared GridLayoutData that just wraps the layout line after this component
    • Grow

      public static GridLayoutData Grow
      a shared GridLayoutData that just lets a component fill any extra space in the grid
    • WrapAndGrow

      public static GridLayoutData WrapAndGrow
      a shared GridLayoutData that just wraps the layout line after this component and let it fill the space
  • Constructor Details

    • GridLayoutData

      public GridLayoutData()
    • GridLayoutData

      public GridLayoutData(int span, boolean wrap, boolean grow)
  • Method Details

    • isWrap

      public boolean isWrap()
    • setWrap

      public void setWrap(boolean wrap)
    • getSpan

      public int getSpan()
    • setSpan

      public void setSpan(int span)
    • isGrow

      public boolean isGrow()
    • setGrow

      public void setGrow(boolean grow)
    • Span

      public static GridLayoutData Span(int columns)
      create a new GridLayoutData that specifies the number of cells the component should use horizontally
      Parameters:
      columns - the number of columns
      Returns:
      the new GridLayoutData
    • SpanAndWrap

      public static GridLayoutData SpanAndWrap(int columns)
      create a new GridLayoutData that specifies the number of cells the component should use horizontally and that the layout line should wrap after this component
      Parameters:
      columns - the number of columns
      Returns:
      the new GridLayoutData