|
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
org.eclipse.draw2d.text.FlowFigureLayout
A LayoutManager for use with FlowFigure.
WARNING: This class is not intended to be subclassed by clients.
| Field Summary | |
protected FlowContext |
context
The flow context in which this LayoutManager exists. |
protected boolean |
invalid
true if the context has changed, and a layout is needed. |
| Fields inherited from class org.eclipse.draw2d.AbstractLayout |
isObservingVisibility, preferredSize |
| Constructor Summary | |
protected |
FlowFigureLayout(FlowFigure flowfigure)
Constructs a new FlowFigureLayout with the given FlowFigure. |
| Method Summary | |
Dimension |
calculatePreferredSize(IFigure f,
int w,
int h)
TextFlowLayouts do not calculate a preferred size because it is too expensive. |
protected FlowFigure |
getFlowFigure()
|
void |
invalidate()
Marks this layout as invalid. |
protected abstract void |
layout()
Called during layout(IFigure). |
void |
layout(IFigure figure)
Lays out the given figure. |
void |
setFlowContext(FlowContext flowContext)
Sets the context for this layout manager. |
| Methods inherited from class org.eclipse.draw2d.AbstractLayout |
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibility |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean invalid
true if the context has changed, and a layout is needed.
protected FlowContext context
| Constructor Detail |
protected FlowFigureLayout(FlowFigure flowfigure)
flowfigure - the FlowFigure| Method Detail |
public Dimension calculatePreferredSize(IFigure f,
int w,
int h)
FlowPage will actually layout itself in order to calculate preferredSize.
calculatePreferredSize in class AbstractLayoutf - The figurew - The width hinth - The height hint
AbstractLayout.calculatePreferredSize(IFigure)protected FlowFigure getFlowFigure()
public void invalidate()
invalidate in interface LayoutManagerinvalidate in class AbstractLayoutLayoutManager.invalidate()public final void layout(IFigure figure)
LayoutManager
figure - The figureLayoutManager.layout(IFigure)protected abstract void layout()
layout(IFigure). The invalid flag is reset after this
method is called.
public void setFlowContext(FlowContext flowContext)
flowContext - the context of this layout
|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||