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

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

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

Field Summary
(package private) static int _hGap
           
(package private) static int _vGap
          the layout is oriented on a grid.
(package private)  org.tigris.gef.presentation.FigEdge currentEdge
           
(package private)  org.tigris.gef.presentation.Fig destFigNode
          each fig has a source and a destination port
(package private)  org.tigris.gef.presentation.Fig sourceFigNode
           
(package private)  org.tigris.gef.presentation.FigPoly underlyingFig
          the underlying fig of the edge we want to layout
 
Constructor Summary
ClassdiagramEdge(org.tigris.gef.presentation.FigEdge edge)
          Constructor.
 
Method Summary
static int getHGap()
           
static int getVGap()
           
abstract  void layout()
          abstract method to layout the edge
static void setHGap(int hGap)
           
static void setVGap(int vGap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_vGap

static int _vGap
the layout is oriented on a grid. These are our grid spaces.


_hGap

static int _hGap

currentEdge

org.tigris.gef.presentation.FigEdge currentEdge

underlyingFig

org.tigris.gef.presentation.FigPoly underlyingFig
the underlying fig of the edge we want to layout


destFigNode

org.tigris.gef.presentation.Fig destFigNode
each fig has a source and a destination port


sourceFigNode

org.tigris.gef.presentation.Fig sourceFigNode
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

setHGap

public static void setHGap(int hGap)

setVGap

public static void setVGap(int vGap)

getHGap

public static int getHGap()

getVGap

public static int getVGap()


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