Package org.eclipse.draw2d.text
Class ParagraphTextLayout
java.lang.Object
org.eclipse.draw2d.text.FlowFigureLayout
org.eclipse.draw2d.text.TextLayout
org.eclipse.draw2d.text.ParagraphTextLayout
- All Implemented Interfaces:
- LayoutManager
The layout for 
TextFlow.- Since:
- 2.1
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intWrapping will ONLY occur at valid line breaksstatic final intWrapping will always occur at the end of the available space, breaking in the middle of a word.static final intWrapping will always occur at the end of available space, truncating a word if it doesn't fit.
- 
Constructor SummaryConstructorsConstructorDescriptionParagraphTextLayout(TextFlow flow) Constructs a new ParagraphTextLayout on the specified TextFlow.ParagraphTextLayout(TextFlow flow, int style) Constructs the layout with the specified TextFlow and wrapping style.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidlayout()Called duringFlowFigureLayout.layout(IFigure).Methods inherited from class org.eclipse.draw2d.text.TextLayoutgetFragmentMethods inherited from class org.eclipse.draw2d.text.FlowFigureLayoutgetConstraint, getContext, getFlowFigure, getMinimumSize, getPreferredSize, invalidate, layout, remove, setConstraint, setFlowContext
- 
Field Details- 
WORD_WRAP_HARDpublic static final int WORD_WRAP_HARDWrapping will ONLY occur at valid line breaks- See Also:
 
- 
WORD_WRAP_SOFTpublic static final int WORD_WRAP_SOFTWrapping will always occur at the end of the available space, breaking in the middle of a word.- See Also:
 
- 
WORD_WRAP_TRUNCATEpublic static final int WORD_WRAP_TRUNCATEWrapping will always occur at the end of available space, truncating a word if it doesn't fit. Note that truncation is not supported across multiple figures and with BiDi. Undesired effects may result if that is the case.- See Also:
 
 
- 
- 
Constructor Details- 
ParagraphTextLayoutConstructs a new ParagraphTextLayout on the specified TextFlow.- Parameters:
- flow- the TextFlow
 
- 
ParagraphTextLayoutConstructs the layout with the specified TextFlow and wrapping style. The wrapping style must be one of:- Parameters:
- flow- the textflow
- style- the style of wrapping
 
 
- 
- 
Method Details- 
layoutprotected void layout()Description copied from class:FlowFigureLayoutCalled duringFlowFigureLayout.layout(IFigure).- Specified by:
- layoutin class- FlowFigureLayout
- See Also:
 
 
-