Package org.eclipse.draw2d.text
Class FlowContainerLayout
java.lang.Object
org.eclipse.draw2d.text.FlowFigureLayout
org.eclipse.draw2d.text.FlowContainerLayout
- All Implemented Interfaces:
- LayoutManager,- FlowContext
- Direct Known Subclasses:
- BlockFlowLayout,- InlineFlowLayout
A layout for FlowFigures with children.
 
WARNING: This class is not intended to be subclassed by clients.
- Since:
- 2.1
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddToCurrentLine(FlowBox child) Adds the given box the current line and clears the context's state.protected voidcleanup()Flush anything pending and free all temporary data used during layout.protected abstract voidUsed by getCurrentLine().protected abstract voidflush()Called afterlayoutChildren()when all children have been laid out.intThis method can be used to query the amount of space left on the current line.booleanprotected voidlayout()Called duringFlowFigureLayout.layout(IFigure).protected voidLayout all children.protected abstract voidCalled before layoutChildren() to setup any necessary state.Methods inherited from class org.eclipse.draw2d.text.FlowFigureLayoutgetConstraint, getContext, getFlowFigure, getMinimumSize, getPreferredSize, invalidate, layout, remove, setConstraint, setFlowContextMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.draw2d.text.FlowContextaddLine, endLine, getContinueOnSameLine, getWidthLookahead, setContinueOnSameLine
- 
Constructor Details- 
FlowContainerLayout- See Also:
 
 
- 
- 
Method Details- 
addToCurrentLineAdds the given box the current line and clears the context's state.- Specified by:
- addToCurrentLinein interface- FlowContext
- Parameters:
- child- the FlowBox to add
- See Also:
 
- 
cleanupprotected void cleanup()Flush anything pending and free all temporary data used during layout.
- 
createNewLineprotected abstract void createNewLine()Used by getCurrentLine().
- 
flushprotected abstract void flush()Called afterlayoutChildren()when all children have been laid out. This method exists to flush the last line.
- 
getRemainingLineWidthpublic int getRemainingLineWidth()Description copied from interface:FlowContextThis method can be used to query the amount of space left on the current line. It can help determine where to wrap during layout.- Specified by:
- getRemainingLineWidthin interface- FlowContext
- Returns:
- the amount of space left on the current line
- See Also:
 
- 
isCurrentLineOccupiedpublic boolean isCurrentLineOccupied()- Specified by:
- isCurrentLineOccupiedin interface- FlowContext
- Returns:
- trueif the current line contains any fragments
- See Also:
 
- 
layoutprotected void layout()Description copied from class:FlowFigureLayoutCalled duringFlowFigureLayout.layout(IFigure).- Specified by:
- layoutin class- FlowFigureLayout
- See Also:
 
- 
layoutChildrenprotected void layoutChildren()Layout all children.
- 
preLayoutprotected abstract void preLayout()Called before layoutChildren() to setup any necessary state.
 
-