|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Node
com.jme.ui.UIObject
com.jme.ui.UIActiveObject
| Field Summary | |
protected java.util.Vector |
_actions
|
protected UIActiveArea |
_hitArea
|
protected InputHandler |
_inputHandler
|
protected int |
_state
|
static int |
DOWN
|
static int |
DRAW_DOWN
|
static int |
DRAW_OVER
|
static int |
OVER
|
static int |
SELECTED
|
static int |
UP
|
| Fields inherited from class com.jme.ui.UIObject |
_bottomborder, _height, _leftborder, _quad, _rightborder, _textureStates, _topborder, _width, _x, _y, BORDER, INVERSE_BORDER, TEXTURE |
| Fields inherited from class com.jme.scene.Node |
children |
| Fields inherited from class com.jme.scene.Spatial |
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
| Constructor Summary | |
UIActiveObject(java.lang.String name,
int x,
int y,
int width,
int height,
InputHandler inputHandler,
UIColorScheme scheme,
int flags)
|
|
| Method Summary | |
void |
addAction(UIInputAction action)
Add an inputaction that will be fired when the control changes state |
void |
centerAt(int x,
int y)
Places the center of the control at the given screen location |
protected void |
fireActions()
When called, all registered actions will be fired using 'this' object as the reference from where the fire was called. |
int |
getState()
returns the current state of the control |
protected boolean |
hitTest()
Checks the hitarea for the mouse location |
void |
removeAction(UIInputAction action)
removes a given input action |
void |
setAltBorderColors()
|
void |
setBaseBorderColors()
|
void |
setBaseColors()
|
void |
setHighlightColors()
|
void |
setLocation(int x,
int y)
Moves the quad around the screen, properly setting local params at the same time. |
abstract boolean |
update(float time)
Abstract, must be implemented in the extentions |
| Methods inherited from class com.jme.ui.UIObject |
getHeight, getWidth, setup, usingBorders, usingInverseBorder, usingStdBorder, usingTexture |
| Methods inherited from class com.jme.scene.Node |
applyRenderState, attachChild, detachAllChildren, detachChild, detachChildAt, detachChildNamed, draw, drawBounds, findCollisions, findPick, getChild, getChild, getChildren, getQuantity, hasChild, hasCollision, putClone, setChild, setForceView, updateCollisionTree, updateWorldBound, updateWorldData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DRAW_DOWN
public static final int DRAW_OVER
public static final int UP
public static final int OVER
public static final int DOWN
public static final int SELECTED
protected int _state
protected java.util.Vector _actions
protected InputHandler _inputHandler
protected UIActiveArea _hitArea
| Constructor Detail |
public UIActiveObject(java.lang.String name,
int x,
int y,
int width,
int height,
InputHandler inputHandler,
UIColorScheme scheme,
int flags)
| Method Detail |
public void addAction(UIInputAction action)
action - public void removeAction(UIInputAction action)
action - protected void fireActions()
protected boolean hitTest()
public int getState()
public void centerAt(int x,
int y)
centerAt in class UIObject
public void setLocation(int x,
int y)
setLocation in class UIObjectpublic void setAltBorderColors()
public void setBaseBorderColors()
public void setHighlightColors()
public void setBaseColors()
public abstract boolean update(float time)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||