GraphLab Project

graphlab.plugins.visualization.treevisualizations
Class SparseTreeVisualization

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

public class SparseTreeVisualization
extends java.lang.Object
implements VisualizationExtension

Author:
Rouzbeh Ebrahimi

Field Summary
 java.util.Vector<VertexModel> children
           
static java.lang.Integer eachLevelHeigh
           
 java.util.HashMap<VertexModel,java.awt.geom.Point2D> vertexPlaces
           
 java.util.Vector<VertexModel> visitedVertices
           
static java.lang.Integer width
           
 
Constructor Summary
SparseTreeVisualization()
           
 
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 LevelHeight)
           
 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

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

SparseTreeVisualization

public SparseTreeVisualization()
Method Detail

performJob

public void performJob(java.lang.String eventName,
                       java.lang.Object 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 LevelHeight)

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