org.argouml.uml.diagram.layout
Interface Layouter

All Known Implementing Classes:
ClassdiagramLayouter

public interface Layouter

Any layouter for any diagram type should implement this interface.


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.

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.



ArgoUML © 1996-2003 (20030919)ArgoUML Project HomeArgoUML Cookbook