|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.text.FlowFigureLayout
org.eclipse.draw2d.text.TextLayout
org.eclipse.draw2d.text.ParagraphTextLayout
The layout for TextFlow.
| Field Summary | |
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. |
| Fields inherited from class org.eclipse.draw2d.text.FlowFigureLayout |
context, invalid |
| Fields inherited from class org.eclipse.draw2d.AbstractLayout |
isObservingVisibility, preferredSize |
| Constructor Summary | |
ParagraphTextLayout(TextFlow flow)
Consturcts a new ParagraphTextLayout on the specified TextFlow. |
|
ParagraphTextLayout(TextFlow flow,
int style)
Constructs the layout with the specified TextFlow and wrapping style. |
|
| Method Summary | |
protected float |
getAverageCharWidth(TextFragmentBox fragment)
Returns the average character width of given TextFragmentbox |
protected void |
layout()
Called during FlowFigureLayout.layout(IFigure). |
| Methods inherited from class org.eclipse.draw2d.text.TextLayout |
getFragment |
| Methods inherited from class org.eclipse.draw2d.text.FlowFigureLayout |
calculatePreferredSize, getFlowFigure, invalidate, layout, setFlowContext |
| Methods inherited from class org.eclipse.draw2d.AbstractLayout |
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibility |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int WORD_WRAP_HARD
public static final int WORD_WRAP_SOFT
public static final int WORD_WRAP_TRUNCATE
| Constructor Detail |
public ParagraphTextLayout(TextFlow flow)
flow - the TextFlow
public ParagraphTextLayout(TextFlow flow,
int style)
flow - the textflowstyle - the style of wrapping| Method Detail |
protected float getAverageCharWidth(TextFragmentBox fragment)
fragment - the TextFragmentBox
protected void layout()
FlowFigureLayoutFlowFigureLayout.layout(IFigure). The FlowFigureLayout.invalid flag is reset after this
method is called.
layout in class FlowFigureLayoutFlowFigureLayout.layout()
|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||