|
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.text.FlowFigureLayout
org.eclipse.draw2d.text.FlowContainerLayout
org.eclipse.draw2d.text.InlineFlowLayout
The layout manager for InlineFlow figures.
WARNING: This class is not intended to be subclassed by clients.
| Field Summary |
| Fields inherited from class org.eclipse.draw2d.text.FlowContainerLayout |
currentLine |
| Constructor Summary | |
InlineFlowLayout(FlowFigure flow)
Creates a new InlineFlowLayout with the given FlowFigure. |
|
| Method Summary | |
void |
addToCurrentLine(FlowBox block)
Adds the given FlowBox to the current line of this InlineFlowLayout. |
protected void |
createNewLine()
Used by getCurrentLine(). |
void |
endLine()
The current line should be committed if it is occupied, and then set to null. |
protected void |
flush()
Called after FlowContainerLayout.layoutChildren() when all children have been laid out. |
boolean |
getContinueOnSameLine()
InlineFlowLayout gets this information from its context. |
int |
getCurrentY()
Returns the current Y value. |
boolean |
getWordWidthFollowing(FlowFigure child,
int[] width)
tried to find word termination first among children |
boolean |
isCurrentLineOccupied()
|
void |
preLayout()
Clears out all fragments prior to the call to layoutChildren(). |
void |
setContinueOnSameLine(boolean value)
InlineFlow passes this information to its context. |
protected void |
setupLine(LineBox line)
Initializes the given LineBox. |
| Methods inherited from class org.eclipse.draw2d.text.FlowContainerLayout |
cleanup, getCurrentLine, layout, layoutChildren |
| Methods inherited from class org.eclipse.draw2d.text.FlowFigureLayout |
getConstraint, getContext, getFlowFigure, getMinimumSize, getPreferredSize, invalidate, layout, remove, setConstraint, setFlowContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InlineFlowLayout(FlowFigure flow)
flow - The FlowFigure| Method Detail |
public void addToCurrentLine(FlowBox block)
addToCurrentLine in interface FlowContextaddToCurrentLine in class FlowContainerLayoutblock - the FlowBox to add to the current lineprotected void createNewLine()
FlowContainerLayout
createNewLine in class FlowContainerLayoutFlowContainerLayout.createNewLine()public void endLine()
FlowContextnull. Otherwise, do nothing.
FlowContext.endLine()protected void flush()
FlowContainerLayoutFlowContainerLayout.layoutChildren() when all children have been laid out. This
method exists to flush the last line.
flush in class FlowContainerLayoutFlowContainerLayout.flush()public boolean getContinueOnSameLine()
true if the next fragment should be placed on the current lineFlowContext.getContinueOnSameLine()public int getCurrentY()
FlowContext
FlowContext.getCurrentY()
public boolean getWordWidthFollowing(FlowFigure child,
int[] width)
getWordWidthFollowing in interface FlowContextgetWordWidthFollowing in class FlowContainerLayoutFlowContext.getWordWidthFollowing(FlowFigure, int[])public boolean isCurrentLineOccupied()
isCurrentLineOccupied in interface FlowContextisCurrentLineOccupied in class FlowContainerLayoutFlowContainerLayout.isCurrentLineOccupied()public void preLayout()
preLayout in class FlowContainerLayoutpublic void setContinueOnSameLine(boolean value)
value - true indicates that the first fragment of the next TextFlow
should be laid out on the current line, and not a new oneFlowContext.setContinueOnSameLine(boolean)protected void setupLine(LineBox line)
line - The LineBox to initialize.
|
Eclipse Draw2d 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||