|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.widget.WidgetAbstractImpl
com.jme.widget.text.WidgetText
| Field Summary | |
protected AlphaState |
alphaState
|
protected TextureState |
textureState
|
| Fields inherited from class com.jme.widget.WidgetAbstractImpl |
alignment, bgColor, border, cantOwnMouse, DEFAULT_BORDER_SIZE, DEFAULT_COMP_HEIGHT, DEFAULT_COMP_WIDTH, defaultBgColor, defaultFgColor, fgColor, localBound, notifierMouseButtonDown, notifierMouseButtonUp, notifierMouseDrag, notifierMouseEnter, notifierMouseExit, notifierMouseMove, opaque, preferredSize, textureCoords, viewRectangle, visible, zOrder |
| 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 |
| Constructor Summary | |
WidgetText()
|
|
WidgetText(java.lang.String text)
|
|
WidgetText(java.lang.String text,
WidgetAlignmentType alignment)
|
|
| Method Summary | |
protected void |
applyRenderState(java.util.Stack[] states)
Called during updateRenderState(Stack[]), this function determines how the render states are actually applied to the spatial and any children it may have. |
void |
applyStates()
setStates applies all the render states for this
particular geometry. |
void |
doMouseButtonDown()
doMouseButtonDown |
void |
doMouseButtonUp()
doMouseButtonUp |
void |
draw(Renderer r)
draw abstract method that handles drawing data to the
renderer if it is geometry and passing the call to it's children if it is
a node. |
void |
drawBounds(Renderer r)
drawBounds abstract method that handles drawing bounds
data to the renderer if it is geometry and passing the call to it's
children if it is a node. |
void |
findCollisions(Spatial scene,
CollisionResults results)
checks this spatial against a second spatial, any collisions are stored in the results object. |
void |
findPick(Ray toTest,
PickResults results)
|
WidgetFont |
getFont()
|
java.lang.String |
getFontName()
|
float |
getScale()
|
java.lang.String |
getText()
|
boolean |
hasCollision(Spatial scene,
boolean checkTriangles)
|
void |
initWidgetRenderer()
initWidgetRenderer |
void |
onDraw(Renderer r)
onDraw checks the node with the camera to see if it should
be culled, if not, the node's draw method is called. |
void |
setFont(WidgetFont font)
|
void |
setForceView(boolean value)
setForceView will force the node to be rendered whether
it's in the camera frustum or not. |
void |
setLocation(int x,
int y)
setLocation |
void |
setLocation(Vector2f at)
setLocation |
void |
setPreferredSize(Vector2f size)
setPreferredSize |
void |
setScale(float f)
|
void |
setSize(int width,
int height)
setSize |
void |
setSize(Vector2f size)
setSize |
void |
setText(java.lang.String string)
|
void |
setX(int x)
setX |
void |
setY(int y)
setY |
java.lang.String |
toString()
Returns the Spatial's name followed by the class of the spatial Example: "MyNode (com.jme.scene.Spatial) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected TextureState textureState
protected AlphaState alphaState
| Constructor Detail |
public WidgetText()
public WidgetText(java.lang.String text)
public WidgetText(java.lang.String text,
WidgetAlignmentType alignment)
| Method Detail |
public java.lang.String toString()
Spatial
toString in class WidgetAbstractImplpublic java.lang.String getText()
public void setText(java.lang.String string)
public void onDraw(Renderer r)
SpatialonDraw checks the node with the camera to see if it should
be culled, if not, the node's draw method is called.
onDraw in class WidgetAbstractImplSpatial.onDraw(com.jme.renderer.Renderer)public void applyStates()
setStates applies all the render states for this
particular geometry.
public void draw(Renderer r)
Spatialdraw abstract method that handles drawing data to the
renderer if it is geometry and passing the call to it's children if it is
a node.
draw in class WidgetAbstractImplSpatial.draw(com.jme.renderer.Renderer)public void drawBounds(Renderer r)
SpatialdrawBounds abstract method that handles drawing bounds
data to the renderer if it is geometry and passing the call to it's
children if it is a node.
drawBounds in class Spatialr - the renderer used for display.public float getScale()
public void setScale(float f)
public void doMouseButtonDown()
WidgetMouseHandlerInterfacedoMouseButtonDown
doMouseButtonDown in interface WidgetMouseHandlerInterfacedoMouseButtonDown in class WidgetAbstractImplpublic void doMouseButtonUp()
WidgetMouseHandlerInterfacedoMouseButtonUp
doMouseButtonUp in interface WidgetMouseHandlerInterfacedoMouseButtonUp in class WidgetAbstractImplpublic void setSize(Vector2f size)
WidgetsetSize
setSize in interface WidgetsetSize in class WidgetAbstractImpl
public void setSize(int width,
int height)
WidgetsetSize
setSize in interface WidgetsetSize in class WidgetAbstractImplpublic void setPreferredSize(Vector2f size)
WidgetsetPreferredSize
setPreferredSize in interface WidgetsetPreferredSize in class WidgetAbstractImplpublic java.lang.String getFontName()
public void setLocation(int x,
int y)
WidgetsetLocation
setLocation in interface WidgetsetLocation in class WidgetAbstractImplpublic void setLocation(Vector2f at)
WidgetsetLocation
setLocation in interface WidgetsetLocation in class WidgetAbstractImplpublic void setX(int x)
WidgetsetX
setX in interface WidgetsetX in class WidgetAbstractImplpublic void setY(int y)
WidgetsetY
setY in interface WidgetsetY in class WidgetAbstractImplpublic WidgetFont getFont()
public void setFont(WidgetFont font)
public void initWidgetRenderer()
initWidgetRenderer
Widget.initWidgetRenderer()public void setForceView(boolean value)
SpatialsetForceView will force the node to be rendered whether
it's in the camera frustum or not.
setForceView in class Spatialvalue - true to force viewing, false otherwise.protected void applyRenderState(java.util.Stack[] states)
Spatial
applyRenderState in class Spatialstates - An array of stacks for each state.
public void findCollisions(Spatial scene,
CollisionResults results)
Spatial
findCollisions in class Spatialscene - the scene to test against.results - the results of the collisions.
public boolean hasCollision(Spatial scene,
boolean checkTriangles)
hasCollision in class Spatial
public void findPick(Ray toTest,
PickResults results)
findPick in class Spatial
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||