public abstract class AbstractLayout extends java.lang.Object implements LayoutManager
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isObservingVisibility
Whether or not this layout pays attention to visiblity of figures when
calculating its bounds.
|
protected Dimension |
preferredSize
The cached preferred size.
|
| Constructor and Description |
|---|
AbstractLayout() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculatePreferredSize(IFigure container)
This method is now
calculatePreferredSize(IFigure, int, int). |
protected abstract Dimension |
calculatePreferredSize(IFigure container,
int wHint,
int hHint)
Calculates the preferred size of the given figure, using width and height
hints.
|
protected Dimension |
getBorderPreferredSize(IFigure container)
Returns the preferred size of the figure's border.
|
java.lang.Object |
getConstraint(IFigure child)
Returns the constraint for the given figure.
|
void |
getMinimumSize(IFigure container)
This method is now
getMinimumSize(IFigure, int, int). |
Dimension |
getMinimumSize(IFigure container,
int wHint,
int hHint)
Returns the minimum size of the given figure.
|
void |
getPreferredSize(IFigure container)
This method is now
getPreferredSize(IFigure, int, int). |
Dimension |
getPreferredSize(IFigure container,
int wHint,
int hHint)
Returns the preferred size of the given figure, using width and height
hints.
|
void |
invalidate()
Tells the LayoutManager to throw away all cached information about the
figures it is responsible for.
|
protected void |
invalidate(IFigure child)
Removes any cached information about the given figure.
|
boolean |
isObservingVisibility()
Returns whether or not this layout pays attention to visiblity when
calculating its bounds.
|
void |
remove(IFigure child)
Removes the given figure from this LayoutManager's list of figures.
|
void |
setConstraint(IFigure child,
java.lang.Object constraint)
Sets the constraint for the given figure.
|
void |
setObserveVisibility(boolean newValue)
Sets isObservingVisibility to the given value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlayoutprotected Dimension preferredSize
protected boolean isObservingVisibility
protected final void calculatePreferredSize(IFigure container)
calculatePreferredSize(IFigure, int, int).container - the figureprotected abstract Dimension calculatePreferredSize(IFigure container, int wHint, int hHint)
container - The figurewHint - The width hinthHint - The height hintprotected Dimension getBorderPreferredSize(IFigure container)
container - The figure that the border is onpublic java.lang.Object getConstraint(IFigure child)
getConstraint in interface LayoutManagerchild - The figurepublic final void getMinimumSize(IFigure container)
getMinimumSize(IFigure, int, int).container - the figurepublic Dimension getMinimumSize(IFigure container, int wHint, int hHint)
LayoutManagergetMinimumSize in interface LayoutManagercontainer - The FigurewHint - the width hinthHint - the height hintLayoutManager.getMinimumSize(IFigure, int, int)public Dimension getPreferredSize(IFigure container, int wHint, int hHint)
calculatePreferredSize(IFigure, int, int) is called.getPreferredSize in interface LayoutManagercontainer - The figurewHint - The width hinthHint - The height hintpublic final void getPreferredSize(IFigure container)
getPreferredSize(IFigure, int, int).container - the figurepublic void invalidate()
LayoutManagerinvalidate in interface LayoutManagerLayoutManager.invalidate()protected void invalidate(IFigure child)
child - the child that is invalidatedpublic boolean isObservingVisibility()
public void remove(IFigure child)
remove in interface LayoutManagerchild - The figure to removepublic void setConstraint(IFigure child, java.lang.Object constraint)
setConstraint in interface LayoutManagerchild - the childconstraint - the child's new constraintpublic void setObserveVisibility(boolean newValue)
newValue - true if visibility should be observedCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.