sub_arctic.text
Class text_bounding_rect

java.lang.Object
  |
  +--sub_arctic.text.text_bounding_rect

public class text_bounding_rect
extends java.lang.Object

This class represents the bounding rectangle of some text from a text_run. This is just a convenient way to store information before generating the actual screen rectangles.


Field Summary
 int height
          This is the height of the text in its font.
 text_run run
          This is the text_run this text bounding rect is from.
 int text_length
          This is the lenght of characters we represent.
 int text_start
          This is the starting character position we represent.
 int width
          This is the width of the text in its font.
 
Constructor Summary
text_bounding_rect(text_run tr, int start, int length)
          Create a text bounding rect, given the parts of a text_run we are representing.
 
Method Summary
 java.lang.String toString()
          Put out a representation of the text's bounding rect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

width

public int width
This is the width of the text in its font.

height

public int height
This is the height of the text in its font.

run

public text_run run
This is the text_run this text bounding rect is from.

text_start

public int text_start
This is the starting character position we represent.

text_length

public int text_length
This is the lenght of characters we represent.
Constructor Detail

text_bounding_rect

public text_bounding_rect(text_run tr,
                          int start,
                          int length)
Create a text bounding rect, given the parts of a text_run we are representing.
Method Detail

toString

public java.lang.String toString()
Put out a representation of the text's bounding rect
Returns:
String the printed representation of the object
Overrides:
toString in class java.lang.Object