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 SummaryFields inherited from class org.eclipse.draw2d.AbstractConstraintLayoutconstraintsFields inherited from class org.eclipse.draw2d.AbstractLayoutisObservingVisibility, preferredSize
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.XYLayoutcalculatePreferredSize, layout, setConstraintMethods inherited from class org.eclipse.draw2d.AbstractConstraintLayoutgetConstraint, removeMethods inherited from class org.eclipse.draw2d.AbstractLayoutcalculatePreferredSize, getBorderPreferredSize, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, isObservingVisibility, setObserveVisibility
- 
Constructor Details- 
FreeformLayoutpublic FreeformLayout()
 
- 
- 
Method Details- 
getOriginReturns the point (0,0) as the origin.
- 
isPositiveCoordinatespublic 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
 
- 
setPositiveCoordinatespublic 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
 
- 
invalidatepublic 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 interface- LayoutManager
- Overrides:
- invalidatein class- AbstractLayout
- See Also:
 
 
-