|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.Figure | +--org.eclipse.draw2d.text.FlowFigure | +--org.eclipse.draw2d.text.InlineFlow | +--org.eclipse.draw2d.text.TextFlow
An inline flow that renders a sting of text across one or more lines. A TextFlow must
not have any children. It does not provide a FlowContext
.
WARNING: This class is not intended to be subclassed by clients.
Nested Class Summary |
Nested classes inherited from class org.eclipse.draw2d.Figure |
Figure.FigureIterator |
Nested classes inherited from class org.eclipse.draw2d.IFigure |
IFigure.NoInsets |
Field Summary |
Fields inherited from class org.eclipse.draw2d.Figure |
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
Fields inherited from interface org.eclipse.draw2d.IFigure |
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
Constructor Summary | |
TextFlow()
Constructs a new TextFlow with the empty String. |
|
TextFlow(String s)
Constructs a new TextFlow with the specified String. |
Method Summary | |
protected FlowFigureLayout |
createDefaultFlowLayout()
Creates the default layout manager |
String |
getText()
|
boolean |
isTextTruncated()
Returns true if a portion if the text is truncated using ellipses ("..."). |
protected void |
paintFigure(Graphics g)
Paints this Figure's primary representation, or background. |
void |
setText(String s)
Sets the string being displayed. |
Methods inherited from class org.eclipse.draw2d.text.InlineFlow |
containsPoint, getFragments, postValidate |
Methods inherited from class org.eclipse.draw2d.text.FlowFigure |
add, setBounds, setFlowContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextFlow()
Object.Object()
public TextFlow(String s)
s
- the stringMethod Detail |
protected FlowFigureLayout createDefaultFlowLayout()
FlowFigure
createDefaultFlowLayout
in class InlineFlow
InlineFlow.createDefaultFlowLayout()
public String getText()
public boolean isTextTruncated()
true
if a portion if the text is truncated using ellipses ("...").
true
if the text is truncated with ellipsesprotected void paintFigure(Graphics g)
Figure
Figure.paintClientArea(Graphics)
and Figure.paintBorder(Graphics)
. Furthermore, it is safe
to call graphics.restoreState()
within this method, and doing so will
restore the graphics to its original state upon entry.
paintFigure
in class FlowFigure
Figure.paintFigure(Graphics)
public void setText(String s)
revalidate()
to occur.
s
- The new String. It cannot be null
.
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |