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


public interface LayoutedContainer

This interface is for container in a layouted diagram. They are intended to hold other object like nodes or even other containers. An example are nested packages in classdiagrams. 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 an object to this container.
 LayoutedObject[] getContent()
          Operation getContent returns all the objects from this container.
 void remove(LayoutedObject obj)
          Remove an object from this container.
 void resize(java.awt.Dimension newSize)
          Resize this container, so it fits the layouted objects within itself.
 

Method Detail

add

public void add(LayoutedObject obj)
Add an object to this container.

Parameters:
obj - represents the object to add to this container.

remove

public void remove(LayoutedObject obj)
Remove an object from this container.

Parameters:
obj - represents the object to be removed.

getContent

public LayoutedObject[] getContent()
Operation getContent returns all the objects from this container.

Returns:
All the objects from this container.

resize

public void resize(java.awt.Dimension newSize)
Resize this container, so it fits the layouted objects within itself.

Parameters:
newSize - represents The new size of this container.