com.googlecode.sarasvati.visual.graph
Class GraphLayoutNode<N>

java.lang.Object
  extended by com.googlecode.sarasvati.visual.graph.GraphLayoutNode<N>

public class GraphLayoutNode<N>
extends Object


Field Summary
protected  int depth
           
protected  int index
           
protected  N node
           
protected  int originX
           
protected  int originY
           
 
Constructor Summary
GraphLayoutNode(int depth, N node)
           
 
Method Summary
 int getDepth()
           
 int getIndex()
           
 N getNode()
           
 int getOffset()
           
 int getOriginX()
           
 int getOriginX(int width)
           
 int getOriginY()
           
 int getOriginY(int height)
           
 void recalculateOrigin()
           
 void setIndex(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected N node

depth

protected int depth

index

protected int index

originX

protected int originX

originY

protected int originY
Constructor Detail

GraphLayoutNode

public GraphLayoutNode(int depth,
                       N node)
Method Detail

getNode

public N getNode()

getDepth

public int getDepth()

getIndex

public int getIndex()

setIndex

public void setIndex(int index)

recalculateOrigin

public void recalculateOrigin()

getOriginX

public int getOriginX()

getOriginY

public int getOriginY()

getOriginX

public int getOriginX(int width)

getOriginY

public int getOriginY(int height)

getOffset

public int getOffset()


Copyright © 2012. All Rights Reserved.