|
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.BlockFlowLayout
The layout for BlockFlow 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 | |
BlockFlowLayout(BlockFlow blockFlow)
Creates a new BlockFlowLayout with the given BlockFlow. |
|
| Method Summary | |
void |
blockContentsChanged()
Marks the blocks contents as changed. |
protected void |
cleanup()
Flush anything pending and free all temporary data used during layout. |
protected void |
createNewLine()
Used by getCurrentLine(). |
protected void |
endBlock()
Called by flush(), adds the BlockBox associated with this BlockFlowLayout to the current line and then ends the line. |
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. |
protected BlockFlow |
getBlockFlow()
Returns the BlockFlow associated with this BlockFlowLayout |
boolean |
getContinueOnSameLine()
This method is used to convey layout state to different FlowFigures. |
int |
getCurrentY()
Returns the current Y value. |
protected void |
layoutLine()
Align the line horizontally and then commit it. |
protected void |
preLayout()
Called before layoutChildren() to setup any necessary state. |
void |
setContinueOnSameLine(boolean value)
This method is used to convey layout state to different FlowFigures. |
protected void |
setupBlock()
sets up the single block that contains all of the lines. |
protected void |
setupLine(LineBox line)
Override to setup the line's x, remaining, and available width. |
| Methods inherited from class org.eclipse.draw2d.text.FlowContainerLayout |
addToCurrentLine, getCurrentLine, getWordWidthFollowing, isCurrentLineOccupied, 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 BlockFlowLayout(BlockFlow blockFlow)
blockFlow - the BlockFlow| Method Detail |
public void blockContentsChanged()
protected void cleanup()
FlowContainerLayout
cleanup in class FlowContainerLayoutFlowContainerLayout.cleanup()public boolean getContinueOnSameLine()
FlowContext
true if the next fragment should be placed on the current lineFlowContext.getContinueOnSameLine()protected void createNewLine()
FlowContainerLayout
createNewLine in class FlowContainerLayoutFlowContainerLayout.createNewLine()protected void endBlock()
public void endLine()
FlowContextnull. Otherwise, do nothing.
FlowContext.endLine()public int getCurrentY()
FlowContext
FlowContext.getCurrentY()protected final BlockFlow getBlockFlow()
protected void layoutLine()
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()protected void preLayout()
FlowContainerLayout
preLayout in class FlowContainerLayoutFlowContainerLayout.preLayout()public void setContinueOnSameLine(boolean value)
FlowContext
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 setupBlock()
protected void setupLine(LineBox line)
line - the LineBox to set up
|
Eclipse Draw2d 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||