com.jmex.bui
Class PolledRootNode

java.lang.Object
  extended by com.jme.scene.SceneElement
      extended by com.jme.scene.Spatial
          extended by com.jme.scene.Geometry
              extended by com.jmex.bui.BRootNode
                  extended by com.jmex.bui.PolledRootNode
All Implemented Interfaces:
Savable, Serializable

public class PolledRootNode
extends BRootNode

Processes the polled input information available from the underlying input system into input events and dispatches those to the appropriate parties.

See Also:
Serialized Form

Field Summary
protected  InputHandler _handler
           
protected  ArrayList<BComponent> _invalidRoots
           
protected  KeyInputListener _keyListener
          This listener is notified when a key is pressed or released.
protected  MouseInputListener _mouseListener
          This listener is notified when the mouse is updated.
protected  long _nextRepeat
          This is used for key repeat.
protected  char _presschar
          This is used for key repeat.
protected  int _pressed
          This is used for key repeat.
protected  long _tickStamp
           
protected  Timer _timer
           
protected static int ANY_BUTTON_PRESSED
          Used to check whether any button remains pressed.
protected static long INITIAL_REPEAT_DELAY
           
protected static int[] KEY_MODIFIER_MAP
          Maps key codes to modifier flags.
protected static int[] MOUSE_MODIFIER_MAP
          Maps button indices to modifier flags.
protected static long SUBSEQ_REPEAT_DELAY
           
 
Fields inherited from class com.jmex.bui.BRootNode
_ccomponent, _defaults, _focus, _geomviews, _globals, _hcomponent, _lastMoveTime, _lastTipTime, _modalShade, _modifiers, _mouseX, _mouseY, _tipTime, _tipWidth, _tipwin, _windows, TIP_MODE_RESET
 
Fields inherited from class com.jme.scene.Geometry
batchList
 
Fields inherited from class com.jme.scene.Spatial
geometricalControllers, localRotation, localScale, localTranslation, parent, worldRotation, worldScale, worldTranslation
 
Fields inherited from class com.jme.scene.SceneElement
COMPOSITE_MESH, CULL_ALWAYS, CULL_DYNAMIC, CULL_INHERIT, CULL_NEVER, cullMode, frustrumIntersects, GEOMBATCH, GEOMETRY, isCollidable, lightCombineMode, LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, lockedMode, name, NM_GL_NORMALIZE_IF_SCALED, NM_GL_NORMALIZE_PROVIDED, NM_INHERIT, NM_OFF, NM_USE_PROVIDED, NODE, normalsMode, QUADBATCH, queueDistance, renderQueueMode, renderStateList, SHARED_MESH, SHAREDBATCH, SKY_BOX, TERRAIN_BLOCK, TERRAIN_PAGE, textureCombineMode, TRIANGLEBATCH, TRIMESH, worldBound, zOrder
 
Constructor Summary
PolledRootNode(Timer timer, InputHandler handler)
           
 
Method Summary
 long getTickStamp()
          Returns the current timestamp used to stamp event times.
 float getTooltipTimeout()
          Returns the tool tip timeout.
 void rootInvalidated(BComponent root)
          This is called by a window or a scroll pane when it has become invalid.
 void updateWorldData(float timePerFrame)
           
 
Methods inherited from class com.jmex.bui.BRootNode
addGlobalEventListener, addWindow, addWindow, clearTipWindow, dispatchEvent, draw, findCollisions, getFocus, getWindow, getWindowCount, hasCollision, isOnTop, mouseDidMove, onDraw, popDefaultEventTarget, pushDefaultEventTarget, registerGeomView, removeAllWindows, removeGlobalEventListener, removeWindow, renderModalShade, requestFocus, resortWindows, setFocus, setModalShade, setTooltipPreferredWidth, setTooltipTimeout, tipTextChanged, toString, unregisterGeomView, updateGeometricState, updateHoverComponent, windowDidMove
 
