public class FreeformLayout extends XYLayout
FreeformFigures
.
Supports option to set only positive (x,y) coordinates for children figures.constraints
isObservingVisibility, 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, setConstraint
calculatePreferredSize, getBorderPreferredSize, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, isObservingVisibility, setObserveVisibility
public Point getOrigin(IFigure figure)
getOrigin
in class XYLayout
figure
- the figure whose origin is requestedXYLayout.getOrigin(IFigure)
public boolean isPositiveCoordinates()
boolean
public void setPositiveCoordinates(boolean positiveCoordinates)
positiveCoordinates
- public void invalidate()
LayoutManager
invalidate
in interface LayoutManager
invalidate
in class AbstractLayout
AbstractLayout.invalidate()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.