public class ParagraphTextLayout extends TextLayout
TextFlow
.Modifier and Type | Field and Description |
---|---|
static int |
WORD_WRAP_HARD
Wrapping will ONLY occur at valid line breaks
|
static int |
WORD_WRAP_SOFT
Wrapping will always occur at the end of the available space, breaking in
the middle of a word.
|
static int |
WORD_WRAP_TRUNCATE
Wrapping will always occur at the end of available space, truncating a
word if it doesn't fit.
|
Constructor and Description |
---|
ParagraphTextLayout(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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
layout()
Called during
FlowFigureLayout.layout(IFigure) . |
getFragment
getConstraint, getContext, getFlowFigure, getMinimumSize, getPreferredSize, invalidate, layout, remove, setConstraint, setFlowContext
public static final int WORD_WRAP_HARD
public static final int WORD_WRAP_SOFT
public static final int WORD_WRAP_TRUNCATE
public ParagraphTextLayout(TextFlow flow)
flow
- the TextFlowpublic ParagraphTextLayout(TextFlow flow, int style)
flow
- the textflowstyle
- the style of wrappingprotected void layout()
FlowFigureLayout
FlowFigureLayout.layout(IFigure)
.layout
in class FlowFigureLayout
FlowFigureLayout.layout()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.