|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A grouping node that collects together and provides layout information for items on a surface.
When the instance is given nodes to manage, it should manage it until told not to. Any time that the window size changes, the relationship should recalculate the on-screen position and notify the overlay items of their new pixel coordinates.
It is legal for a layout node to also contain other layout nodes in a nested fashion. An implementation should be aware of this and make sure it handles nested layouts correctly.
| Method Summary | |
VRMLNodeType[] |
getChildren()
Get the list of current children used by this node. |
void |
setChildren(VRMLNodeType[] kids)
Set the drawable content of this node to the surface. |
void |
windowChanged(int x,
int y,
int width,
int height)
Set the new window size, requesting that the layout implementation rebuild and re-evalutate all of the items it contains. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLSurfaceChildNodeType |
getBboxSize, getParentVisible, getRealBounds, isVisible, setLayoutListener, setLocation, setParentVisible, setVisible |
| 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 void windowChanged(int x,
int y,
int width,
int height)
x - The x location of the window in pixelsy - The y location of the window in pixelswidth - The width of the window in pixelsheight - The height of the window in pixels
public void setChildren(VRMLNodeType[] kids)
throws InvalidFieldValueException
VRMLSurfaceChildNodeType or
VRMLProtoInstance.
kids - The list of new nodes to layout
InvalidFieldValueException - The nodes are not one of the required
types.public VRMLNodeType[] getChildren()
VRMLSurfaceChildNodeType or VRMLProtoInstance.
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||