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

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

public abstract class ClassdiagramEdge
extends java.lang.Object
implements LayoutedEdge

This class is an abstract implementation of all edges which are layoutable in the classdiagram.

Since:
0.11.1
Author:
Markus Klink

Constructor Summary
ClassdiagramEdge(org.tigris.gef.presentation.FigEdge edge)
          Constructor.
 
Method Summary
protected  org.tigris.gef.presentation.FigEdge getCurrentEdge()
           
static int getHGap()
           
protected  org.tigris.gef.presentation.FigPoly getUnderlyingFig()
           
static int getVGap()
           
abstract  void layout()
          Abstract method to layout the edge.
static void setHGap(int h)
           
static void setVGap(int v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassdiagramEdge

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

Parameters:
edge - the Edge to layout
Method Detail

layout

public abstract void layout()
Abstract method to layout the edge.

Specified by:
layout in interface LayoutedEdge
See Also:
org.argouml.uml.diagram.layout.LayoutedEdge#layout()

setHGap

public static void setHGap(int h)
Parameters:
h - the horizontal gap

setVGap

public static void setVGap(int v)
Parameters:
v - the vertical gap

getHGap

public static int getHGap()
Returns:
the horizontal gap

getVGap

public static int getVGap()
Returns:
the vertical gap

getCurrentEdge

protected org.tigris.gef.presentation.FigEdge getCurrentEdge()
Returns:
Returns the currentEdge.

getUnderlyingFig

protected org.tigris.gef.presentation.FigPoly getUnderlyingFig()
Returns:
Returns the underlyingFig.