|
Eclipse Draw2d 3.2 |
||||||||||
| 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.AbstractHintLayout
org.eclipse.draw2d.BorderLayout
| Field Summary | |
static Integer |
BOTTOM
Constant to be used as a constraint for child figures |
static Integer |
CENTER
Constant to be used as a constraint for child figures |
static Integer |
LEFT
Constant to be used as a constraint for child figures |
static Integer |
RIGHT
Constant to be used as a constraint for child figures |
static Integer |
TOP
Constant to be used as a constraint for child figures |
| Fields inherited from class org.eclipse.draw2d.AbstractLayout |
isObservingVisibility, preferredSize |
| Constructor Summary | |
BorderLayout()
|
|
| Method Summary | |
protected Dimension |
calculateMinimumSize(IFigure container,
int wHint,
int hHint)
Calculates the minimum size using the given width and height hints. |
protected Dimension |
calculatePreferredSize(IFigure container,
int wHint,
int hHint)
Calculates the preferred size of the given figure, using width and height hints. |
void |
layout(IFigure container)
Lays out the given figure. |
void |
remove(IFigure child)
Removes the given figure from this LayoutManager's list of figures. |
void |
setConstraint(IFigure child,
Object constraint)
Sets the location of hte given child in this layout. |
void |
setHorizontalSpacing(int gap)
Sets the horizontal spacing to be used between the children. |
void |
setVerticalSpacing(int gap)
Sets the vertical spacing ot be used between the children. |
| Methods inherited from class org.eclipse.draw2d.AbstractHintLayout |
getMinimumSize, getPreferredSize, invalidate, isSensitiveHorizontally, isSensitiveVertically |
| Methods inherited from class org.eclipse.draw2d.AbstractLayout |
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getPreferredSize, invalidate, isObservingVisibility, setObserveVisibility |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final Integer CENTER
public static final Integer TOP
public static final Integer BOTTOM
public static final Integer LEFT
public static final Integer RIGHT
| Constructor Detail |
public BorderLayout()
| Method Detail |
protected Dimension calculateMinimumSize(IFigure container,
int wHint,
int hHint)
AbstractHintLayoutAbstractHintLayout.getMinimumSize(IFigure, int, int) whenever the cached minimum size
has been flushed.
By default, this method just calls AbstractHintLayout.getPreferredSize(IFigure, int, int),
meaning minimum and preferres sizes will be the same unless this method is overridden.
calculateMinimumSize in class AbstractHintLayoutcontainer - the Figure on which this layout is installedwHint - the width hinthHint - the height hint
AbstractHintLayout.calculateMinimumSize(IFigure, int, int)
protected Dimension calculatePreferredSize(IFigure container,
int wHint,
int hHint)
AbstractLayout
calculatePreferredSize in class AbstractLayoutcontainer - The figurewHint - The width hinthHint - The height hint
AbstractLayout.calculatePreferredSize(IFigure, int, int)public void layout(IFigure container)
LayoutManager
container - The figureLayoutManager.layout(IFigure)public void remove(IFigure child)
AbstractLayout
remove in interface LayoutManagerremove in class AbstractLayoutchild - The figure to removeAbstractLayout.remove(IFigure)
public void setConstraint(IFigure child,
Object constraint)
Ensure that the given Figure is indeed a child of the Figure on which this layout has been set. Proper behaviour cannot be guaranteed if that is not the case. Also ensure that every child has a valid constraint.
Passing a null constraint will invoke remove(IFigure).
If the given child was assigned another constraint earlier, it will be re-assigned to the new constraint. If there is another child with the given constraint, it will be over-ridden so that the given child now has that constraint.
setConstraint in interface LayoutManagersetConstraint in class AbstractLayoutchild - the childconstraint - the child's new constraintAbstractLayout.setConstraint(IFigure, Object)public void setHorizontalSpacing(int gap)
gap - The horizonal spacingpublic void setVerticalSpacing(int gap)
gap - The vertical spacing
|
Eclipse Draw2d 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||