|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A legal child for an OverlayNodeType parent.
An overlay child node describes one item of an overlay. This item may be 2D or 3D and can be organised with a position on the surface using a series of relationships nodes that control how this node works with the rest of the renderable surface.
Each overlay child node has a visibility state that controls whether it is rendered or not. When a child is not visible, it does not take part in any layout organisation. If the child is a layout node, then the visibility state controls all its children. If the layout is made not-visible then none of its children are rendered.
| Method Summary | |
float[] |
getBboxSize()
Get the value of the 2D bounding box size of this overlay. |
boolean |
getParentVisible()
Request the node's current parent visibility state. |
java.awt.Rectangle |
getRealBounds()
Get the current value of the 2D bounding box of this overlay. |
boolean |
isVisible()
Get the current visibility state of this node. |
void |
setLayoutListener(VRMLSurfaceLayoutListener l)
Set the layout listener for this node. |
void |
setLocation(int x,
int y)
Tell this overlay that it's position in window coordinates has been changed to this new value. |
void |
setParentVisible(boolean state)
Notification from the parent node about this node's visiblity state. |
void |
setVisible(boolean state)
Set the visibility state of the surface. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
addNodeListener, getFieldValue, getMetadataObject, getRefCount, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount |
| Methods inherited from interface org.web3d.vrml.lang.VRMLNode |
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion |
| Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener |
allEventsComplete |
| Method Detail |
public boolean isVisible()
public void setVisible(boolean state)
state - true to make this node visible, false to hidepublic void setParentVisible(boolean state)
state - true to make this node visible, false to hidepublic boolean getParentVisible()
public float[] getBboxSize()
public java.awt.Rectangle getRealBounds()
public void setLocation(int x,
int y)
x - The x location of the window in pixelsy - The y location of the window in pixelspublic void setLayoutListener(VRMLSurfaceLayoutListener l)
l - The new listener to use or null
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||