|
Eclipse Draw2d 3.0 |
||||||||||
| 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
org.eclipse.draw2d.text.FlowContainerLayout
A layout for FlowFigures with children.
WARNING: This class is not intended to be subclassed by clients.
| Field Summary | |
protected LineBox |
currentLine
the current line |
| Fields inherited from class org.eclipse.draw2d.text.FlowFigureLayout |
context, invalid |
| Fields inherited from class org.eclipse.draw2d.AbstractLayout |
isObservingVisibility, preferredSize |
| Constructor Summary | |
protected |
FlowContainerLayout(FlowFigure flowFigure)
|
| Method Summary | |
void |
addToCurrentLine(FlowBox block)
Clears the layout state everytime a new box is added to the current line: FlowContext.setConsumeSpaceOnNewLine(boolean) and
FlowContext.setContinueOnSameLine(boolean) |
protected void |
cleanup()
Flush anything pending and free all temporary data used during layout. |
protected abstract void |
createNewLine()
Used by getCurrentLine(). |
protected abstract void |
flush()
Called after layoutChildren() when all children have been laid out. |
LineBox |
getCurrentLine()
FlowBoxes shouldn't be added directly to the current line. |
boolean |
getWordWidthFollowing(FlowFigure child,
int[] width)
This method looks ahead for line-breaks. |
boolean |
isCurrentLineOccupied()
|
protected void |
layout()
Called during FlowFigureLayout.layout(IFigure). |
protected void |
layoutChildren()
Layout all children. |
protected abstract void |
preLayout()
Called before layoutChildren() to setup any necessary state. |
| Methods inherited from class org.eclipse.draw2d.text.FlowFigureLayout |
calculatePreferredSize, getFlowFigure, invalidate, layout, setFlowContext |
| 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 |
| Methods inherited from interface org.eclipse.draw2d.text.FlowContext |
endLine, getConsumeSpaceOnNewLine, getContinueOnSameLine, getCurrentY, setConsumeSpaceOnNewLine, setContinueOnSameLine |
| Field Detail |
protected LineBox currentLine
| Constructor Detail |
protected FlowContainerLayout(FlowFigure flowFigure)
FlowFigureLayout.FlowFigureLayout(FlowFigure)| Method Detail |
public void addToCurrentLine(FlowBox block)
FlowContext.setConsumeSpaceOnNewLine(boolean) and
FlowContext.setContinueOnSameLine(boolean).
* @see org.eclipse.draw2d.text.FlowContext#addToCurrentLine(FlowBox)
addToCurrentLine in interface FlowContextblock - the FlowBox to addprotected void cleanup()
protected abstract void createNewLine()
protected abstract void flush()
layoutChildren() when all children have been laid out. This
method exists to flush the last line.
public LineBox getCurrentLine()
addToCurrentLine(FlowBox) for that.
* @see org.eclipse.draw2d.text.FlowContext#getCurrentLine()
getCurrentLine in interface FlowContext
public boolean getWordWidthFollowing(FlowFigure child,
int[] width)
FlowContext
getWordWidthFollowing in interface FlowContextchild - the search will occur starting from the figure after the given childwidth - the width before the next line-break (if one's found; all the width,
otherwise) will be added on to the first int in the given array
FlowContext.getWordWidthFollowing(FlowFigure, int[])public boolean isCurrentLineOccupied()
isCurrentLineOccupied in interface FlowContexttrue if the current line contains any fragmentsFlowContext.isCurrentLineOccupied()protected void layout()
FlowFigureLayoutFlowFigureLayout.layout(IFigure). The FlowFigureLayout.invalid flag is reset after this
method is called.
layout in class FlowFigureLayoutFlowFigureLayout.layout()protected void layoutChildren()
protected abstract void preLayout()
|
Eclipse Draw2d 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||