|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jme.scene.SceneElement
com.jme.scene.Spatial
com.jme.scene.Geometry
com.jmex.bui.BRootNode
public abstract class BRootNode
Connects the BUI system into the JME scene graph.
| Field Summary | |
|---|---|
protected BComponent |
_ccomponent
|
protected ArrayList<BComponent> |
_defaults
|
protected BComponent |
_focus
|
protected ArrayList<BGeomView> |
_geomviews
|
protected ArrayList<EventListener> |
_globals
|
protected BComponent |
_hcomponent
|
protected float |
_lastMoveTime
|
protected float |
_lastTipTime
|
protected ColorRGBA |
_modalShade
|
protected int |
_modifiers
|
protected int |
_mouseX
|
protected int |
_mouseY
|
protected float |
_tipTime
|
protected int |
_tipWidth
|
protected BWindow |
_tipwin
|
protected ArrayList<BWindow> |
_windows
|
protected static float |
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 |
| Constructor Summary | |
|---|---|
BRootNode()
|
|
| Method Summary | |
|---|---|
void |
addGlobalEventListener(EventListener listener)
Registers a listener that will be notified of all events prior to their being dispatched normally. |
void |
addWindow(BWindow window)
Registers a top-level window with the input system. |
void |
addWindow(BWindow window,
boolean topLayer)
Registers a top-level window with the input system. |
protected void |
clearTipWindow()
|
protected boolean |
dispatchEvent(BComponent target,
BEvent event)
Dispatches an event to the specified target (which may be null). |
void |
draw(Renderer renderer)
|
void |
findCollisions(Spatial scene,
CollisionResults results)
|
BComponent |
getFocus()
Returns the component that currently has the focus, or null. |
abstract long |
getTickStamp()
Returns the current timestamp used to stamp event times. |
float |
getTooltipTimeout()
Returns the tool tip timeout. |
BWindow |
getWindow(int index)
Returns the window at the specified index. |
int |
getWindowCount()
Returns the total number of windows added to this node. |
boolean |
hasCollision(Spatial scene,
boolean checkTriangles)
|
boolean |
isOnTop(BWindow window)
Returns true if the specified window is on top. |
protected void |
mouseDidMove(int mouseX,
int mouseY)
|
void |
onDraw(Renderer renderer)
|
void |
popDefaultEventTarget(BComponent component)
Pops the default event target off the stack. |
void |
pushDefaultEventTarget(BComponent component)
Configures a component to receive all events that are not sent to some other component. |
protected void |
registerGeomView(BGeomView nview)
Registers a BGeomView with the root node. |
void |
removeAllWindows()
Removes all windows from the root node. |
void |
removeGlobalEventListener(EventListener listener)
Removes a global event listener registration. |
void |
removeWindow(BWindow window)
Removes a window from participation in the input system. |
protected void |
renderModalShade()
|
void |
requestFocus(BComponent component)
Requests that the specified component be given the input focus. |
void |
resortWindows()
Called when an added window's layer is changed. |
abstract void |
rootInvalidated(BComponent root)
This is called by a window or a scroll pane when it has become invalid. |
protected void |
setFocus(BComponent focus)
Configures the component that has keyboard focus. |
void |
setModalShade(ColorRGBA color)
Sets the color of the shade behind the first active modal window. |
void |
setTooltipPreferredWidth(int width)
Sets the preferred width of tooltip windows. |
void |
setTooltipTimeout(float seconds)
Configures the number of seconds that the mouse must rest over a component to trigger a tooltip. |
void |
tipTextChanged(BComponent component)
A large component that changes its tooltip while it is the hover component in the normal course of events can call this method to force an update to the tooltip window. |
String |
toString()
Generates a string representation of this instance. |
protected void |
unregisterGeomView(BGeomView nview)
Clears out a node view registration. |
void |
updateGeometricState(float time,
boolean initiator)
|
protected void |
updateHoverComponent(int mx,
int my)
Recomputes the component over which the mouse is hovering, generating mouse exit and entry events as necessary. |
protected void |
windowDidMove(BWindow window)
Called by a window when its position changes. |
| 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 |
|---|
protected int _modifiers
protected int _mouseX
protected int _mouseY
protected BWindow _tipwin
protected float _lastMoveTime
protected float _tipTime
protected float _lastTipTime
protected int _tipWidth
protected ColorRGBA _modalShade
protected ArrayList<BWindow> _windows
protected BComponent _hcomponent
protected BComponent _ccomponent
protected BComponent _focus
protected ArrayList<BComponent> _defaults
protected ArrayList<BGeomView> _geomviews
protected ArrayList<EventListener> _globals
protected static final float TIP_MODE_RESET
| Constructor Detail |
|---|
public BRootNode()
| Method Detail |
|---|
public abstract long getTickStamp()
public void addWindow(BWindow window)
public void addWindow(BWindow window,
boolean topLayer)
topLayer - if true, will set the window layer to the top most layer if it's current
layer is less than that.public boolean isOnTop(BWindow window)
public void resortWindows()
public void removeAllWindows()
public void removeWindow(BWindow window)
public void setTooltipTimeout(float seconds)
public float getTooltipTimeout()
setTooltipTimeout(float) for details.
public void setTooltipPreferredWidth(int width)
public void addGlobalEventListener(EventListener listener)
public void removeGlobalEventListener(EventListener listener)
public abstract void rootInvalidated(BComponent root)
public void pushDefaultEventTarget(BComponent component)
public void popDefaultEventTarget(BComponent component)
public void requestFocus(BComponent component)
public BComponent getFocus()
public int getWindowCount()
public BWindow getWindow(int index)
public String toString()
toString in class SceneElementpublic void tipTextChanged(BComponent component)
public void updateGeometricState(float time,
boolean initiator)
updateGeometricState in class Spatialpublic void onDraw(Renderer renderer)
onDraw in class Spatialpublic void draw(Renderer renderer)
draw in class Geometry
public void findCollisions(Spatial scene,
CollisionResults results)
findCollisions in class Spatial
public boolean hasCollision(Spatial scene,
boolean checkTriangles)
hasCollision in class Spatialpublic void setModalShade(ColorRGBA color)
protected boolean dispatchEvent(BComponent target,
BEvent event)
protected void setFocus(BComponent focus)
protected void registerGeomView(BGeomView nview)
BGeomView with the root node. This is called automatically from BGeomView.wasAdded().
protected void unregisterGeomView(BGeomView nview)
BGeomView.wasRemoved().
protected void windowDidMove(BWindow window)
protected void mouseDidMove(int mouseX,
int mouseY)
protected void updateHoverComponent(int mx,
int my)
protected void clearTipWindow()
protected void renderModalShade()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||