fi.paatti.research.paattiapplication.views.eventview.tools
Class NodeFactory.SinglePathNode

java.lang.Object
  extended by fi.paatti.research.paattiapplication.views.eventview.tools.Clickable
      extended by fi.paatti.research.paattiapplication.views.eventview.tools.NodeFactory.TreeNode
          extended by fi.paatti.research.paattiapplication.views.eventview.tools.NodeFactory.SinglePathNode
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NodeFactory.RootNode
Enclosing class:
NodeFactory

public class NodeFactory.SinglePathNode
extends NodeFactory.TreeNode
implements Serializable

SinglePathNode is a TreeNode that can have only one child. The amount of parents is unlimited.

See Also:
Serialized Form
 

Field Summary
 
Fields inherited from class fi.paatti.research.paattiapplication.views.eventview.tools.NodeFactory.TreeNode
baseColor, children, parents
 
Fields inherited from class fi.paatti.research.paattiapplication.views.eventview.tools.Clickable
height, width, x, y
 
Method Summary
 void addChild(NodeFactory.TreeNode node)
          Adds a node to this node's children list, removing any previously existing nodes from the list.
 
Methods inherited from class fi.paatti.research.paattiapplication.views.eventview.tools.NodeFactory.TreeNode
addParent, detach, getChildren, getContent, getDescription, getId, getParents, getProperty, getRealId, getType, getX, getY, moveTo, paint, removeChild, removeParent, setActive, setContent, setDescription, setRealId, setType, setX, setY, toString
 
Methods inherited from class fi.paatti.research.paattiapplication.views.eventview.tools.Clickable
contains
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addChild

public void addChild(NodeFactory.TreeNode node)
Adds a node to this node's children list, removing any previously existing nodes from the list.

Overrides:
addChild in class NodeFactory.TreeNode
Parameters:
node - node to be added


Copyright © 2012. All Rights Reserved.