|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.scenes.scene2d.ui.Container.CellProperties
public static class Container.CellProperties
Class specifying the layout of an Actor within a cell as well as the
behaviour of th cell within the entire layout. See http://code.google.com/p/table-layout/ as
well as the class documentation of Container
.
Constructor Summary | |
---|---|
Container.CellProperties(Cell cell)
|
Method Summary | |
---|---|
Container.CellProperties |
align(int align)
Sets the alignment of the Actor within the cell. |
Container.CellProperties |
colspan(int span)
Sets how many columns this cell should span in the layout. |
Container.CellProperties |
expand(boolean x,
boolean y)
Sets whether the cell should take up the remaining space on the x- and y-axis. |
Container.CellProperties |
expand(int x,
int y)
Lets the cell take up all remaining space, specifying the weighting of the cell for expansion, relative to the weights of the other cells in the layout. |
Container.CellProperties |
fill(boolean x,
boolean y)
Sets whether to let the contained Actor fill the entire cell on the x-
and y-axis. |
Container.CellProperties |
fill(float x,
float y)
Sets the percentage of space taken up by the contained Actor within the cell. |
Container.CellProperties |
maxSize(int width,
int height)
Sets the maximum size of the cell. |
Container.CellProperties |
minSize(int width,
int height)
Sets the minimum size of the cell. |
Container.CellProperties |
pad(int top,
int left,
int bottom,
int right)
Sets the padding on the top, left, bottom and right edge. |
Container.CellProperties |
padBottom(int bottom)
|
Container.CellProperties |
padLeft(int left)
|
Container.CellProperties |
padRight(int right)
|
Container.CellProperties |
padTop(int top)
|
Container.CellProperties |
spacing(int top,
int left,
int bottom,
int right)
Sets the spacing for the top, left, bottom and right edge of this cell. |
Container.CellProperties |
spacingBottom(int bottom)
|
Container.CellProperties |
spacingLeft(int left)
|
Container.CellProperties |
spacingRight(int right)
|
Container.CellProperties |
spacingTop(int top)
|
Container.CellProperties |
uniform(boolean x,
boolean y)
Cells marked as uniform on an axis will be the same size on that axis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Container.CellProperties(Cell cell)
Method Detail |
---|
public Container.CellProperties expand(boolean x, boolean y)
Actor
.
x
- if true, all horizontal space is taken up.y
- if true, all vertical space is taken up.
Container.CellProperties
for further manipulation.public Container.CellProperties expand(int x, int y)
expand(boolean, boolean)
method will
set the weights to 1.
x
- the weight on x for expansion.y
- the weight on y for expansion.
Container.CellProperties
for further manipulation.public Container.CellProperties fill(boolean x, boolean y)
Actor
fill the entire cell on the x-
and y-axis.
x
- if true, the Actor takes up all horizontal space in the cell.y
- if true, the Actor takes up all vertical space int he cell.
Container.CellProperties
for further manipulation.public Container.CellProperties fill(float x, float y)
Actor
within the cell. Values
have to be in the range 0.0f to 1.0f. A value of 0.0f will make the Actor use it's (preferred)
size.
x
- actor size between 0.0f to 1.0f on the x-axis (0-100% of the cell width)y
- actor size between 0.0f to 1.0f on the y-axis (0-100% of the cell height)
Container.CellProperties
for further manipulation.public Container.CellProperties align(int align)
Actor
within the cell. Use binary OR with the constants
BaseTableLayout.TOP
, BaseTableLayout.BOTTOM
, BaseTableLayout.LEFT
,
BaseTableLayout.RIGHT
, BaseTableLayout.CENTER
.
align
- the alignment.
Container.CellProperties
for further manipulation.public Container.CellProperties colspan(int span)
span
- number of columns to span.
Container.CellProperties
for further manipulation.public Container.CellProperties uniform(boolean x, boolean y)
x
- if true, this cell will be uniform on the x-axisy
- if true, this cell will be uniform on the y-axis
Container.CellProperties
for further manipulation.public Container.CellProperties pad(int top, int left, int bottom, int right)
top
- the top paddingleft
- the left paddingbottom
- the bottom paddingright
- the right padding
Container.CellProperties
for further manipulation.public Container.CellProperties padTop(int top)
top
- the top padding
Container.CellProperties
for further manipulation.public Container.CellProperties padLeft(int left)
left
- the left padding
Container.CellProperties
for further manipulation.public Container.CellProperties padBottom(int bottom)
bottom
- the bottom padding
Container.CellProperties
for further manipulation.public Container.CellProperties padRight(int right)
right
- the right padding
Container.CellProperties
for further manipulation.public Container.CellProperties spacing(int top, int left, int bottom, int right)
top
- the top spacingleft
- the left spacingbottom
- the bottom spacingright
- the right spacing
Container.CellProperties
for further manipulation.public Container.CellProperties spacingTop(int top)
top
- the top spacing
Container.CellProperties
for further manipulation.public Container.CellProperties spacingLeft(int left)
left
- the left spacing
Container.CellProperties
for further manipulation.public Container.CellProperties spacingBottom(int bottom)
bottom
- the bottom spacing
Container.CellProperties
for further manipulation.public Container.CellProperties spacingRight(int right)
right
- the right spacing
Container.CellProperties
for further manipulation.public Container.CellProperties minSize(int width, int height)
width
- the widthheight
- the height
Container.CellProperties
for further manipulation.public Container.CellProperties maxSize(int width, int height)
width
- the widthheight
- the height
Container.CellProperties
for further manipulation.
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |