public abstract class FlowFigureLayout extends java.lang.Object implements LayoutManager
WARNING: This class is not intended to be subclassed by clients.
| Modifier | Constructor and Description |
|---|---|
protected |
FlowFigureLayout(FlowFigure flowfigure)
Constructs a new FlowFigureLayout with the given FlowFigure.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getConstraint(IFigure child)
Not applicable.
|
protected FlowContext |
getContext()
Returns this layout's context or
null. |
protected FlowFigure |
getFlowFigure() |
Dimension |
getMinimumSize(IFigure container,
int wHint,
int hHint)
Not applicable.
|
Dimension |
getPreferredSize(IFigure container,
int wHint,
int hHint)
Not applicable.
|
void |
invalidate()
Not applicable.
|
protected abstract void |
layout()
Called during
layout(IFigure). |
void |
layout(IFigure figure)
Lays out the given figure.
|
void |
remove(IFigure child)
Not applicable.
|
void |
setConstraint(IFigure child,
java.lang.Object constraint)
Not applicable.
|
void |
setFlowContext(FlowContext flowContext)
Sets the context for this layout manager.
|
protected FlowFigureLayout(FlowFigure flowfigure)
flowfigure - the FlowFigurepublic java.lang.Object getConstraint(IFigure child)
getConstraint in interface LayoutManagerchild - The figureLayoutManager.getConstraint(org.eclipse.draw2d.IFigure)protected FlowContext getContext()
null.null or a contextprotected FlowFigure getFlowFigure()
public Dimension getMinimumSize(IFigure container, int wHint, int hHint)
getMinimumSize in interface LayoutManagercontainer - The FigurewHint - the width hinthHint - the height hintLayoutManager.getMinimumSize(org.eclipse.draw2d.IFigure,
int, int)public Dimension getPreferredSize(IFigure container, int wHint, int hHint)
getPreferredSize in interface LayoutManagercontainer - The figurewHint - The width hinthHint - The height hintLayoutManager.getPreferredSize(org.eclipse.draw2d.IFigure,
int, int)public void invalidate()
invalidate in interface LayoutManagerLayoutManager.invalidate()protected abstract void layout()
layout(IFigure).public final void layout(IFigure figure)
LayoutManagerlayout in interface LayoutManagerfigure - The figureLayoutManager.layout(IFigure)public void remove(IFigure child)
remove in interface LayoutManagerchild - the child being remocedLayoutManager.remove(org.eclipse.draw2d.IFigure)public void setConstraint(IFigure child, java.lang.Object constraint)
setConstraint in interface LayoutManagerchild - The figureconstraint - The constraintLayoutManager.setConstraint(org.eclipse.draw2d.IFigure,
java.lang.Object)public void setFlowContext(FlowContext flowContext)
flowContext - the context of this layoutCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.