Package org.eclipse.draw2d
Class FreeformLayout
java.lang.Object
org.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.AbstractConstraintLayout
org.eclipse.draw2d.XYLayout
org.eclipse.draw2d.FreeformLayout
- All Implemented Interfaces:
LayoutManager
A layout for
FreeformFigures.
Supports option to set only positive (x,y) coordinates for children figures.-
Field Summary
Fields inherited from class org.eclipse.draw2d.AbstractConstraintLayout
constraintsFields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the point (0,0) as the origin.voidTells the LayoutManager to throw away all cached information about the figures it is responsible for.booleanChecks whether the positive coordinates flag is on, e.g positive coordinates for children are inforced by the layoutvoidsetPositiveCoordinates(boolean positiveCoordinates) Sets/unsets the positive coordinates flag for true/false parameters respectively.Methods inherited from class org.eclipse.draw2d.XYLayout
calculatePreferredSize, layout, setConstraintMethods inherited from class org.eclipse.draw2d.AbstractConstraintLayout
getConstraint, removeMethods inherited from class org.eclipse.draw2d.AbstractLayout
calculatePreferredSize, getBorderPreferredSize, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, isObservingVisibility, setObserveVisibility
-
Constructor Details
-
FreeformLayout
public FreeformLayout()
-
-
Method Details
-
getOrigin
Returns the point (0,0) as the origin. -
isPositiveCoordinates
public boolean isPositiveCoordinates()Checks whether the positive coordinates flag is on, e.g positive coordinates for children are inforced by the layout- Returns:
boolean- Since:
- 3.6
-
setPositiveCoordinates
public void setPositiveCoordinates(boolean positiveCoordinates) Sets/unsets the positive coordinates flag for true/false parameters respectively. If option is set to on then layout calculates positive coordinates for children figures by adjusting the layout origin accordingly.- Parameters:
positiveCoordinates-- Since:
- 3.6
-
invalidate
public void invalidate()Description copied from interface:LayoutManagerTells 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.- Specified by:
invalidatein interfaceLayoutManager- Overrides:
invalidatein classAbstractLayout- See Also:
-