Xj3D VRML/X3D Code API

org.web3d.vrml.renderer.common.nodes
Class BaseGeometricPropertyNode

java.lang.Object
  extended byorg.web3d.vrml.renderer.common.nodes.AbstractNode
      extended byorg.web3d.vrml.renderer.common.nodes.BaseGeometricPropertyNode
All Implemented Interfaces:
FrameStateListener, VRMLGeometricPropertyNodeType, VRMLNode, VRMLNodeType

public abstract class BaseGeometricPropertyNode
extends AbstractNode
implements VRMLGeometricPropertyNodeType

An abstract implementation of any form geometric property node type.

This implementation provides a number of the basic necessities when building node information. This class does not define any extra fields over the standard base node type.

Version:
$Revision: 1.5 $
Author:
Justin Couch

Field Summary
 
Fields inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
BAD_NODE_MSG, errorReporter, FIELD_METADATA, fieldData, hasChanged, INIT_ONLY_WRITE_MSG, inSetup, isDEF, isStatic, LAST_NODE_INDEX, METADATA_NODE_MSG, METADATA_PROTO_MSG, nodeName, pMetadata, refCount, stateManager, vfMetadata, vrmlMajorVersion, vrmlMinorVersion
 
Constructor Summary
BaseGeometricPropertyNode(java.lang.String name)
          Create a default instance of this class with an empty listener list and the solid field set to false.
 
Method Summary
 void addComponentListener(VRMLNodeComponentListener l)
          Add a listener for geometry changed events.
protected  void fireComponentChanged(int index)
          Fire a event coordinate change event to the listeners.
 void removeComponentListener(VRMLNodeComponentListener l)
          Remove a listener for geometry changed events.
 
Methods inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
addNodeListener, allEventsComplete, checkNodeType, checkSecondaryType, checkSecondaryType, fireFieldChanged, getFieldValue, getMetadataObject, getNodeFieldIndices, getRefCount, getSecondaryType, getUserData, getVRMLNodeName, hasFieldChanged, isDEF, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setErrorReporter, setFrameStateManager, setMetadataObject, setupFinished, setUserData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVersion, updateRefCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

BaseGeometricPropertyNode

public BaseGeometricPropertyNode(java.lang.String name)
Create a default instance of this class with an empty listener list and the solid field set to false.

Parameters:
name - The name of the type of node
Method Detail

addComponentListener

public void addComponentListener(VRMLNodeComponentListener l)
Add a listener for geometry changed events. If the listener is null or already registered it will silently ignore the requests.

Specified by:
addComponentListener in interface VRMLGeometricPropertyNodeType
Parameters:
l - The listener to add

removeComponentListener

public void removeComponentListener(VRMLNodeComponentListener l)
Remove a listener for geometry changed events. If the listener is null or has not been registered it will silently ignore the requests.

Specified by:
removeComponentListener in interface VRMLGeometricPropertyNodeType
Parameters:
l - The listener to remove

fireComponentChanged

protected void fireComponentChanged(int index)
Fire a event coordinate change event to the listeners. When calling the listeners, it is assumed this node has changed.

Parameters:
index - The field index that has changed

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium