syn3d.nodes.java3d
Class BuilderNodeJava3D

java.lang.Object
  extended by syn3d.base.ActiveNode
      extended by syn3d.nodes.BuilderNode
          extended by syn3d.nodes.java3d.BuilderNodeJava3D
All Implemented Interfaces:
java.io.Serializable

public class BuilderNodeJava3D
extends BuilderNode
implements java.io.Serializable

Author:
ogor TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
See Also:
Serialized Form

Field Summary
protected static java.util.List actions
           
protected  PluginManager pluginManager
           
 
Fields inherited from class syn3d.nodes.BuilderNode
universe
 
Fields inherited from class syn3d.base.ActiveNode
children, name, parent
 
Constructor Summary
BuilderNodeJava3D(ActiveNode parent, PluginManager pluginManager)
           
 
Method Summary
 void doAction(java.lang.Object action)
          When the user has selected an action in the list return by getActions(), this method is called.
 java.util.List getActions()
          Returns a list of possible actions on this node.
 boolean loadJava3dScene(java.io.File f)
           
 
Methods inherited from class syn3d.nodes.BuilderNode
getIcon
 
Methods inherited from class syn3d.base.ActiveNode
addChild, findDescendantOfType, findDescendantOfType, get3DObject, getChildren, getName, getParent, highlight, notifyInternalChange, notifyStructuralChange, propagateAddChildEvent, propagateChangeNameEvent, propagateHighlightEvent, propagateInternalChangeEvent, propagateRemoveChildEvent, propagateStructuralChangeEvent, remove, removeChild, removeNodeTree, removeNodeTreeFrom, restoreReferences, saveChildren, setName, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pluginManager

protected PluginManager pluginManager

actions

protected static java.util.List actions
Constructor Detail

BuilderNodeJava3D

public BuilderNodeJava3D(ActiveNode parent,
                         PluginManager pluginManager)
Method Detail

getActions

public java.util.List getActions()
Description copied from class: ActiveNode
Returns a list of possible actions on this node. Actions may be classified by categories using the "|" separator. Ex: a transform node may have the following actions: "Rotate|90° on X", "Rotate|180° on X", etc...

Overrides:
getActions in class ActiveNode
Returns:
an array of possible actions, or a null or empty array if this node doesn't handle any action

doAction

public void doAction(java.lang.Object action)
Description copied from class: ActiveNode
When the user has selected an action in the list return by getActions(), this method is called. The node should then do what it claims.

Overrides:
doAction in class ActiveNode
Parameters:
action - An action previously declared by the getActions method.

loadJava3dScene

public boolean loadJava3dScene(java.io.File f)