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

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.MultiPathNode
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NodeFactory.RadioNode
Enclosing class:
NodeFactory

public class NodeFactory.MultiPathNode
extends NodeFactory.TreeNode
implements Serializable

MultiPathNode is a TreeNode that can have multiple children and multiple exit paths all leading to different destinations (or the same if needed).

See Also:
Serialized Form
 

Nested Class Summary
 class NodeFactory.MultiPathNode.NodePath
          NodePath is used by MultiPathNode (actually RadioNode only) to define different exit paths for the node.
 
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 createNodePath()
          Creates an empty NodePath, adding it to the nodePaths list.
 void createNodePath(String description, int value, NodeFactory.TreeNode destinationNode)
          Creates a nodepath with the given values and adds it to the paths list.
 LinkedList<NodeFactory.MultiPathNode.NodePath> getNodePaths()
          Returns the nodePaths list.
 void removeNodePath(NodeFactory.MultiPathNode.NodePath nodePath)
          Removes the given NodePath from the nodePaths list.
 
Methods inherited from class fi.paatti.research.paattiapplication.views.eventview.tools.NodeFactory.TreeNode
addChild, 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

createNodePath

public void createNodePath()
Creates an empty NodePath, adding it to the nodePaths list.


createNodePath

public void createNodePath(String description,
                           int value,
                           NodeFactory.TreeNode destinationNode)
Creates a nodepath with the given values and adds it to the paths list.

Parameters:
description - the path's description
value - the path's value
destinationNode - the path's destination node

getNodePaths

public LinkedList<NodeFactory.MultiPathNode.NodePath> getNodePaths()
Returns the nodePaths list.

Returns:
nodePaths list

removeNodePath

public void removeNodePath(NodeFactory.MultiPathNode.NodePath nodePath)
Removes the given NodePath from the nodePaths list.

Parameters:
nodePath - nodePath to remove


Copyright © 2012. All Rights Reserved.