|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.text.FlowBox
org.eclipse.draw2d.text.ContentBox
org.eclipse.draw2d.text.TextFragmentBox
A Geometric object for representing a TextFragment region on a line of Text.
Field Summary | |
int |
length
The fragment's length in characters. |
int |
offset
The character offset at which this fragment begins. |
Constructor Summary | |
TextFragmentBox(TextFlow textflow)
Creates a new TextFragmentBox for the given text flow. |
Method Summary | |
boolean |
containsPoint(int x,
int y)
This method must be called on a block that is completely positioned and committed. |
int |
getAscent()
Returns the textflow's font's ascent. |
int |
getDescent()
Returns the textflow's font's descent. |
boolean |
isRightToLeft()
Returns true if the bidi level is odd. |
boolean |
isTruncated()
Returns true if the fragment should be rendered as truncated. |
void |
setTruncated(boolean value)
Marks the fragment as having been truncated. |
String |
toString()
|
Methods inherited from class org.eclipse.draw2d.text.ContentBox |
getBaseline, getBidiLevel, requiresBidi, setBidiLevel |
Methods inherited from class org.eclipse.draw2d.text.FlowBox |
getWidth, getX, setWidth, setX |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int length
public int offset
Constructor Detail |
public TextFragmentBox(TextFlow textflow)
textflow
- the text flowMethod Detail |
public boolean containsPoint(int x, int y)
FlowBox
containsPoint
in class FlowBox
x
- Xy
- Y
true
if the FlowBox contains the pointFlowBox.containsPoint(int, int)
public int getAscent()
getAscent
in class FlowBox
public int getDescent()
getDescent
in class FlowBox
FlowBox.getAscent()
public boolean isRightToLeft()
true
if the bidi level is odd. Right to left fragments should be
queried and rendered with the RLO control character inserted in front.
true
if right-to-leftpublic boolean isTruncated()
true
if the fragment should be rendered as truncated.
true
if the fragment is truncatedpublic void setTruncated(boolean value)
value
- true
if the fragment is truncatedpublic String toString()
Object.toString()
|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |