GraphLab Project

graphlab.plugins.visualization.treevisualizations
Class HierarchicalTreeVisualization

java.lang.Object
  extended by graphlab.plugins.visualization.treevisualizations.HierarchicalTreeVisualization
All Implemented Interfaces:
BasicExtension, Extension, VisualizationExtension, VisualizationInterface

public class HierarchicalTreeVisualization
extends java.lang.Object
implements VisualizationExtension

Author:
Rouzbeh Ebrahimi

Field Summary
 java.util.Vector<VertexModel> children
           
static java.lang.Integer eachLevelHeigh
           
static java.lang.String event
           
 java.util.HashMap<VertexModel,java.awt.geom.Point2D> vertexPlaces
           
 java.util.Vector<VertexModel> visitedVertices
           
static java.lang.Integer width
           
 
Constructor Summary
HierarchicalTreeVisualization()
           
 
Method Summary
 java.util.Vector<VertexModel> findNextLevelChildren(java.util.Vector<VertexModel> currentLevelVertices)
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.util.HashMap<EdgeModel,java.awt.geom.Point2D> getNewEdgeCurveControlPoints()
           
 java.util.HashMap<VertexModel,java.awt.geom.Point2D> getNewVertexPlaces()
           
 void locateAll(java.util.Vector<VertexModel> currentLevelVertices, int width, int currentLevelHeight)
           
 void performJob(java.lang.String eventName, java.lang.Object value)
           
 void setWorkingGraph(GraphModel g)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

event

public static final java.lang.String event

visitedVertices

public java.util.Vector<VertexModel> visitedVertices

vertexPlaces

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

children

public java.util.Vector<VertexModel> children

width

public static java.lang.Integer width

eachLevelHeigh

public static java.lang.Integer eachLevelHeigh
Constructor Detail

HierarchicalTreeVisualization

public HierarchicalTreeVisualization()
Method Detail

performJob

public void performJob(java.lang.String eventName,
                       java.lang.Object value)
Parameters:
eventName -
value -

findNextLevelChildren

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

locateAll

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

getName

public java.lang.String getName()
Specified by:
getName in interface Extension

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Extension

setWorkingGraph

public void setWorkingGraph(GraphModel g)
Specified by:
setWorkingGraph in interface VisualizationInterface

getNewVertexPlaces

public java.util.HashMap<VertexModel,java.awt.geom.Point2D> getNewVertexPlaces()
Specified by:
getNewVertexPlaces in interface VisualizationInterface

getNewEdgeCurveControlPoints

public java.util.HashMap<EdgeModel,java.awt.geom.Point2D> getNewEdgeCurveControlPoints()
Specified by:
getNewEdgeCurveControlPoints in interface VisualizationInterface

GraphLab Project