de.steeringbehaviors.creator.editor
Class SteeringTreeNode

java.lang.Object
  extended by de.steeringbehaviors.creator.editor.SteeringTreeNode

public class SteeringTreeNode
extends java.lang.Object

Class SteeringTreeNode implements a user object of the tree


Method Summary
 java.lang.Object clone()
          Clones the SteeringTreeNode object
 java.lang.String getAttribute(java.lang.String name)
          Returns a singe attribute
 java.util.TreeMap getAttributes()
          Returns a TreeMap of all atttributes
 java.lang.String getCaption()
          Returns the caption of the node
 GeometrieObject getGeometrieObject()
          Returns the assigned GeometrieObject
 java.lang.String getName()
          Returns the name of the node
 Geometrie getObjectDescription()
          Returns the description of the assigned GeometrieObject
 java.lang.String getType()
          Returns the node type
 java.lang.String getTypeByName(java.lang.String name)
          Returns the type depending on the specified node name
 void setAttribute(java.lang.String name, java.lang.String value)
          Sets a single attribute
 void setAttributes(org.w3c.dom.NamedNodeMap attr)
          Sets the attributes listed in the NamedNodeMap
 void setCaption(java.lang.String s)
          Sets the caption of the node
 void setGeometrieObject(GeometrieObject geo)
          Sets a GeometrieObject
 void setName(java.lang.String n)
          Sets the name of the node
 void setType(java.lang.String t)
          Sets the node type
 java.lang.String toString()
          Returns the caption.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setCaption

public void setCaption(java.lang.String s)
Sets the caption of the node

Parameters:
s - Caption name

setType

public void setType(java.lang.String t)
Sets the node type

Parameters:
t - Type of the node

setAttributes

public void setAttributes(org.w3c.dom.NamedNodeMap attr)
Sets the attributes listed in the NamedNodeMap

Parameters:
NamedNodeMap - of attributes to set

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
Sets a single attribute

Parameters:
name - Name of the attribute to set
value - Value of the attribute to set

setGeometrieObject

public void setGeometrieObject(GeometrieObject geo)
Sets a GeometrieObject

Parameters:
geo - GeometrieObject to set

setName

public void setName(java.lang.String n)
Sets the name of the node

Parameters:
n - Name to set

getCaption

public java.lang.String getCaption()
Returns the caption of the node

Returns:
Caption of the node

getType

public java.lang.String getType()
Returns the node type

Returns:
The type of the node

getName

public java.lang.String getName()
Returns the name of the node

Returns:
Name of the node

getObjectDescription

public Geometrie getObjectDescription()
Returns the description of the assigned GeometrieObject

Returns:
Description of the assigned GeometrieObject

getGeometrieObject

public GeometrieObject getGeometrieObject()
Returns the assigned GeometrieObject

Returns:
Assigned GeometrieObject

getAttributes

public java.util.TreeMap getAttributes()
Returns a TreeMap of all atttributes

Returns:
TreeMap of all attributes

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Returns a singe attribute

Parameters:
name - Name of the attribute to return
Returns:
The value of the specified attribute

toString

public java.lang.String toString()
Returns the caption. Used for the JTree entries

Overrides:
toString in class java.lang.Object
Returns:
Caption of the node

clone

public java.lang.Object clone()
Clones the SteeringTreeNode object

Overrides:
clone in class java.lang.Object
Returns:
The cloned SteeringTreeNode

getTypeByName

public java.lang.String getTypeByName(java.lang.String name)
Returns the type depending on the specified node name

Parameters:
name - Name of the node
Returns:
Type of the node