APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.scenes.scene2d.ui

public Class Cell<T extends Actor>

extends Object
implements Poolable
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.utils.Pool.Poolable
Imports
com.badlogic.gdx.Files, .Gdx, com.badlogic.gdx.scenes.scene2d.Actor, com.badlogic.gdx.scenes.scene2d.ui.Value.Fixed, com.badlogic.gdx.utils.Align, .Null, .Pool.Poolable

A cell for a Table.
Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
pack-priv Actor
pack-priv float
pack-priv float
pack-priv float
pack-priv float
pack-priv Integer
private static final Integer
pack-priv int
private static final Integer
pack-priv Integer
pack-priv int
pack-priv float
pack-priv float
pack-priv float
pack-priv float
private static Cell<T extends Actor>
pack-priv boolean
pack-priv Integer
pack-priv Integer
private static Files
pack-priv Float
pack-priv Float
private static final Integer
pack-priv Value
pack-priv Value
pack-priv Value
pack-priv Value
private static final Float
private static final Integer
pack-priv Value
pack-priv Value
pack-priv Value
pack-priv Value
pack-priv Value
pack-priv Value
private static final Integer
pack-priv int
pack-priv Value
pack-priv Value
pack-priv Value
pack-priv Value
private Table
private static final Integer
pack-priv Boolean
pack-priv Boolean
private static final Float
private static final Integer

Constructor Summary

AccessConstructor and Description
public
Cell()

Method Summary

Modifier and TypeMethod and Description
public Cell<T>
align(int align)

Sets the alignment of the actor within the cell.

public Cell<T>
bottom()

Adds Align#bottom and clears Align#top for the alignment of the actor within the cell.

public Cell<T>
center()

Sets the alignment of the actor within the cell to Align#center.

pack-priv void
clear()

Sets all constraint fields to null.

public Cell<T>
clearActor()

Removes the current actor for the cell, if any.

public Cell<T>
colspan(int colspan)

public static Cell<T extends Actor>
defaults()

Returns the defaults to use for all cells.

public Cell<T>
expand()

Sets expandX and expandY to 1.

public Cell<T>
expand(int x, int y)

public Cell<T>
expand(boolean x, boolean y)

Sets expandX and expandY to 1 if true, 0 if false.

public Cell<T>
expandX()

Sets expandX to 1.

public Cell<T>
expandY()

Sets expandY to 1.

public Cell<T>
fill()

Sets fillX and fillY to 1.

public Cell<T>
fill(float x, float y)

public Cell<T>
fill(boolean x, boolean y)

Sets fillX and fillY to 1 if true, 0 if false.

public Cell<T>
fill(boolean fill)

Sets fillX and fillY to 1 if true, 0 if false.

public Cell<T>
fillX()

Sets fillX to 1.

public Cell<T>
fillY()

Sets fillY to 1.

public T
getActor()

Returns the actor for this cell, or null.

public float
public float
public float
public float
public Integer
public Integer
public int
public float
getComputedPadBottom()

The actual amount of combined padding and spacing from the last layout.

public float
getComputedPadLeft()

The actual amount of combined padding and spacing from the last layout.

public float
getComputedPadRight()

The actual amount of combined padding and spacing from the last layout.

public float
getComputedPadTop()

The actual amount of combined padding and spacing from the last layout.

public Integer
public Integer
public Float
public Float
public float
public Value
getMaxHeightValue()

Returns: May be null if this cell is row defaults.

public float
public Value
getMaxWidthValue()

Returns: May be null if this cell is row defaults.

public float
public Value
getMinHeightValue()

Returns: May be null if this cell is row defaults.

public float
public Value
getMinWidthValue()

Returns: May be null if this cell is row defaults.

public float
public Value
getPadBottomValue()

Returns: May be null if this value is not set.

public float
public Value
getPadLeftValue()

Returns: May be null if this value is not set.

public float
public Value
getPadRightValue()

Returns: May be null if this value is not set.

public float
public Value
getPadTopValue()

Returns: May be null if this value is not set.

public float
public float
public float
public Value
getPrefHeightValue()

Returns: May be null if this cell is row defaults.

public float
public Value
getPrefWidthValue()

Returns: May be null if this cell is row defaults.

public int
public float
public Value
getSpaceBottomValue()

Returns: May be null if this value is not set.

public float
public Value
getSpaceLeftValue()

Returns: May be null if this value is not set.

public float
public Value
getSpaceRightValue()

Returns: May be null if this value is not set.

public float
public Value
getSpaceTopValue()

Returns: May be null if this value is not set.

public Table
public Boolean
public Boolean
public Cell<T>
grow()

Sets expandX, expandY, fillX, and fillY to 1.

public Cell<T>
growX()

Sets expandX and fillX to 1.

public Cell<T>
growY()

Sets expandY and fillY to 1.

public boolean
hasActor()

Returns true if the cell's actor is not null.

public Cell<T>
height(Value height)

Sets the minHeight, prefHeight, and maxHeight to the specified value.

public Cell<T>
height(float height)

Sets the minHeight, prefHeight, and maxHeight to the specified value.

public boolean
isEndRow()

Returns true if this cell is the last cell in the row.

public Cell<T>
left()

Adds Align#left and clears Align#right for the alignment of the actor within the cell.

public Cell<T>
maxHeight(Value maxHeight)

If the maxHeight is 0, no maximum height is used.

public Cell<T>
maxHeight(float maxHeight)

