public class SpringGridLayout extends AbstractGuiComponent implements GuiLayout, java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
protected class |
SpringGridLayout.Entry |
Constructor and Description |
---|
SpringGridLayout() |
SpringGridLayout(Axis mainAxis,
Axis minorAxis) |
SpringGridLayout(Axis mainAxis,
Axis minorAxis,
FillMode mainFill,
FillMode minorFill) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAlternate(com.jme3.math.Vector3f v,
float f) |
<T extends com.jme3.scene.Node> |
addChild(int row,
int column,
T n) |
<T extends com.jme3.scene.Node> |
addChild(T n,
java.lang.Object... constraints) |
protected void |
addMajor(com.jme3.math.Vector3f v,
float f) |
protected void |
addMinor(com.jme3.math.Vector3f v,
float f) |
void |
attach(GuiControl parent) |
void |
calculatePreferredSize(com.jme3.math.Vector3f size) |
void |
clearChildren() |
SpringGridLayout |
clone() |
void |
detach(GuiControl parent) |
protected void |
distribute(float[] sizes,
float[] prefs,
float totalSize,
float totalPref,
FillMode fill,
Axis axis) |
protected float |
getAlternate(com.jme3.math.Vector3f v) |
com.jme3.scene.Node |
getChild(int row,
int column) |
java.util.Collection<com.jme3.scene.Node> |
getChildren() |
protected float |
getMajor(com.jme3.math.Vector3f v) |
protected float |
getMinor(com.jme3.math.Vector3f v) |
protected java.util.Map<java.lang.Integer,SpringGridLayout.Entry> |
getRow(int row,
boolean create) |
protected void |
invalidate() |
protected float |
refreshRowColPrefs()
Recalculates the internal arrays that keep track of the
preferred sizes for each row and collumn.
|
protected void |
remove(SpringGridLayout.Entry e) |
void |
removeChild(com.jme3.scene.Node n) |
void |
reshape(com.jme3.math.Vector3f pos,
com.jme3.math.Vector3f size) |
protected void |
setAlternate(com.jme3.math.Vector3f v,
float f) |
protected void |
setMajor(com.jme3.math.Vector3f v,
float f) |
protected void |
setMinor(com.jme3.math.Vector3f v,
float f) |
java.lang.String |
toString() |
protected float |
weighted(int index,
float pref,
float totalSize,
float totalPref,
int count,
FillMode fill,
Axis axis) |
getGuiControl, getNode, isAttached
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGuiControl, isAttached
public SpringGridLayout clone()
clone
in interface GuiComponent
clone
in interface GuiLayout
clone
in class AbstractGuiComponent
protected void invalidate()
invalidate
in class AbstractGuiComponent
protected final float getMajor(com.jme3.math.Vector3f v)
protected final float getMinor(com.jme3.math.Vector3f v)
protected final float getAlternate(com.jme3.math.Vector3f v)
protected final void setMajor(com.jme3.math.Vector3f v, float f)
protected final void setMinor(com.jme3.math.Vector3f v, float f)
protected final void setAlternate(com.jme3.math.Vector3f v, float f)
protected final void addMajor(com.jme3.math.Vector3f v, float f)
protected final void addMinor(com.jme3.math.Vector3f v, float f)
protected final void addAlternate(com.jme3.math.Vector3f v, float f)
protected float refreshRowColPrefs()
public void calculatePreferredSize(com.jme3.math.Vector3f size)
calculatePreferredSize
in interface GuiComponent
protected float weighted(int index, float pref, float totalSize, float totalPref, int count, FillMode fill, Axis axis)
protected void distribute(float[] sizes, float[] prefs, float totalSize, float totalPref, FillMode fill, Axis axis)
public void reshape(com.jme3.math.Vector3f pos, com.jme3.math.Vector3f size)
reshape
in interface GuiComponent
protected java.util.Map<java.lang.Integer,SpringGridLayout.Entry> getRow(int row, boolean create)
public <T extends com.jme3.scene.Node> T addChild(int row, int column, T n)
public <T extends com.jme3.scene.Node> T addChild(T n, java.lang.Object... constraints)
public com.jme3.scene.Node getChild(int row, int column)
public void removeChild(com.jme3.scene.Node n)
removeChild
in interface GuiLayout
public java.util.Collection<com.jme3.scene.Node> getChildren()
getChildren
in interface GuiLayout
public void clearChildren()
clearChildren
in interface GuiLayout
protected void remove(SpringGridLayout.Entry e)
public void attach(GuiControl parent)
attach
in interface GuiComponent
attach
in class AbstractGuiComponent
public void detach(GuiControl parent)
detach
in interface GuiComponent
detach
in class AbstractGuiComponent
public java.lang.String toString()
toString
in class java.lang.Object