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 Summary
FieldsModifier and TypeFieldDescriptionThe layout constraintsFields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AbstractLayout
calculatePreferredSize, calculatePreferredSize, getBorderPreferredSize, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, invalidate, isObservingVisibility, setObserveVisibilityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.draw2d.LayoutManager
layout
-
Field Details
-
constraints
The layout constraints
-
-
Constructor Details
-
AbstractConstraintLayout
protected AbstractConstraintLayout()
-
-
Method Details
-
getConstraint
Description copied from class:AbstractLayoutReturns the constraint for the given figure.- Specified by:
getConstraintin interfaceLayoutManager- Overrides:
getConstraintin classAbstractLayout- Parameters:
figure- The figure- Returns:
- The constraint
- See Also:
-
remove
Description copied from class:AbstractLayoutRemoves the given figure from this LayoutManager's list of figures.- Specified by:
removein interfaceLayoutManager- Overrides:
removein classAbstractLayout- Parameters:
figure- The figure to remove- See Also:
-
setConstraint
Sets the layout constraint of the given figure.- Specified by:
setConstraintin interfaceLayoutManager- Overrides:
setConstraintin classAbstractLayout- Parameters:
figure- the childnewConstraint- the child's new constraint- Since:
- 2.0
- See Also:
-