If the maxHeight is 0, no maximum height is used.

public Cell<T>
maxSize(Value size)

Sets the maxWidth and maxHeight to the specified value.

public Cell<T>
maxSize(Value width, Value height)

Sets the maxWidth and maxHeight to the specified values.

public Cell<T>
maxSize(float size)

Sets the maxWidth and maxHeight to the specified value.

public Cell<T>
maxSize(float width, float height)

Sets the maxWidth and maxHeight to the specified values.

public Cell<T>
maxWidth(Value maxWidth)

If the maxWidth is 0, no maximum width is used.

public Cell<T>
maxWidth(float maxWidth)

If the maxWidth is 0, no maximum width is used.

pack-priv void
merge(Cell<T extends Actor> cell)

public Cell<T>
minHeight(Value minHeight)

public Cell<T>
minHeight(float minHeight)

public Cell<T>
minSize(Value size)

Sets the minWidth and minHeight to the specified value.

public Cell<T>
minSize(Value width, Value height)

Sets the minWidth and minHeight to the specified values.

public Cell<T>
minSize(float size)

Sets the minWidth and minHeight to the specified value.

public Cell<T>
minSize(float width, float height)

Sets the minWidth and minHeight to the specified values.

public Cell<T>
minWidth(Value minWidth)

public Cell<T>
minWidth(float minWidth)

public Cell<T>
pad(Value pad)

Sets the padTop, padLeft, padBottom, and padRight to the specified value.

public Cell<T>
pad(Value top, Value left, Value bottom, Value right)

public Cell<T>
pad(float pad)

Sets the padTop, padLeft, padBottom, and padRight to the specified value.

public Cell<T>
pad(float top, float left, float bottom, float right)

public Cell<T>
padBottom(Value padBottom)

public Cell<T>
padBottom(float padBottom)

public Cell<T>
padLeft(Value padLeft)

public Cell<T>
padLeft(float padLeft)

public Cell<T>
padRight(Value padRight)

public Cell<T>
padRight(float padRight)

public Cell<T>
padTop(Value padTop)

public Cell<T>
padTop(float padTop)

public Cell<T>
prefHeight(Value prefHeight)

public Cell<T>
prefHeight(float prefHeight)

public Cell<T>
prefSize(Value size)

Sets the prefWidth and prefHeight to the specified value.

public Cell<T>
prefSize(Value width, Value height)

Sets the prefWidth and prefHeight to the specified values.

public Cell<T>
prefSize(float width, float height)

Sets the prefWidth and prefHeight to the specified value.

public Cell<T>
prefSize(float size)

Sets the prefWidth and prefHeight to the specified values.

public Cell<T>
prefWidth(Value prefWidth)

public Cell<T>
prefWidth(float prefWidth)

public void
reset()

Implements com.badlogic.gdx.utils.Pool.Poolable.reset.

Reset state so the cell can be reused, setting all constraints to their default values.

public Cell<T>
right()

Adds Align#right and clears Align#left for the alignment of the actor within the cell.

public void
row()

pack-priv void
set(Cell<T extends Actor> cell)

public <A extends Actor> Cell<A>
setActor(A newActor)

Sets the actor in this cell and adds the actor to the cell's table.

public void
setActorBounds(float x, float y, float width, float height)

public void
setActorHeight(float actorHeight)

public void
setActorWidth(float actorWidth)

public void
setActorX(float actorX)

public void
setActorY(float actorY)

public void
setTable(Table table)

public Cell<T>
size(Value size)

Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified value.

public Cell<T>
size(Value width, Value height)

Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified values.

public Cell<T>
size(float size)

Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified value.

public Cell<T>
size(float width, float height)

Sets the minWidth, prefWidth, maxWidth, minHeight, prefHeight, and maxHeight to the specified values.

public Cell<T>
space(Value space)

Sets the spaceTop, spaceLeft, spaceBottom, and spaceRight to the specified value.

public Cell<T>
space(Value top, Value left, Value bottom, Value right)

public Cell<T>
space(float space)

Sets the spaceTop, spaceLeft, spaceBottom, and spaceRight to the specified value.

public Cell<T>
space(float top, float left, float bottom, float right)

The space cannot be < 0.

public Cell<T>
spaceBottom(Value spaceBottom)

public Cell<T>
spaceBottom(float spaceBottom)

The space cannot be < 0.

public Cell<T>
spaceLeft(Value spaceLeft)

public Cell<T>
spaceLeft(float spaceLeft)

The space cannot be < 0.

public Cell<T>
spaceRight(Value spaceRight)

public Cell<T>
spaceRight(float spaceRight)

The space cannot be < 0.

public Cell<T>
spaceTop(Value spaceTop)

public Cell<T>
spaceTop(float spaceTop)

The space cannot be < 0.

public Cell<T>
top()

Adds Align#top and clears Align#bottom for the alignment of the actor within the cell.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public Cell<T>
uniform()

Sets uniformX and uniformY to true.

public Cell<T>
uniform(boolean uniform)

public Cell<T>
uniform(boolean x, boolean y)

public Cell<T>
uniformX()

Sets uniformX to true.

public Cell<T>
uniformY()

Sets uniformY to true.

public Cell<T>
width(Value width)

Sets the minWidth, prefWidth, and maxWidth to the specified value.

public Cell<T>
width(float width)

Sets the minWidth, prefWidth, and maxWidth to the specified value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait