org.argouml.uml.diagram.static_structure.layout
Class ClassdiagramInheritanceEdge
java.lang.Object
org.argouml.uml.diagram.static_structure.layout.ClassdiagramEdge
org.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 |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ClassdiagramInheritanceEdge
public ClassdiagramInheritanceEdge(org.tigris.gef.presentation.FigEdge edge)
- Constructor.
- Parameters:
edge
- the fig edge
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