org.argouml.uml.diagram.static_structure.layout
Class ClassdiagramInheritanceEdge

java.lang.Object
  extended byorg.argouml.uml.diagram.static_structure.layout.ClassdiagramEdge
      extended byorg.argouml.uml.diagram.static_structure.layout.ClassdiagramInheritanceEdge
All Implemented Interfaces:
LayoutedEdge, LayoutedObject
Direct Known Subclasses:
ClassdiagramGeneralizationEdge, ClassdiagramRealizationEdge

public abstract class ClassdiagramInheritanceEdge
extends ClassdiagramEdge


Field Summary
private  org.tigris.gef.presentation.Fig high
          The figures which are connected by this edge
private static Logger LOG
           
private  org.tigris.gef.presentation.Fig low
          The figures which are connected by this edge
private  int offset
          Offset used to distribute the lines
 
Fields inherited from class org.argouml.uml.diagram.static_structure.layout.ClassdiagramEdge
 
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 org.argouml.uml.diagram.static_structure.layout.ClassdiagramEdge
getCurrentEdge, getDestFigNode, getHGap, getSourceFigNode, getUnderlyingFig, getVGap, setHGap, setVGap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG

high

private org.tigris.gef.presentation.Fig high
The figures which are connected by this edge


low

private org.tigris.gef.presentation.Fig low
The figures which are connected by this edge


offset

private int offset
Offset used to distribute the lines

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


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook