Children added with add(Actor. (and similar methods returning a Cell) are laid out in rows and columns.
Other children may be added with addActor(Actor) (and similar methods) but are not laid out automatically and don't
affect the preferred or minimum sizes.
By default, getTouchable() is Touchable#childrenOnly.
The preferred and minimum sizes are that of the children laid out in columns and rows.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv Drawable | |
| public static Value | backgroundBottom
Value that is the bottom padding of the table's background. |
| public static Value | backgroundLeft
Value that is the left padding of the table's background. |
| public static Value | backgroundRight
Value that is the right padding of the table's background. |
| public static Value | backgroundTop
Value that is the top padding of the table's background. |
| private final Cell | |
| pack-priv static final Pool | |
| private final Array | |
| private boolean | |
| private final Array | |
| private float[] | |
| private float[] | |
| private int | |
| private static float[] | |
| private float[] | |
| pack-priv Table. | |
| public static Color | |
| public static Color | |
| pack-priv Array | |
| public static Color | |
| private float[] | |
| private float[] | |
| private boolean | |
| pack-priv Value | |
| pack-priv Value | |
| pack-priv Value | |
| pack-priv Value | |
| pack-priv boolean | |
| private Cell | |
| private float[] | |
| private float[] | |
| private float[] | |
| private int | |
| private static float[] | |
| private boolean | |
| private Skin | |
| private float | |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Table(Skin skin)
Creates a table with a skin, which is required to use |
| Modifier and Type | Method and Description |
|---|---|
| public <T extends Actor> Cell | |
| public Table | |
| public Cell | |
| public Cell | |
| public Cell | |
| public Cell | |
| public Cell | |
| private void | |
| private void | |
| public Table | |
| public Table | |
| public Table | |
| public Table | bottom()
Adds |
| public Table | |
| public void | clearChildren(boolean unfocus)
Overrides com. Removes all actors and cells from the table. |
| private void | |
| public Table | |
| public Table | |
| public Cell | columnDefaults(int column)
Gets the cell values that will be used as the defaults for all cells in the specified column. |
| private void | |
| public Table | |
| public Table | |
| public Table | |
| public Table | debugAll()
Overrides com. Calls |
| public Table | |
| public Table | |
| public Cell | |
| public void | draw(Batch batch, float parentAlpha)
Overrides com. If this method is overridden, the super method or |
| protected void | drawBackground(Batch batch, float parentAlpha, float x, float y)
Called to draw the background, before clipping is applied (if enabled). |
| public void | drawDebug(ShapeRenderer shapes)
Overrides com. Draws this actor's debug lines if |
| protected void | drawDebugBounds(ShapeRenderer shapes)
Overrides com. Draws a rectangle for the bounds of this actor if |
| private void | |
| private void | |
| private float[] | |
| public int | |
| public Drawable | |
| public <T extends Actor> Cell | |
| public Array | |
| public boolean | |
| public float | |
| public float | |
| public int | |
| public float | getColumnWidth(int columnIndex)
Returns the width of the specified column, or 0 if the table layout has not been validated. |
| public float | |
| public float | |
| public float | |
| public Value | |
| public float | |
| public Value | |
| public float | |
| public Value | |
| public float | |
| public Value | |
| public float | |
| public float | |
| public float | |
| public float | |
| public int | getRow(float
The y coordinate, where 0 is the top of the table. y)Returns the row index for the y coordinate, or -1 if not over a row. |
| public float | getRowHeight(int rowIndex)
Returns the height of the specified row, or 0 if the table layout has not been validated. |
| public float | |
| public float | |
| public int | |
| public Skin | getSkin()
Returns: The skin that was passed to this table in its constructor, or null if none was given. |
| public Table. | |
| public Actor | hit(float x, float y, boolean touchable)
Overrides com. If this method is overridden, the super method or |
| public void | invalidate()
Overrides com. Implements com. Invalidates this actor's layout, causing |
| public void | layout()
Overrides com. Implements com. Positions and sizes children of the table using the cell associated with each child. |
| public Table | left()
Adds |
| private Cell | |
| public Table | |
| public Table | |
| public Table | pad(float pad)
Sets the padTop, padLeft, padBottom, and padRight around the table to the specified value. |
| public Table | |
| public Table | |
| public Table | |
| public Table | |
| public Table | |
| public Table | |
| public Table | |
| public Table | |
| public Table | |
| public boolean | removeActor(Actor actor)
Overrides com. Removes an actor from this group and unfocuses it. |
| public boolean | removeActor(Actor actor, boolean unfocus)
Overrides com. Removes an actor from this group. |
| public Actor | removeActorAt(int index, boolean unfocus)
Overrides com. Removes an actor from this group. |
| public void | reset()
Removes all actors and cells from the table (same as |
| public Table | right()
Adds |
| public Cell | row()
Indicates that subsequent cells should be added to a new row and returns the cell values that will be used as the defaults for all cells in the new row. |
| public void | setBackground(String drawableName)
Sets the background drawable from the skin and adjusts the table's padding to match the background. |
| public void | |
| public void | |
| public void | setDebug(boolean enabled)
Overrides com. If true, |
| public void | setRound(boolean round)
If true (the default), positions and sizes of child actors are rounded and ceiled to the nearest integer value. |
| public void | |
| public Cell | |
| public Table | top()
Adds |