|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.text.FlowFigureLayout
A LayoutManager for use with FlowFigure.
WARNING: This class is not intended to be subclassed by clients.
Constructor Summary | |
protected |
FlowFigureLayout(FlowFigure flowfigure)
Constructs a new FlowFigureLayout with the given FlowFigure. |
Method Summary | |
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,
Object constraint)
Not applicable. |
void |
setFlowContext(FlowContext flowContext)
Sets the context for this layout manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected FlowFigureLayout(FlowFigure flowfigure)
flowfigure
- the FlowFigureMethod Detail |
public Object getConstraint(IFigure child)
getConstraint
in interface LayoutManager
child
- The figure
LayoutManager.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 LayoutManager
container
- The FigurewHint
- the width hinthHint
- the height hint
LayoutManager.getMinimumSize(org.eclipse.draw2d.IFigure, int, int)
public Dimension getPreferredSize(IFigure container, int wHint, int hHint)
getPreferredSize
in interface LayoutManager
container
- The figurewHint
- The width hinthHint
- The height hint
LayoutManager.getPreferredSize(org.eclipse.draw2d.IFigure, int, int)
public void invalidate()
invalidate
in interface LayoutManager
LayoutManager.invalidate()
protected abstract void layout()
layout(IFigure)
.
public final void layout(IFigure figure)
LayoutManager
layout
in interface LayoutManager
figure
- The figureLayoutManager.layout(IFigure)
public void remove(IFigure child)
remove
in interface LayoutManager
child
- the child being remocedLayoutManager.remove(org.eclipse.draw2d.IFigure)
public void setConstraint(IFigure child, Object constraint)
setConstraint
in interface LayoutManager
child
- The figureconstraint
- The constraintLayoutManager.setConstraint(org.eclipse.draw2d.IFigure, java.lang.Object)
public void setFlowContext(FlowContext flowContext)
flowContext
- the context of this layout
|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |