de.uni_paderborn.fujaba.layout.classdiag
Class ClassdiagramLayouter

java.lang.Object
  extended byde.uni_paderborn.fujaba.layout.AbstractLayouter
      extended byde.uni_paderborn.fujaba.layout.classdiag.ClassdiagramLayouter
All Implemented Interfaces:
Layouter

public class ClassdiagramLayouter
extends AbstractLayouter
implements Layouter

This class implements a layout algoritms for class diagrams. The class has been taken from Argo UML source code.

Version:
$Revision: 1.1 $ $Date: 2005/01/24 12:30:48 $
Author:
$Author: joerg $

Field Summary
static ClassdiagramLayouter theInstance
          Make this class a Singleton.
 
Method Summary
 void add(de.uni_paderborn.fujaba.layout.classdiag.ClassdiagramNode obj)
          Add a ClassdiagramNode to layout.
 void add(LayoutedObject obj)
          Add a object to layout.
static ClassdiagramLayouter get()
          No comment provided by developer, please add a comment to improve documentation.
 de.uni_paderborn.fujaba.layout.classdiag.ClassdiagramNode getClassdiagramNode(int index)
          Get a ClassdiagramNode from the layouted objects.
protected  int getHGap()
          Get the horizontal gap between nodes.
 java.awt.Dimension getMinimumDiagramSize()
          Operation getMinimumDiagramSize returns the minimum diagram size after the layout process.
 LayoutedObject getObject(int index)
          Operation getObject returns a object with a given index from the layouter.
 LayoutedObject[] getObjects()
          Operation getObjects returns all the objects currently participating in the layout process.
protected  int getVGap()
          Get the vertical gap between nodes.
 void layout()
          Operation layout implements the actual layout algorithm.
 void reLayout(FSAContainer currentCanvas)
          No comment provided by developer, please add a comment to improve documentation.
 void remove(LayoutedObject obj)
          Remove a object from the layout process.
 
Methods inherited from class de.uni_paderborn.fujaba.layout.AbstractLayouter
checkVisited, getChild, getFrame, getFromToFrame, getHorizDist, getLeft, getPreferredLen, getPresetAdjustment, getRevMyLayouter, getVertDist, innerLayout, isLastCondition, refreshOptions, removeYou, searchStart, setHorizDist, setLastCondition, setLeft, setPresetAdjustment, setRevMyLayouter, setVertDist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theInstance

public static ClassdiagramLayouter theInstance
Make this class a Singleton.

Method Detail

get

public static ClassdiagramLayouter get()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

add

public void add(LayoutedObject obj)
Add a object to layout.

Specified by:
add in interface Layouter
Parameters:
obj - represents the object to layout.

add

public void add(de.uni_paderborn.fujaba.layout.classdiag.ClassdiagramNode obj)
Add a ClassdiagramNode to layout.

Parameters:
obj - represents the object to layout.

remove

public void remove(LayoutedObject obj)
Remove a object from the layout process.

Specified by:
remove in interface Layouter
Parameters:
obj - represents the object to remove.

getObjects

public LayoutedObject[] getObjects()
Operation getObjects returns all the objects currently participating in the layout process.

Specified by:
getObjects in interface Layouter
Returns:
An array holding all the object in the layouter.

getObject

public LayoutedObject getObject(int index)
Operation getObject returns a object with a given index from the layouter.

Specified by:
getObject in interface Layouter
Parameters:
index - represents the index of this object in the layouter.
Returns:
The LayoutedObject for the given index.

getClassdiagramNode

public de.uni_paderborn.fujaba.layout.classdiag.ClassdiagramNode getClassdiagramNode(int index)
Get a ClassdiagramNode from the layouted objects.

Parameters:
index - represents the index of this ClassdiagramNode.
Returns:
The ClassdiagramNode for this index.

layout

public void layout()
Operation layout implements the actual layout algorithm.

Specified by:
layout in interface Layouter

getMinimumDiagramSize

public java.awt.Dimension getMinimumDiagramSize()
Operation getMinimumDiagramSize returns the minimum diagram size after the layout process.

Specified by:
getMinimumDiagramSize in interface Layouter
Returns:
The minimum diagram size after the layout process.

getVGap

protected int getVGap()
Get the vertical gap between nodes.

Returns:
The vertical gap between nodes.

getHGap

protected int getHGap()
Get the horizontal gap between nodes.

Returns:
The horizontal gap between nodes.

reLayout

public void reLayout(FSAContainer currentCanvas)
              throws java.lang.InterruptedException
No comment provided by developer, please add a comment to improve documentation.

Specified by:
reLayout in class AbstractLayouter
Parameters:
currentCanvas - No description provided
Throws:
java.lang.InterruptedException - Exception description not provided