|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esotericsoftware.tablelayout.Value
public abstract class Value
Base class for a table or cell property value. Values are provided a table or cell for context. Eg, the value may compute its size taking into consideration the size of the table or the widget in the cell. Some values may be only valid for use with either call.
Nested Class Summary | |
---|---|
static class |
Value.CellValue
A value that is only valid for use with a cell. |
static class |
Value.FixedValue
A fixed value that is not computed each time it is used. |
static class |
Value.TableValue
A value that is valid for use with a table or a cell. |
Field Summary | |
---|---|
static Value |
maxHeight
Value for a cell that is the maxHeight of the widget in the cell. |
static Value |
maxWidth
Value for a cell that is the maxWidth of the widget in the cell. |
static Value |
minHeight
Value for a cell that is the minHeight of the widget in the cell. |
static Value |
minWidth
Value for a cell that is the minWidth of the widget in the cell. |
static Value |
prefHeight
Value for a cell that is the prefHeight of the widget in the cell. |
static Value |
prefWidth
Value for a cell that is the prefWidth of the widget in the cell. |
static Value |
zero
A value that is always zero. |
Constructor Summary | |
---|---|
Value()
|
Method Summary | |
---|---|
abstract float |
get(Cell cell)
Returns the value in the context of the specified cell. |
abstract float |
get(Object table)
Returns the value in the context of the specified table. |
float |
height(Cell cell)
Returns the value in the context of a height for the specified cell. |
float |
height(Object table)
Returns the value in the context of a height for the specified table. |
static Value |
percentHeight(float percent)
Returns a value that is a percentage of the table's height. |
static Value |
percentHeight(float percent,
Object widget)
Returns a value that is a percentage of the specified widget's height. |
static Value |
percentWidth(float percent)
Returns a value that is a percentage of the table's width. |
static Value |
percentWidth(float percent,
Object widget)
Returns a value that is a percentage of the specified widget's width. |
float |
width(Cell cell)
Returns the value in the context of a width for the specified cell. |
float |
width(Object table)
Returns the value in the context of a width for the specified table. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Value zero
public static Value minWidth
public static Value minHeight
public static Value prefWidth
public static Value prefHeight
public static Value maxWidth
public static Value maxHeight
Constructor Detail |
---|
public Value()
Method Detail |
---|
public abstract float get(Object table)
public abstract float get(Cell cell)
public float width(Object table)
public float height(Object table)
public float width(Cell cell)
public float height(Cell cell)
public static Value percentWidth(float percent)
public static Value percentHeight(float percent)
public static Value percentWidth(float percent, Object widget)
public static Value percentHeight(float percent, Object widget)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |