GraphLab Project

graphlab.plugins.visualization.hierarchical
Class BendedTrees

java.lang.Object
  extended by graphlab.platform.core.AbstractAction
      extended by graphlab.plugins.visualization.hierarchical.BendedTrees
All Implemented Interfaces:
Action, Listener

public class BendedTrees
extends AbstractAction

Author:
Rouzbeh Ebrahimi

Field Summary
 java.util.Vector<VertexModel> children
           
 java.util.HashMap<EdgeModel,java.util.Vector<java.awt.geom.Point2D>> edgeBendPoints
           
 GraphModel graph
           
 java.util.HashMap<VertexModel,java.awt.geom.Point2D> vertexPlaces
           
 java.util.Vector<VertexModel> visitedVertices
           
 
Fields inherited from class graphlab.platform.core.AbstractAction
blackboard
 
Constructor Summary
BendedTrees(BlackBoard bb)
          constructor
 
Method Summary
 java.util.Vector<VertexModel> findNextLevelChildren(java.util.Vector<VertexModel> currentLevelVertices)
           
 void locateAllVertices(java.util.Vector<VertexModel> currentLevelVertices, int width, int currentLevelHeight)
           
 void performAction(java.lang.String eventName, java.lang.Object value)
          like Action
 void reshapeAllEdges()
           
 
Methods inherited from class graphlab.platform.core.AbstractAction
disable, enable, getBlackBoard, getLastListenedEventKey, isEnable, keyChanged, listen4Event, setBlackBoard, unListenEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visitedVertices

public java.util.Vector<VertexModel> visitedVertices

vertexPlaces

public java.util.HashMap<VertexModel,java.awt.geom.Point2D> vertexPlaces

edgeBendPoints

public java.util.HashMap<EdgeModel,java.util.Vector<java.awt.geom.Point2D>> edgeBendPoints

children

public java.util.Vector<VertexModel> children

graph

public GraphModel graph
Constructor Detail

BendedTrees

public BendedTrees(BlackBoard bb)
constructor

Parameters:
bb - the blackboard of the action
Method Detail

performAction

public void performAction(java.lang.String eventName,
                          java.lang.Object value)
Description copied from class: AbstractAction
like Action

Specified by:
performAction in interface Action
Specified by:
performAction in class AbstractAction

findNextLevelChildren

public java.util.Vector<VertexModel> findNextLevelChildren(java.util.Vector<VertexModel> currentLevelVertices)

reshapeAllEdges

public void reshapeAllEdges()

locateAllVertices

public void locateAllVertices(java.util.Vector<VertexModel> currentLevelVertices,
                              int width,
                              int currentLevelHeight)

GraphLab Project