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
Modifier and TypeFieldDescriptionstatic GridLayoutData
Default, no grow, no wrap, single spanstatic GridLayoutData
a shared GridLayoutData that just lets a component fill any extra space in the gridstatic GridLayoutData
a shared GridLayoutData that just wraps the layout line after this componentstatic GridLayoutData
a shared GridLayoutData that just wraps the layout line after this component and let it fill the space -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getSpan()
boolean
isGrow()
boolean
isWrap()
void
setGrow
(boolean grow) void
setSpan
(int span) void
setWrap
(boolean wrap) static GridLayoutData
Span
(int columns) create a new GridLayoutData that specifies the number of cells the component should use horizontallystatic 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
-
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
-