de.uni_paderborn.fujaba.layout.classdiag.internalmodel
Interface Layouter

All Known Implementing Classes:
ClassdiagramLayouter

public interface Layouter

Any layouter for any diagram type should implement this interface. The class has been taken from Argo UML source code.

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

Method Summary
 void add(LayoutedObject obj)
          Add another object to the diagram.
 java.awt.Dimension getMinimumDiagramSize()
          Operation getMinimumDiagramSize returns the minimum diagram size after the layout, so the diagram could be resized to this size.
 LayoutedObject getObject(int index)
          Operation getObject returns one object from the diagram.
 LayoutedObject[] getObjects()
          Operation getObjects returns all the layouted objects from this diagram.
 void layout()
          This operation starts the actual layout process.
 void remove(LayoutedObject obj)
          Remove a object from the diagram.
 

Method Detail

add

public void add(LayoutedObject obj)
Add another object to the diagram.

Parameters:
obj - represents the object to be part of the diagram.

remove

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

Parameters:
obj - represents the object to be removed.

getObjects

public LayoutedObject[] getObjects()
Operation getObjects returns all the layouted objects from this diagram.

Returns:
An array with the layouted objects of this diagram.

getObject

public LayoutedObject getObject(int index)
Operation getObject returns one object from the diagram.

Parameters:
index - represents the index of this object.
Returns:
the object

layout

public void layout()
This operation starts the actual layout process.


getMinimumDiagramSize

public java.awt.Dimension getMinimumDiagramSize()
Operation getMinimumDiagramSize returns the minimum diagram size after the layout, so the diagram could be resized to this size.

Returns:
the size/dimension