Squeak Class Documentation category index | class index  
 
CharacterBlock
  category: Graphics-Text
  superclass: Rectangle
  subclasses:

My instances contain information about displayed characters. They are used to return the results of methods:
Paragraph characterBlockAtPoint: aPoint and
Paragraph characterBlockForIndex: stringIndex.
Any recomposition or movement of a Paragraph can make the instance obsolete.

instance methods
  accessing
  copy
stringIndex
textLine
textLine:

  comparing
  <
<=
=
>
>=

  printing
  printOn:

  private
  moveBy:
stringIndex:text:topLeft:extent:

class methods
  no messages
 

instance methods
  accessing top  
 

copy

Overridden because Rectangle does a deepCopy, which goes nuts with the text


 

stringIndex

Answer the position of the receiver in the string it indexes.


 

textLine


 

textLine:


  comparing top  
 

<

Answer whether the string index of the receiver precedes that of
aCharacterBlock.


 

<=

Answer whether the string index of the receiver does not come after that
of aCharacterBlock.


 

=

Answer true if the receiver's species, origin and corner match aRectangle's.


 

>

Answer whether the string index of the receiver comes after that of
aCharacterBlock.


 

>=

Answer whether the string index of the receiver does not precede that of
aCharacterBlock.


  printing top  
 

printOn:

Refer to the comment in Object|printOn:.


  private top  
 

moveBy:

Change the corner positions of the receiver so that its area translates by
the amount defined by the argument, aPoint.


 

stringIndex:text:topLeft:extent:


class methods
  no messages top