|
Eclipse Draw2d 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.XYLayout
This class implements the LayoutManager interface using the
XY Layout algorithm. This lays out the components using the layout constraints as
defined by each component.
| Field Summary | |
protected Map |
constraints
The layout contraints |
| Fields inherited from class org.eclipse.draw2d.AbstractLayout |
isObservingVisibility, preferredSize |
| Constructor Summary | |
XYLayout()
|
|
| Method Summary | |
protected Dimension |
calculatePreferredSize(IFigure f,
int wHint,
int hHint)
Calculates and returns the preferred size of the input figure. |
Object |
getConstraint(IFigure figure)
Returns the constraint for the given figure. |
Point |
getOrigin(IFigure parent)
Returns the origin for the given figure. |
void |
layout(IFigure parent)
Implements the algorithm to layout the components of the given container figure. |
void |
remove(IFigure figure)
Removes the given figure from this LayoutManager's list of figures. |
void |
setConstraint(IFigure figure,
Object newConstraint)
Sets the layout constraint of the given figure. |
| Methods inherited from class org.eclipse.draw2d.AbstractLayout |
calculatePreferredSize, getBorderPreferredSize, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, invalidate, isObservingVisibility, setObserveVisibility |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Map constraints
| Constructor Detail |
public XYLayout()
| Method Detail |
protected Dimension calculatePreferredSize(IFigure f,
int wHint,
int hHint)
calculatePreferredSize in class AbstractLayoutf - The figurewHint - The width hinthHint - The height hint
AbstractLayout.calculatePreferredSize(IFigure, int, int)public Object getConstraint(IFigure figure)
AbstractLayout
getConstraint in interface LayoutManagergetConstraint in class AbstractLayoutfigure - The figure
LayoutManager.getConstraint(IFigure)public Point getOrigin(IFigure parent)
parent - the figure whose origin is requested
public void layout(IFigure parent)
parent - The figureLayoutManager.layout(IFigure)public void remove(IFigure figure)
AbstractLayout
remove in interface LayoutManagerremove in class AbstractLayoutfigure - The figure to removeLayoutManager.remove(IFigure)
public void setConstraint(IFigure figure,
Object newConstraint)
Rectangle.
setConstraint in interface LayoutManagersetConstraint in class AbstractLayoutfigure - the childnewConstraint - the child's new constraintLayoutManager.setConstraint(IFigure, Object)
|
Eclipse Draw2d 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||