sub_arctic.text
Class dead_rect

java.lang.Object
  |
  +--sub_arctic.text.screen_rect
        |
        +--sub_arctic.text.dead_rect

public class dead_rect
extends screen_rect

This class represents nothing on the screen. In particular it represents the whitespace that is added at the ends of lines for word-breaking purposes. We need to track this space so that if the user clicks in it, we can map back to the nearest textual object.


Field Summary
protected  int _position
          This is the location within the text run that the dead rect is immediately before.
protected  text_run _represented_run
          What text run does this represent?
 
Fields inherited from class sub_arctic.text.screen_rect
_h, _w, _x, _y
 
Constructor Summary
dead_rect(int x, int y, int w, int h, text_run r, int location)
          Construct a dead_rect from a text position and a the layout of the rectangle on the screen.
 
Method Summary
 boolean can_overlap()
          This screen object can not overlap with other objects.
 int position()
          Return the character position within the run that this interactor is immediately before.
 text_run represented_run()
          Return the text_run that this text_rect represents.
 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

_represented_run

protected text_run _represented_run
What text run does this represent?

_position

protected int _position
This is the location within the text run that the dead rect is immediately before.
Constructor Detail

dead_rect

public dead_rect(int x,
                 int y,
                 int w,
                 int h,
                 text_run r,
                 int location)
Construct a dead_rect from a text position and a the layout of the rectangle on the screen.
Method Detail

can_overlap

public boolean can_overlap()
This screen object can not overlap with other objects.
Returns:
boolean always returns false
Overrides:
can_overlap in class screen_rect

represented_run

public text_run represented_run()
Return the text_run that this text_rect represents.

position

public int position()
Return the character position within the run that this interactor is immediately before.

toString

public java.lang.String toString()
Display this sucker.
Overrides:
toString in class screen_rect