be.ac.vub.cocompose.eclipse.figures
Class ConceptLayout
java.lang.Object
org.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.XYLayout
org.eclipse.draw2d.FreeformLayout
be.ac.vub.cocompose.eclipse.figures.ConceptLayout
- All Implemented Interfaces:
- LayoutManager
- public class ConceptLayout
- extends FreeformLayout
Manages the layout of concept elements.
- Since:
- 0.2.0
- Version:
- 0.2.0, 09/01/2004
- Author:
- Dennis Wagelaar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConceptLayout
public ConceptLayout()
setConstraint
public void setConstraint(IFigure figure,
Object newConstraint)
- Clips the Rectangle constraint to behave like a vertical flow layout.
- See Also:
LayoutManager.setConstraint(IFigure, Object)
clipConstraint
public void clipConstraint(IFigure figure,
Rectangle constraint)
- Clips the position constraint to behave like a vertical flow layout.
- Parameters:
figure
- - the figure of which to clip the position.constraint
- - the rectangle to clip.
calculatePreferredSize
protected Dimension calculatePreferredSize(IFigure f,
int wHint,
int hHint)
- Forces expansion of preferred size by (1, 1) to prevent
clipping of contained figures.
- See Also:
AbstractLayout.calculatePreferredSize(org.eclipse.draw2d.IFigure, int, int)