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
ConstructorsModifierConstructorDescriptionprotected
FlowFigureLayout
(FlowFigure flowfigure) Constructs a new FlowFigureLayout with the given FlowFigure. -
Method Summary
Modifier and TypeMethodDescriptiongetConstraint
(IFigure child) Not applicable.protected FlowContext
Returns this layout's context ornull
.protected FlowFigure
getMinimumSize
(IFigure container, int wHint, int hHint) Not applicable.getPreferredSize
(IFigure container, int wHint, int hHint) Not applicable.void
Not applicable.protected abstract void
layout()
Called duringlayout(IFigure)
.final void
Lays out the given figure.void
Not applicable.void
setConstraint
(IFigure child, Object constraint) Not applicable.void
setFlowContext
(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:
getConstraint
in interfaceLayoutManager
- Parameters:
child
- The figure- Returns:
- The constraint
- See Also:
-
getContext
Returns this layout's context ornull
.- Returns:
null
or a context- Since:
- 3.1
-
getFlowFigure
- Returns:
- the FlowFigure
-
getMinimumSize
Not applicable.- Specified by:
getMinimumSize
in interfaceLayoutManager
- Parameters:
container
- The FigurewHint
- the width hinthHint
- the height hint- Returns:
- The minimum size
- See Also:
-
getPreferredSize
Not applicable.- Specified by:
getPreferredSize
in 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:
invalidate
in interfaceLayoutManager
- See Also:
-
layout
protected abstract void layout()Called duringlayout(IFigure)
. -
layout
Description copied from interface:LayoutManager
Lays out the given figure.- Specified by:
layout
in interfaceLayoutManager
- Parameters:
figure
- The figure- See Also:
-
remove
Not applicable.- Specified by:
remove
in interfaceLayoutManager
- Parameters:
child
- the child being remoced- See Also:
-
setConstraint
Not applicable.- Specified by:
setConstraint
in interfaceLayoutManager
- Parameters:
child
- The figureconstraint
- The constraint- See Also:
-
setFlowContext
Sets the context for this layout manager.- Parameters:
flowContext
- the context of this layout
-