|
||||||||||
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
apps.threedbuttonsexperiment.calculator.button.ButtonNode
public class ButtonNode
The Class ButtonNode.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme.scene.Spatial |
---|
com.jme.scene.Spatial.CullHint, com.jme.scene.Spatial.LightCombineMode, com.jme.scene.Spatial.NormalsMode, com.jme.scene.Spatial.TextureCombineMode |
Field Summary | |
---|---|
static java.lang.String |
FEEDBACK_MODE_3D
The Constant FEEDBACK_MODE_3D. |
static java.lang.String |
FEEDBACK_MODE_COLORHIGHLIGHTED
The Constant FEEDBACK_MODE_COLORHIGHLIGHTED. |
static java.lang.String |
FEEDBACK_MODE_NONE
The Constant FEEDBACK_MODE_NONE. |
Fields inherited from class com.jme.scene.Spatial |
---|
LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, queueDistance |
Constructor Summary | |
---|---|
ButtonNode(java.lang.String name,
float width,
float length,
float height,
float slope,
java.net.URL bgTexture,
java.net.URL textTexture,
java.net.URL highlightedTextureURL)
Instantiates a new button node. |
Method Summary | |
---|---|
void |
addKeyListener(KeyListener listener)
Adds the key listener. |
float |
getZvalueOfButtonLabel()
Gets the zvalue of button label. |
void |
setButtonBodyVisability(boolean b)
Sets the button body visability. |
void |
setFeedbackMode(java.lang.String feedbackMode)
Sets the feedback mode. |
void |
setZvalueOfButtonLabel(float zvalueOfButtonLabel)
Sets the zvalue of button label. |
Methods inherited from class com.jme.scene.Node |
---|
attachChild, attachChildAt, childChange, detachAllChildren, detachChild, detachChildAt, detachChildNamed, draw, findCollisions, findPick, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, hasCollision, lockBounds, lockMeshes, lockShadows, lockTransforms, read, setModelBound, sortLights, swapChildren, unlockBounds, unlockMeshes, unlockShadows, unlockTransforms, updateModelBound, updateWorldBound, updateWorldData, updateWorldVectors, write |
Methods inherited from class com.jme.scene.Spatial |
---|
addController, calculateCollisions, calculatePick, clearControllers, clearRenderState, clearRenderState, getClassTag, getController, getControllerCount, getControllers, getCullHint, getLastFrustumIntersection, getLightCombineMode, getLocalCullHint, getLocalLightCombineMode, getLocalNormalsMode, getLocalRenderQueueMode, getLocalRotation, getLocalScale, getLocalTextureCombineMode, getLocalToWorldMatrix, getLocalTranslation, getLocks, getName, getNormalsMode, getParent, getRenderQueueMode, getRenderState, getRenderState, getTextureCombineMode, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, hasAncestor, isCollidable, localToWorld, lock, lock, lockBranch, lockMeshes, lookAt, onDraw, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeController, removeFromParent, removeUserData, rotateUpTo, setCullHint, setIsCollidable, setLastFrustumIntersection, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setLocalTranslation, setLocks, setLocks, setName, setNormalsMode, setRenderQueueMode, setRenderState, setTextureCombineMode, setUserData, setZOrder, setZOrder, toString, unlock, unlock, unlockBranch, unlockMeshes, updateGeometricState, updateRenderState, updateWorldVectors, worldToLocal |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jme.util.export.Savable |
---|
getClassTag |
Field Detail |
---|
public static final java.lang.String FEEDBACK_MODE_3D
public static final java.lang.String FEEDBACK_MODE_COLORHIGHLIGHTED
public static final java.lang.String FEEDBACK_MODE_NONE
Constructor Detail |
---|
public ButtonNode(java.lang.String name, float width, float length, float height, float slope, java.net.URL bgTexture, java.net.URL textTexture, java.net.URL highlightedTextureURL)
name
- the namewidth
- the widthlength
- the lengthheight
- the heightslope
- the slopebgTexture
- the bg texturetextTexture
- the text texturehighlightedTextureURL
- the highlighted texture urlMethod Detail |
---|
public void addKeyListener(KeyListener listener)
listener
- the listenerpublic float getZvalueOfButtonLabel()
public void setButtonBodyVisability(boolean b)
b
- the new button body visabilitypublic void setFeedbackMode(java.lang.String feedbackMode)
feedbackMode
- the new feedback modepublic void setZvalueOfButtonLabel(float zvalueOfButtonLabel)
zvalueOfButtonLabel
- the new zvalue of button label
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |