public class FreeformLayout extends XYLayout
FreeformFigures.
Supports option to set only positive (x,y) coordinates for children figures.constraintsisObservingVisibility, preferredSize| Constructor and Description |
|---|
FreeformLayout() |
| Modifier and Type | Method and Description |
|---|---|
Point |
getOrigin(IFigure figure)
Returns the point (0,0) as the origin.
|
void |
invalidate()
Tells the LayoutManager to throw away all cached information about the
figures it is responsible for.
|
boolean |
isPositiveCoordinates()
Checks whether the positive coordinates flag is on, e.g positive
coordinates for children are inforced by the layout
|
void |
setPositiveCoordinates(boolean positiveCoordinates)
Sets/unsets the positive coordinates flag for true/false parameters
respectively.
|
calculatePreferredSize, getConstraint, layout, remove, setConstraintcalculatePreferredSize, getBorderPreferredSize, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, isObservingVisibility, setObserveVisibilitypublic Point getOrigin(IFigure figure)
getOrigin in class XYLayoutfigure - the figure whose origin is requestedXYLayout.getOrigin(IFigure)public boolean isPositiveCoordinates()
booleanpublic void setPositiveCoordinates(boolean positiveCoordinates)
positiveCoordinates - public void invalidate()
LayoutManagerinvalidate in interface LayoutManagerinvalidate in class AbstractLayoutAbstractLayout.invalidate()Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.