com.badlogic.gdx.scenes.scene2d.ui
Class TableToolkit

java.lang.Object
  extended by com.esotericsoftware.tablelayout.Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>
      extended by com.badlogic.gdx.scenes.scene2d.ui.TableToolkit

public class TableToolkit
extends Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

The libgdx implementation of the table layout functionality.

Author:
Nathan Sweet

Field Summary
 
Fields inherited from class com.esotericsoftware.tablelayout.Toolkit
instance
 
Constructor Summary
TableToolkit()
           
 
Method Summary
 void addChild(Actor parent, Actor child)
           
 void addDebugRectangle(com.badlogic.gdx.scenes.scene2d.ui.TableLayout layout, BaseTableLayout.Debug type, float x, float y, float w, float h)
          Adds a rectangle that should be drawn for debugging.
 void clearDebugRectangles(com.badlogic.gdx.scenes.scene2d.ui.TableLayout layout)
          Clears all debugging rectangles.
 void freeCell(Cell cell)
           
 float getHeight(Actor widget)
           
 float getMaxHeight(Actor actor)
           
 float getMaxWidth(Actor actor)
           
 float getMinHeight(Actor actor)
           
 float getMinWidth(Actor actor)
           
 float getPrefHeight(Actor actor)
           
 float getPrefWidth(Actor actor)
           
 float getWidth(Actor widget)
           
 Cell obtainCell(com.badlogic.gdx.scenes.scene2d.ui.TableLayout layout)
           
 void removeChild(Actor parent, Actor child)
           
 
Methods inherited from class com.esotericsoftware.tablelayout.Toolkit
height, setWidget, width
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableToolkit

public TableToolkit()
Method Detail

obtainCell

public Cell obtainCell(com.badlogic.gdx.scenes.scene2d.ui.TableLayout layout)
Specified by:
obtainCell in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

freeCell

public void freeCell(Cell cell)
Specified by:
freeCell in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

addChild

public void addChild(Actor parent,
                     Actor child)
Specified by:
addChild in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

removeChild

public void removeChild(Actor parent,
                        Actor child)
Specified by:
removeChild in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

getMinWidth

public float getMinWidth(Actor actor)
Specified by:
getMinWidth in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

getMinHeight

public float getMinHeight(Actor actor)
Specified by:
getMinHeight in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

getPrefWidth

public float getPrefWidth(Actor actor)
Specified by:
getPrefWidth in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

getPrefHeight

public float getPrefHeight(Actor actor)
Specified by:
getPrefHeight in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

getMaxWidth

public float getMaxWidth(Actor actor)
Specified by:
getMaxWidth in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

getMaxHeight

public float getMaxHeight(Actor actor)
Specified by:
getMaxHeight in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

getWidth

public float getWidth(Actor widget)
Specified by:
getWidth in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

getHeight

public float getHeight(Actor widget)
Specified by:
getHeight in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

clearDebugRectangles

public void clearDebugRectangles(com.badlogic.gdx.scenes.scene2d.ui.TableLayout layout)
Description copied from class: Toolkit
Clears all debugging rectangles.

Specified by:
clearDebugRectangles in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>

addDebugRectangle

public void addDebugRectangle(com.badlogic.gdx.scenes.scene2d.ui.TableLayout layout,
                              BaseTableLayout.Debug type,
                              float x,
                              float y,
                              float w,
                              float h)
Description copied from class: Toolkit
Adds a rectangle that should be drawn for debugging.

Specified by:
addDebugRectangle in class Toolkit<Actor,Table,com.badlogic.gdx.scenes.scene2d.ui.TableLayout>


Copyright © 2013. All Rights Reserved.