|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.AbstractLayout | +--org.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 |
Fields inherited from class org.eclipse.draw2d.text.FlowFigureLayout |
context, invalid |
Fields inherited from class org.eclipse.draw2d.AbstractLayout |
preferredSize |
Constructor Summary | |
BlockFlowLayout(BlockFlow blockFlow)
|
Method Summary | |
protected void |
cleanup()
Flush anything pending and free all temporary data used during layout. |
protected void |
createNewLine()
Used by getCurrentLine(). |
protected void |
endBlock()
|
void |
endLine()
The current line should be committed if it is occupied, and then set to null . |
protected void |
flush()
Called after layoutChildren() when all children have been laid out. |
protected BlockFlow |
getBlockFlow()
|
int |
getCurrentY()
|
protected void |
layoutChildren()
Layout all children. |
protected void |
layoutLine()
Adjust all fragments in the current line to have the same baseline. |
protected void |
preLayout()
Called before layoutChildren() to setup any necessary state. |
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, isCurrentLineOccupied, layout |
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, remove, setConstraint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BlockFlowLayout(BlockFlow blockFlow)
Method Detail |
protected void cleanup()
FlowContainerLayout
cleanup
in class FlowContainerLayout
protected void createNewLine()
FlowContainerLayout
createNewLine
in class FlowContainerLayout
protected void endBlock()
public void endLine()
FlowContext
null
. Otherwise, do nothing.
protected void layoutChildren()
FlowContainerLayout
layoutChildren
in class FlowContainerLayout
FlowContainerLayout.layoutChildren()
public int getCurrentY()
FlowContext.getCurrentY()
protected final BlockFlow getBlockFlow()
protected void layoutLine()
protected void flush()
FlowContainerLayout
FlowContainerLayout.layoutChildren()
when all children have been laid out. This
method exists to flush the last line.
flush
in class FlowContainerLayout
protected void preLayout()
FlowContainerLayout
preLayout
in class FlowContainerLayout
protected void setupBlock()
protected void setupLine(LineBox line)
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |