pedviz.algorithms.sugiyama
Class SugiyamaNodeView

java.lang.Object
  extended by pedviz.view.DefaultNodeView
      extended by pedviz.view.NodeView
          extended by pedviz.algorithms.sugiyama.SugiyamaNodeView
All Implemented Interfaces:
java.lang.Comparable

public class SugiyamaNodeView
extends NodeView

This class extends the NodeView class by a barycentric property.

Author:
Luki

Constructor Summary
SugiyamaNodeView(Node node, DefaultNodeView defaultNodeView)
           
 
Method Summary
 int compareTo(java.lang.Object arg0)
          Compares two nodeviews.
 float getBarycentric()
          Returns the barycentric.
 void setBarycentric(float barycentric)
          Sets the barycentric.
 void sortSubNodes()
          Sorts subnodes by their barycentric.
 
Methods inherited from class pedviz.view.NodeView
addNodeViewListener, calcWidth, clone, getBounds, getColors, getData, getHint, getInEdges, getNode, getNodes, getOutEdges, getPosX, getPosY, getPosZ, isHidden, isHighlighted, isMomLeft, isMouseOver, isSelected, removeNodeViewListener, reset, setBounds, setColors, setData, setHidden, setMomLeft, setPosX, setPosY, setPosZ
 
Methods inherited from class pedviz.view.DefaultNodeView
addHintAttribute, addSymbol, getBorderColor, getBorderWidth, getColor, getGap, getHeight, getHighlightedColor, getMouseOverColor, getSelectedColor, getSize, getSymbols, isExpand, setBorderColor, setBorderWidth, setColor, setExpand, setGap, setHighlightedColor, setHintAttribute, setHintText, setMouseOverColor, setSelectedColor, setSize, setSymbols
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SugiyamaNodeView

public SugiyamaNodeView(Node node,
                        DefaultNodeView defaultNodeView)
Method Detail

getBarycentric

public float getBarycentric()
Returns the barycentric.

Returns:
the barycentric

setBarycentric

public void setBarycentric(float barycentric)
Sets the barycentric.

Parameters:
barycentric - barycentric

sortSubNodes

public void sortSubNodes()
Sorts subnodes by their barycentric.

Overrides:
sortSubNodes in class NodeView

compareTo

public int compareTo(java.lang.Object arg0)
Description copied from class: NodeView
Compares two nodeviews.

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class NodeView