Package org.eclipse.draw2d
Class AbstractConstraintLayout
java.lang.Object
org.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.AbstractConstraintLayout
- All Implemented Interfaces:
- LayoutManager
- Direct Known Subclasses:
- DelegatingLayout,- XYLayout
Common base class for layouts working on a constraint per figure.
- Since:
- 3.16
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe layout constraintsFields inherited from class org.eclipse.draw2d.AbstractLayoutisObservingVisibility, preferredSize
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetConstraint(IFigure figure) Returns the constraint for the given figure.voidRemoves the given figure from this LayoutManager's list of figures.voidsetConstraint(IFigure figure, Object newConstraint) Sets the layout constraint of the given figure.Methods inherited from class org.eclipse.draw2d.AbstractLayoutcalculatePreferredSize, calculatePreferredSize, getBorderPreferredSize, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, invalidate, isObservingVisibility, setObserveVisibilityMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.draw2d.LayoutManagerlayout
- 
Field Details- 
constraintsThe layout constraints
 
- 
- 
Constructor Details- 
AbstractConstraintLayoutprotected AbstractConstraintLayout()
 
- 
- 
Method Details- 
getConstraintDescription copied from class:AbstractLayoutReturns the constraint for the given figure.- Specified by:
- getConstraintin interface- LayoutManager
- Overrides:
- getConstraintin class- AbstractLayout
- Parameters:
- figure- The figure
- Returns:
- The constraint
- See Also:
 
- 
removeDescription copied from class:AbstractLayoutRemoves the given figure from this LayoutManager's list of figures.- Specified by:
- removein interface- LayoutManager
- Overrides:
- removein class- AbstractLayout
- Parameters:
- figure- The figure to remove
- See Also:
 
- 
setConstraintSets the layout constraint of the given figure.- Specified by:
- setConstraintin interface- LayoutManager
- Overrides:
- setConstraintin class- AbstractLayout
- Parameters:
- figure- the child
- newConstraint- the child's new constraint
- Since:
- 2.0
- See Also:
 
 
-