Package org.eclipse.draw2d
Interface LayoutManager
- All Known Implementing Classes:
- AbstractConstraintLayout,- AbstractHintLayout,- AbstractLayout,- BlockFlowLayout,- BorderLayout,- DelegatingLayout,- FlowContainerLayout,- FlowFigureLayout,- FlowLayout,- FreeformLayout,- GridLayout,- InlineFlowLayout,- OrderedLayout,- PageFlowLayout,- ParagraphTextLayout,- ScrollBarLayout,- ScrollPaneLayout,- SimpleTextLayout,- StackLayout,- TextLayout,- ToolbarLayout,- ViewportLayout,- XYLayout
public interface LayoutManager
A helper for positioning child figures and determining the ideal size for a
 figure with children.
- 
Method SummaryModifier and TypeMethodDescriptiongetConstraint(IFigure child) Returns the constraint for the given figure.getMinimumSize(IFigure container, int wHint, int hHint) Returns the minimum size of the given figure.getPreferredSize(IFigure container, int wHint, int hHint) Returns the preferred size of the given figure, using width and height hints.voidTells the LayoutManager to throw away all cached information about the figures it is responsible for.voidLays out the given figure.voidRemoves the given child from this layout.voidsetConstraint(IFigure child, Object constraint) Sets the constraint for the given child.
- 
Method Details- 
getConstraintReturns the constraint for the given figure.- Parameters:
- child- The figure
- Returns:
- The constraint
 
- 
getMinimumSizeReturns the minimum size of the given figure.- Parameters:
- container- The Figure
- wHint- the width hint
- hHint- the height hint
- Returns:
- The minimum size
 
- 
getPreferredSizeReturns the preferred size of the given figure, using width and height hints.- Parameters:
- container- The figure
- wHint- The width hint
- hHint- The height hint
- Returns:
- The preferred size
 
- 
invalidatevoid invalidate()Tells the LayoutManager to throw away all cached information about the figures it is responsible for. This method is called whenever the owning figure is invalidated.
- 
layoutLays out the given figure.- Parameters:
- container- The figure
 
- 
removeRemoves the given child from this layout.- Parameters:
- child- the child being remoced
 
- 
setConstraintSets the constraint for the given child.- Parameters:
- child- The figure
- constraint- The constraint
 
 
-