|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esotericsoftware.tablelayout.Cell<C>
public class Cell<C>
A cell in a table.
Constructor Summary | |
---|---|
Cell()
|
Method Summary | |
---|---|
Cell |
align(Integer align)
Sets the alignment of the widget within the cell. |
Cell |
bottom()
Adds #BOTTOM and clears #TOP for the alignment of the widget within the cell. |
Cell |
center()
Sets the alignment of the widget within the cell to #CENTER . |
void |
clear()
Sets all constraint fields to null. |
Cell |
colspan(Integer colspan)
|
Cell |
expand()
Sets expandX and expandY to 1. |
Cell |
expand(boolean x,
boolean y)
Sets expandX and expandY to 1 if true, 0 if false. |
Cell |
expand(Integer x,
Integer y)
|
Cell |
expandX()
Sets expandX to 1. |
Cell |
expandY()
Sets expandY to 1. |
Cell |
fill()
Sets fillX and fillY to 1. |
Cell |
fill(boolean fill)
Sets fillX and fillY to 1 if true, 0 if false. |
Cell |
fill(boolean x,
boolean y)
Sets fillX and fillY to 1 if true, 0 if false. |
Cell |
fill(Float x,
Float y)
|
Cell |
fillX()
Sets fillX to 1. |
Cell |
fillY()
Sets fillY to 1. |
void |
free()
Reset state so the cell can be reused. |
Integer |
getAlign()
|
Integer |
getColspan()
|
int |
getColumn()
|
float |
getComputedPadBottom()
The actual amount of combined padding and spacing from the last layout. |
float |
getComputedPadLeft()
The actual amount of combined padding and spacing from the last layout. |
float |
getComputedPadRight()
The actual amount of combined padding and spacing from the last layout. |
float |
getComputedPadTop()
The actual amount of combined padding and spacing from the last layout. |
Integer |
getExpandX()
|
Integer |
getExpandY()
|
Float |
getFillX()
|
Float |
getFillY()
|
boolean |
getIgnore()
|
BaseTableLayout |
getLayout()
|
float |
getMaxHeight()
|
Value |
getMaxHeightValue()
|
float |
getMaxWidth()
|
Value |
getMaxWidthValue()
|
float |
getMinHeight()
|
Value |
getMinHeightValue()
|
float |
getMinWidth()
|
Value |
getMinWidthValue()
|
float |
getPadBottom()
|
Value |
getPadBottomValue()
|
float |
getPadLeft()
|
Value |
getPadLeftValue()
|
float |
getPadRight()
|
Value |
getPadRightValue()
|
float |
getPadTop()
|
Value |
getPadTopValue()
|
float |
getPrefHeight()
|
Value |
getPrefHeightValue()
|
float |
getPrefWidth()
|
Value |
getPrefWidthValue()
|
int |
getRow()
|
float |
getSpaceBottom()
|
Value |
getSpaceBottomValue()
|
float |
getSpaceLeft()
|
Value |
getSpaceLeftValue()
|
float |
getSpaceRight()
|
Value |
getSpaceRightValue()
|
float |
getSpaceTop()
|
Value |
getSpaceTopValue()
|
Boolean |
getUniformX()
|
Boolean |
getUniformY()
|
C |
getWidget()
Returns the widget for this cell, or null. |
float |
getWidgetHeight()
|
float |
getWidgetWidth()
|
float |
getWidgetX()
|
float |
getWidgetY()
|
boolean |
hasWidget()
Returns true if the cell's widget is not null. |
Cell |
height(float height)
Sets the minHeight, prefHeight, and maxHeight to the specified value. |
Cell |
height(Value height)
Sets the minHeight, prefHeight, and maxHeight to the specified value. |
Cell |
ignore()
Sets ignore to true. |
Cell |
ignore(Boolean ignore)
|
boolean |
isEndRow()
Returns true if this cell is the last cell in the row. |
Cell |
left()
Adds #LEFT and clears #RIGHT for the alignment of the widget within the cell. |
Cell |
maxHeight(float maxHeight)
|
Cell |
maxHeight(Value maxHeight)
|
Cell |
maxSize(float size)
Sets the maxWidth and maxHeight to the specified value. |
Cell |
maxSize(float width,
float height)
Sets the maxWidth and maxHeight to the specified values. |
Cell |
maxSize(Value size)
Sets the maxWidth and maxHeight to the specified value. |
Cell |
maxSize(Value width,
Value height)
Sets the maxWidth and maxHeight to the specified values. |
Cell |
maxWidth(float maxWidth)
|
Cell |
maxWidth(Value maxWidth)
|
Cell |
minHeight(float minHeight)
|
Cell |
minHeight(Value minHeight)
|
Cell |
minSize(float size)
Sets the minWidth and minHeight to the specified value. |
Cell |
minSize(float width,
float height)
Sets the minWidth and minHeight to the specified values. |
Cell |
minSize(Value size)
Sets the minWidth and minHeight to the specified value. |
Cell |
minSize(Value width,
Value height)
Sets the minWidth and minHeight to the specified values. |
Cell |
minWidth(float minWidth)
|
Cell |
minWidth(Value minWidth)
|
Cell |
pad(float pad)
Sets the padTop, padLeft, padBottom, and padRight to the specified value. |
Cell |
pad(float top,
float left,
float bottom,
float right)
|
Cell |
pad(Value pad)
Sets the padTop, padLeft, padBottom, and padRight to the specified value. |
Cell |
pad(Value top,
Value left,
Value bottom,
Value right)
|
Cell |
padBottom(float padBottom)
|
Cell |
padBottom(Value padBottom)
|
Cell |
padLeft(float padLeft)
|
Cell |
padLeft(Value padLeft)
|
Cell |
padRight(float padRight)
|
Cell |
padRight(Value padRight)
|
Cell |
padTop(float padTop)
|
Cell |
padTop(Value padTop)
|
Cell |
prefHeight(float prefHeight)
|
Cell |
prefHeight(Value prefHeight)
|
Cell |
prefSize(float size)
Sets the prefWidth and prefHeight to the specified values. |
Cell |
prefSize(float width,
float height)
Sets the prefWidth and prefHeight to the specified value. |
Cell |
prefSize(Value size)
Sets the prefWidth and prefHeight to the specified value. |
Cell |
prefSize(Value width,
Value height)
Sets the prefWidth and prefHeight to the specified values. |
Cell |
prefWidth(float prefWidth)
|
Cell |
prefWidth(Value prefWidth)
|
Cell |
right()
Adds #RIGHT and clears #LEFT for the alignment of the widget within the cell. |
Cell |
row()
|
void |
setLayout(BaseTableLayout layout)
|
Cell |
setWidget(C widget)
Sets the widget in this cell and adds the widget to the cell's table. |
void |
setWidgetBounds(float x,
float y,
float width,
float height)
|
void |
setWidgetHeight(float widgetHeight)
|
void |
setWidgetWidth(float widgetWidth)
|
void |
setWidgetX(float widgetX)
|
void |
setWidgetY(float widgetY)
|
Cell |
size(float size)
Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified value. |
Cell |
size(float width,
float height)
Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified values. |
Cell |
size(Value size)
Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified value. |
Cell |
size(Value width,
Value height)
Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified values. |
Cell |
space(float space)
Sets the spaceTop, spaceLeft, spaceBottom, and spaceRight to the specified value. |
Cell |
space(float top,
float left,
float bottom,
float right)
|
Cell |
space(Value space)
Sets the spaceTop, spaceLeft, spaceBottom, and spaceRight to the specified value. |
Cell |
space(Value top,
Value left,
Value bottom,
Value right)
|
Cell |
spaceBottom(float spaceBottom)
|
Cell |
spaceBottom(Value spaceBottom)
|
Cell |
spaceLeft(float spaceLeft)
|
Cell |
spaceLeft(Value spaceLeft)
|
Cell |
spaceRight(float spaceRight)
|
Cell |
spaceRight(Value spaceRight)
|
Cell |
spaceTop(float spaceTop)
|
Cell |
spaceTop(Value spaceTop)
|
Cell |
top()
Adds #TOP and clears #BOTTOM for the alignment of the widget within the cell. |
Cell |
uniform()
Sets uniformX and uniformY to true. |
Cell |
uniform(Boolean x,
Boolean y)
|
Cell |
uniformX()
Sets uniformX to true. |
Cell |
uniformY()
Sets uniformY to true. |
Cell |
width(float width)
Sets the minWidth, prefWidth, and maxWidth to the specified value. |
Cell |
width(Value width)
Sets the minWidth, prefWidth, and maxWidth to the specified value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cell()
Method Detail |
---|
public void setLayout(BaseTableLayout layout)
public Cell setWidget(C widget)
public C getWidget()
public boolean hasWidget()
public Cell size(Value size)
public Cell size(Value width, Value height)
public Cell size(float size)
public Cell size(float width, float height)
public Cell width(Value width)
public Cell width(float width)
public Cell height(Value height)
public Cell height(float height)
public Cell minSize(Value size)
public Cell minSize(Value width, Value height)
public Cell minWidth(Value minWidth)
public Cell minHeight(Value minHeight)
public Cell minSize(float size)
public Cell minSize(float width, float height)
public Cell minWidth(float minWidth)
public Cell minHeight(float minHeight)
public Cell prefSize(Value size)
public Cell prefSize(Value width, Value height)
public Cell prefWidth(Value prefWidth)
public Cell prefHeight(Value prefHeight)
public Cell prefSize(float width, float height)
public Cell prefSize(float size)
public Cell prefWidth(float prefWidth)
public Cell prefHeight(float prefHeight)
public Cell maxSize(Value size)
public Cell maxSize(Value width, Value height)
public Cell maxWidth(Value maxWidth)
public Cell maxHeight(Value maxHeight)
public Cell maxSize(float size)
public Cell maxSize(float width, float height)
public Cell maxWidth(float maxWidth)
public Cell maxHeight(float maxHeight)
public Cell space(Value space)
public Cell space(Value top, Value left, Value bottom, Value right)
public Cell spaceTop(Value spaceTop)
public Cell spaceLeft(Value spaceLeft)
public Cell spaceBottom(Value spaceBottom)
public Cell spaceRight(Value spaceRight)
public Cell space(float space)
public Cell space(float top, float left, float bottom, float right)
public Cell spaceTop(float spaceTop)
public Cell spaceLeft(float spaceLeft)
public Cell spaceBottom(float spaceBottom)
public Cell spaceRight(float spaceRight)
public Cell pad(Value pad)
public Cell pad(Value top, Value left, Value bottom, Value right)
public Cell padTop(Value padTop)
public Cell padLeft(Value padLeft)
public Cell padBottom(Value padBottom)
public Cell padRight(Value padRight)
public Cell pad(float pad)
public Cell pad(float top, float left, float bottom, float right)
public Cell padTop(float padTop)
public Cell padLeft(float padLeft)
public Cell padBottom(float padBottom)
public Cell padRight(float padRight)
public Cell fill()
public Cell fillX()
public Cell fillY()
public Cell fill(Float x, Float y)
public Cell fill(boolean x, boolean y)
public Cell fill(boolean fill)
public Cell align(Integer align)
#CENTER
, #TOP
, #BOTTOM
, #LEFT
,
#RIGHT
, or any combination of those.
public Cell center()
#CENTER
. This clears any other alignment.
public Cell top()
#TOP
and clears #BOTTOM
for the alignment of the widget within the cell.
public Cell left()
#LEFT
and clears #RIGHT
for the alignment of the widget within the cell.
public Cell bottom()
#BOTTOM
and clears #TOP
for the alignment of the widget within the cell.
public Cell right()
#RIGHT
and clears #LEFT
for the alignment of the widget within the cell.
public Cell expand()
public Cell expandX()
public Cell expandY()
public Cell expand(Integer x, Integer y)
public Cell expand(boolean x, boolean y)
public Cell ignore(Boolean ignore)
public Cell ignore()
public boolean getIgnore()
public Cell colspan(Integer colspan)
public Cell uniform()
public Cell uniformX()
public Cell uniformY()
public Cell uniform(Boolean x, Boolean y)
public void setWidgetBounds(float x, float y, float width, float height)
public float getWidgetX()
public void setWidgetX(float widgetX)
public float getWidgetY()
public void setWidgetY(float widgetY)
public float getWidgetWidth()
public void setWidgetWidth(float widgetWidth)
public float getWidgetHeight()
public void setWidgetHeight(float widgetHeight)
public int getColumn()
public int getRow()
public Value getMinWidthValue()
public float getMinWidth()
public Value getMinHeightValue()
public float getMinHeight()
public Value getPrefWidthValue()
public float getPrefWidth()
public Value getPrefHeightValue()
public float getPrefHeight()
public Value getMaxWidthValue()
public float getMaxWidth()
public Value getMaxHeightValue()
public float getMaxHeight()
public Value getSpaceTopValue()
public float getSpaceTop()
public Value getSpaceLeftValue()
public float getSpaceLeft()
public Value getSpaceBottomValue()
public float getSpaceBottom()
public Value getSpaceRightValue()
public float getSpaceRight()
public Value getPadTopValue()
public float getPadTop()
public Value getPadLeftValue()
public float getPadLeft()
public Value getPadBottomValue()
public float getPadBottom()
public Value getPadRightValue()
public float getPadRight()
public Float getFillX()
public Float getFillY()
public Integer getAlign()
public Integer getExpandX()
public Integer getExpandY()
public Integer getColspan()
public Boolean getUniformX()
public Boolean getUniformY()
public boolean isEndRow()
public float getComputedPadTop()
public float getComputedPadLeft()
public float getComputedPadBottom()
public float getComputedPadRight()
public Cell row()
public BaseTableLayout getLayout()
public void clear()
public void free()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |