public abstract class FlowContainerLayout extends FlowFigureLayout implements FlowContext
WARNING: This class is not intended to be subclassed by clients.
Modifier | Constructor and Description |
---|---|
protected |
FlowContainerLayout(FlowFigure flowFigure) |
Modifier and Type | Method and Description |
---|---|
void |
addToCurrentLine(FlowBox child)
Adds the given box the current line and clears the context's state.
|
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. |
int |
getRemainingLineWidth()
This method can be used to query the amount of space left on the current
line.
|
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.
|
getConstraint, getContext, getFlowFigure, getMinimumSize, getPreferredSize, invalidate, layout, remove, setConstraint, setFlowContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLine, endLine, getContinueOnSameLine, getWidthLookahead, setContinueOnSameLine
protected FlowContainerLayout(FlowFigure flowFigure)
public void addToCurrentLine(FlowBox child)
addToCurrentLine
in interface FlowContext
child
- the FlowBox to addFlowContext.addToCurrentLine(FlowBox)
protected 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 int getRemainingLineWidth()
FlowContext
getRemainingLineWidth
in interface FlowContext
FlowContext.getRemainingLineWidth()
public boolean isCurrentLineOccupied()
isCurrentLineOccupied
in interface FlowContext
true
if the current line contains any fragmentsFlowContext.isCurrentLineOccupied()
protected void layout()
FlowFigureLayout
FlowFigureLayout.layout(IFigure)
.layout
in class FlowFigureLayout
FlowFigureLayout.layout()
protected void layoutChildren()
protected abstract void preLayout()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.