|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.text.screen_rect | +--sub_arctic.text.text_rect
This is the class that represents a displayed bunch of text on the screen. It is constructed from a word object. Note that this the screen manifestation of a word (or part of a word) after the layout. The text_bounding_rect class is used to figure out how big words are before the layout.
Field Summary | |
protected int |
_baseline
This holds the baseline position for this text rectangle. |
protected int |
_length
This is the length of the text in text run. |
protected text_run |
_represented_run
What text run does this represent? |
protected int |
_start
This is the start position in the text run. |
Fields inherited from class sub_arctic.text.screen_rect |
_h,
_w,
_x,
_y |
Constructor Summary | |
text_rect(int x,
int y,
int w,
int h,
text_run tr,
int start,
int length)
Construct a text_rect given its size, position, and string representation. |
Method Summary | |
int |
baseline()
Return the baseline of this rectangle. |
boolean |
can_overlap()
This object may not overlap its neighbor. |
int |
length()
Return the length of the text we are representing. |
text_run |
represented_run()
Return the text_run that this text_rect represents. |
void |
set_baseline(int b)
Set the baseline of this object. |
int |
start_position()
Return the start position in the text run we are representing. |
java.lang.String |
toString()
Display this sucker. |
Methods inherited from class sub_arctic.text.screen_rect |
h,
set_h,
w,
x,
y |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected text_run _represented_run
protected int _start
protected int _length
protected int _baseline
Constructor Detail |
public text_rect(int x, int y, int w, int h, text_run tr, int start, int length)
Method Detail |
public boolean can_overlap()
public text_run represented_run()
public int start_position()
public int length()
public java.lang.String toString()
public int baseline()
public void set_baseline(int b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |