de.cau.cs.kieler.synccharts.custom
Class ListCompartmentLayout
java.lang.Object
org.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.XYLayout
de.cau.cs.kieler.synccharts.custom.ListCompartmentLayout
- All Implemented Interfaces:
- LayoutManager
public class ListCompartmentLayout
- extends XYLayout
A layout for compartments that lays out the compartment's children in rows,
which are wrapped around if they are longer than the available space.
- Rating

- (2010-01-27) msp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListCompartmentLayout
public ListCompartmentLayout()
layout
public void layout(IFigure container)
- Apply the layout.
- Specified by:
layout
in interface LayoutManager
- Overrides:
layout
in class XYLayout
- Parameters:
container
- the figure
getMinimumSize
public Dimension getMinimumSize(IFigure container,
int wHint,
int hHint)
-
- Specified by:
getMinimumSize
in interface LayoutManager
- Overrides:
getMinimumSize
in class AbstractLayout
calculateMinimumSize
protected Dimension calculateMinimumSize(IFigure container,
int wHint,
int hHint)
- Performs calculation of the minimum size of the container.
- Parameters:
container
- the container figurewHint
- width hinthHint
- height hint
- Returns:
- the minimum size
calculatePreferredSize
protected Dimension calculatePreferredSize(IFigure container,
int wHint,
int hHint)
-
- Overrides:
calculatePreferredSize
in class XYLayout