gov.nih.nci.cagrid.graph.uml.classdiagram
Class ClassdiagramInheritanceEdge

java.lang.Object
  extended by gov.nih.nci.cagrid.graph.uml.classdiagram.ClassdiagramEdge
      extended by gov.nih.nci.cagrid.graph.uml.classdiagram.ClassdiagramInheritanceEdge
All Implemented Interfaces:
LayoutedEdge, LayoutedObject
Direct Known Subclasses:
ClassdiagramGeneralizationEdge, ClassdiagramRealizationEdge

public abstract class ClassdiagramInheritanceEdge
extends ClassdiagramEdge

Author:
mkl

Constructor Summary
ClassdiagramInheritanceEdge(org.tigris.gef.presentation.FigEdge edge)
          Constructor.
 
Method Summary
 int getCenterHigh()
           
 int getCenterLow()
           
 int getDownGap()
           
 int getOffset()
           
 int getVerticalOffset()
           
 void layout()
          Abstract method to layout the edge.
 void setOffset(int anOffset)
          Set the line-offset for this edge
 
Methods inherited from class gov.nih.nci.cagrid.graph.uml.classdiagram.ClassdiagramEdge
getCurrentEdge, getHGap, getUnderlyingFig, getVGap, setHGap, setVGap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassdiagramInheritanceEdge

public ClassdiagramInheritanceEdge(org.tigris.gef.presentation.FigEdge edge)
Constructor.

Parameters:
edge - the fig edge
Method Detail

getVerticalOffset

public int getVerticalOffset()
Returns:
the vertical offset

getCenterHigh

public int getCenterHigh()
Returns:
the center of the high node

getCenterLow

public int getCenterLow()
Returns:
the center of the low node

getDownGap

public int getDownGap()
Returns:
the gap with the node one level down

layout

public void layout()
Description copied from class: ClassdiagramEdge
Abstract method to layout the edge.

Specified by:
layout in interface LayoutedEdge
Specified by:
layout in class ClassdiagramEdge
Since:
0.9.6
See Also:
Layout the edges in a way that they form a nice inheritance tree. Try to implement these nice zigzag lines between classes and works well when the row difference is one.

setOffset

public void setOffset(int anOffset)
Set the line-offset for this edge

Parameters:
anOffset - the offset to use for this edge

getOffset

public int getOffset()
Returns:
Line-offset for this edge