|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.Figure
org.eclipse.draw2d.text.FlowFigure
org.eclipse.draw2d.text.InlineFlow
org.eclipse.draw2d.text.TextFlow
org.eclipse.gmf.runtime.draw2d.ui.text.TextFlowEx
public class TextFlowEx
A TextFlow
with the following additional capabilities:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure |
---|
Figure.FigureIterator, Figure.IdentitySearch |
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure |
---|
IFigure.NoInsets |
Field Summary | |
---|---|
protected static int |
MAX_FLAG
The highest reserved flag used by this class. |
Fields inherited from class org.eclipse.draw2d.text.FlowFigure |
---|
selectionStart |
Fields inherited from class org.eclipse.draw2d.Figure |
---|
bgColor, border, bounds, fgColor, flags, font, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
Fields inherited from interface org.eclipse.draw2d.IFigure |
---|
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
Constructor Summary | |
---|---|
TextFlowEx()
Constructs a new TextFlow with the empty String. |
|
TextFlowEx(java.lang.String text)
Constructs a new TextFlow with the specified String. |
Method Summary | |
---|---|
FlowUtilitiesEx |
getFlowUtilities()
|
TextUtilitiesEx |
getTextUtilities()
|
protected java.lang.String |
getTruncationString()
Gets the truncation string. |
boolean |
isTextStrikedThrough()
|
boolean |
isTextUnderlined()
|
protected void |
paintFigure(Graphics g)
|
void |
setTextStrikeThrough(boolean strikeThrough)
Sets whether the label text should be striked-through |
void |
setTextUnderline(boolean underline)
Sets whether the label text should be underlined |
void |
setTruncationString(java.lang.String truncationString)
Sets the truncation string. |
protected java.lang.String |
truncateText(java.lang.String text)
Adds an ellipsis to the text passed in if this will fit in the width of this figure, otherwise first truncates the text as required and then adds the ellipsis. |
Methods inherited from class org.eclipse.draw2d.text.TextFlow |
---|
addLeadingWordRequirements, contributeBidi, createDefaultFlowLayout, getBidiInfo, getBidiSubstring, getCaretPlacement, getFirstOffsetForLine, getFragmentsWithoutBorder, getLastOffsetForLine, getNextOffset, getNextVisibleOffset, getOffset, getPreviousVisibleOffset, getText, isTextTruncated, paintSelection, paintText, setBidiInfo, setSelection, setText, toString |
Methods inherited from class org.eclipse.draw2d.text.InlineFlow |
---|
containsPoint, getFragments, paintBorder, postValidate, setBorder |
Methods inherited from class org.eclipse.draw2d.text.FlowFigure |
---|
add, remove, revalidateBidi, setBounds, setFlowContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int MAX_FLAG
Figure.MAX_FLAG
Constructor Detail |
---|
public TextFlowEx()
public TextFlowEx(java.lang.String text)
text
- the stringMethod Detail |
---|
protected java.lang.String getTruncationString()
public void setTruncationString(java.lang.String truncationString)
truncationString
- the new truncation stringpublic boolean isTextStrikedThrough()
public void setTextStrikeThrough(boolean strikeThrough)
strikeThrough
- Whether the label text should be striked-throughpublic boolean isTextUnderlined()
public void setTextUnderline(boolean underline)
underline
- Whether the label text should be underlinedprotected void paintFigure(Graphics g)
paintFigure
in class TextFlow
protected java.lang.String truncateText(java.lang.String text)
text
- the full text
public FlowUtilitiesEx getFlowUtilities()
getFlowUtilities
in class TextFlow
public TextUtilitiesEx getTextUtilities()
getTextUtilities
in class TextFlow
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.