|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.AbstractLayout
Provides generic support for LayoutManagers.
| Field Summary | |
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 Summary | |
AbstractLayout()
|
|
| Method Summary | |
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. |
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 resposible 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,
Object constraint)
Sets the constraint for the given figure. |
void |
setObserveVisibility(boolean newValue)
Sets isObservingVisibility to the given value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.draw2d.LayoutManager |
layout |
| Field Detail |
protected Dimension preferredSize
protected boolean isObservingVisibility
| Constructor Detail |
public AbstractLayout()
| Method Detail |
protected final void calculatePreferredSize(IFigure container)
calculatePreferredSize(IFigure, int, int).
container - the figure
protected abstract Dimension calculatePreferredSize(IFigure container,
int wHint,
int hHint)
container - The figurewHint - The width hinthHint - The height hint
protected Dimension getBorderPreferredSize(IFigure container)
container - The figure that the border is on
public Object getConstraint(IFigure child)
getConstraint in interface LayoutManagerchild - The figure
public final void getMinimumSize(IFigure container)
getMinimumSize(IFigure, int, int).
container - the figure
public Dimension getMinimumSize(IFigure container,
int wHint,
int hHint)
LayoutManager
getMinimumSize in interface LayoutManagercontainer - The FigurewHint - the width hinthHint - the height hint
LayoutManager.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 hint
public final void getPreferredSize(IFigure container)
getPreferredSize(IFigure, int, int).
container - the figurepublic void invalidate()
LayoutManager
invalidate 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 remove
public void setConstraint(IFigure child,
Object constraint)
setConstraint in interface LayoutManagerchild - the childconstraint - the child's new constraintpublic void setObserveVisibility(boolean newValue)
newValue - the newValue for whether or not to this layout pays attention to
visiblity when calculating its bounds.
|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||