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.void
Removes the given figure from this LayoutManager's list of figures.void
setConstraint
(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, setObserveVisibility
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:AbstractLayout
Returns the constraint for the given figure.- Specified by:
getConstraint
in interfaceLayoutManager
- Overrides:
getConstraint
in classAbstractLayout
- Parameters:
figure
- The figure- Returns:
- The constraint
- See Also:
-
remove
Description copied from class:AbstractLayout
Removes the given figure from this LayoutManager's list of figures.- Specified by:
remove
in interfaceLayoutManager
- Overrides:
remove
in classAbstractLayout
- Parameters:
figure
- The figure to remove- See Also:
-
setConstraint
Sets the layout constraint of the given figure.- Specified by:
setConstraint
in interfaceLayoutManager
- Overrides:
setConstraint
in classAbstractLayout
- Parameters:
figure
- the childnewConstraint
- the child's new constraint- Since:
- 2.0
- See Also:
-