Package org.eclipse.draw2d.text
Class FlowFigureLayout
java.lang.Object
org.eclipse.draw2d.text.FlowFigureLayout
- All Implemented Interfaces:
LayoutManager
- Direct Known Subclasses:
FlowContainerLayout,TextLayout
A LayoutManager for use with FlowFigure.
WARNING: This class is not intended to be subclassed by clients.
- Since:
- 2.1
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFlowFigureLayout(FlowFigure flowfigure) Constructs a new FlowFigureLayout with the given FlowFigure. -
Method Summary
Modifier and TypeMethodDescriptiongetConstraint(IFigure child) Not applicable.protected FlowContextReturns this layout's context ornull.protected FlowFiguregetMinimumSize(IFigure container, int wHint, int hHint) Not applicable.getPreferredSize(IFigure container, int wHint, int hHint) Not applicable.voidNot applicable.protected abstract voidlayout()Called duringlayout(IFigure).final voidLays out the given figure.voidNot applicable.voidsetConstraint(IFigure child, Object constraint) Not applicable.voidsetFlowContext(FlowContext flowContext) Sets the context for this layout manager.
-
Constructor Details
-
FlowFigureLayout
Constructs a new FlowFigureLayout with the given FlowFigure.- Parameters:
flowfigure- the FlowFigure
-
-
Method Details
-
getConstraint
Not applicable.- Specified by:
getConstraintin interfaceLayoutManager- Parameters:
child- The figure- Returns:
- The constraint
- See Also:
-
getContext
Returns this layout's context ornull.- Returns:
nullor a context- Since:
- 3.1
-
getFlowFigure
- Returns:
- the FlowFigure
-
getMinimumSize
Not applicable.- Specified by:
getMinimumSizein interfaceLayoutManager- Parameters:
container- The FigurewHint- the width hinthHint- the height hint- Returns:
- The minimum size
- See Also:
-
getPreferredSize
Not applicable.- Specified by:
getPreferredSizein interfaceLayoutManager- Parameters:
container- The figurewHint- The width hinthHint- The height hint- Returns:
- The preferred size
- See Also:
-
invalidate
public void invalidate()Not applicable.- Specified by:
invalidatein interfaceLayoutManager- See Also:
-
layout
protected abstract void layout()Called duringlayout(IFigure). -
layout
Description copied from interface:LayoutManagerLays out the given figure.- Specified by:
layoutin interfaceLayoutManager- Parameters:
figure- The figure- See Also:
-
remove
Not applicable.- Specified by:
removein interfaceLayoutManager- Parameters:
child- the child being remoced- See Also:
-
setConstraint
Not applicable.- Specified by:
setConstraintin interfaceLayoutManager- Parameters:
child- The figureconstraint- The constraint- See Also:
-
setFlowContext
Sets the context for this layout manager.- Parameters:
flowContext- the context of this layout
-