Package com.ardor3d.extension.ui.layout
Class GridLayoutData
java.lang.Object
com.ardor3d.extension.ui.layout.GridLayoutData
- All Implemented Interfaces:
UILayoutData
This class provides layout data for the GridLayout.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic GridLayoutDataDefault, no grow, no wrap, single spanstatic GridLayoutDataa shared GridLayoutData that just lets a component fill any extra space in the gridstatic GridLayoutDataa shared GridLayoutData that just wraps the layout line after this componentstatic GridLayoutDataa shared GridLayoutData that just wraps the layout line after this component and let it fill the space -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetSpan()booleanisGrow()booleanisWrap()voidsetGrow(boolean grow) voidsetSpan(int span) voidsetWrap(boolean wrap) static GridLayoutDataSpan(int columns) create a new GridLayoutData that specifies the number of cells the component should use horizontallystatic GridLayoutDataSpanAndWrap(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
-
Field Details
-
Default
Default, no grow, no wrap, single span -
Wrap
a shared GridLayoutData that just wraps the layout line after this component -
Grow
a shared GridLayoutData that just lets a component fill any extra space in the grid -
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
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
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
-