Methods inherited from class com.jme.scene.Geometry
addBatch, applyRenderState, clearBatches, clearBuffers, copyTextureCoords, copyTextureCoords, findPick, getBatch, getBatchCount, getBatchIndex, getColorBuffer, getNormalBuffer, getNumberOfUnits, getTextureBuffer, getTextureBuffers, getTotalVertices, getType, getVBOInfo, getVertexBuffer, getWorldCoords, getWorldCoords, getWorldNormals, getWorldNormals, lockBounds, lockMeshes, lockShadows, lockTransforms, randomVertex, read, reconstruct, reconstruct, removeBatch, removeBatch, setColorBuffer, setDefaultColor, setModelBound, setNormalBuffer, setRandomColors, setSolidColor, setTextureBuffer, setTextureBuffer, setupBatchList, setVBOInfo, setVBOInfo, setVertexBuffer, swapBatches, unlockBounds, unlockMeshes, unlockShadows, unlockTransforms, updateModelBound, updateWorldBound, write
 
Methods inherited from class com.jme.scene.Spatial
addController, calculateCollisions, calculatePick, getController, getControllers, getCullMode, getLightCombineMode, getLocalRotation, getLocalScale, getLocalTranslation, getNormalsMode, getParent, getRenderQueueMode, getTextureCombineMode, getWorldRotation, getWorldScale, getWorldTranslation, localToWorld, lookAt, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeFromParent, rotateUpTo, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setParent, updateCollisionTree, updateWorldRotation, updateWorldScale, updateWorldTranslation, updateWorldVectors, worldToLocal
 
Methods inherited from class com.jme.scene.SceneElement
clearRenderState, getClassTag, getLastFrustumIntersection, getLocalCullMode, getLocalLightCombineMode, getLocalNormalsMode, getLocalRenderQueueMode, getLocalTextureCombineMode, getLocks, getName, getRenderState, getWorldBound, getZOrder, isCollidable, lock, lock, lockBranch, lockMeshes, setCullMode, setIsCollidable, setLastFrustumIntersection, setLightCombineMode, setLocks, setLocks, setName, setNormalsMode, setRenderQueueMode, setRenderState, setTextureCombineMode, setZOrder, unlock, unlock, unlockBranch, unlockMeshes, updateRenderState, updateRenderState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag
 

Field Detail

_keyListener

protected KeyInputListener _keyListener
This listener is notified when a key is pressed or released.


_mouseListener

protected MouseInputListener _mouseListener
This listener is notified when the mouse is updated.


_tickStamp

protected long _tickStamp

_timer

protected Timer _timer

_handler

protected InputHandler _handler

_invalidRoots

protected ArrayList<BComponent> _invalidRoots

_pressed

protected int _pressed
This is used for key repeat.


_presschar

protected char _presschar
This is used for key repeat.


_nextRepeat

protected long _nextRepeat
This is used for key repeat.


KEY_MODIFIER_MAP

protected static final int[] KEY_MODIFIER_MAP
Maps key codes to modifier flags.


MOUSE_MODIFIER_MAP

protected static final int[] MOUSE_MODIFIER_MAP
Maps button indices to modifier flags.


ANY_BUTTON_PRESSED

protected static final int ANY_BUTTON_PRESSED
Used to check whether any button remains pressed.

See Also:
Constant Field Values

INITIAL_REPEAT_DELAY

protected static final long INITIAL_REPEAT_DELAY
See Also:
Constant Field Values

SUBSEQ_REPEAT_DELAY

protected static final long SUBSEQ_REPEAT_DELAY
See Also:
Constant Field Values
Constructor Detail

PolledRootNode

public PolledRootNode(Timer timer,
                      InputHandler handler)
Method Detail

getTickStamp

public long getTickStamp()
Description copied from class: BRootNode
Returns the current timestamp used to stamp event times.

Specified by:
getTickStamp in class BRootNode

rootInvalidated

public void rootInvalidated(BComponent root)
Description copied from class: BRootNode
This is called by a window or a scroll pane when it has become invalid. The root node should schedule a revalidation of this component on the next tick or the next time an event is processed.

Specified by:
rootInvalidated in class BRootNode

updateWorldData

public void updateWorldData(float timePerFrame)
Overrides:
updateWorldData in class Geometry

getTooltipTimeout

public float getTooltipTimeout()
Description copied from class: BRootNode
Returns the tool tip timeout. See BRootNode.setTooltipTimeout(float) for details.

Overrides:
getTooltipTimeout in class BRootNode


Copyright © 2008 Michael Bayne. All Rights Reserved.