Squeak Class Documentation category index | class index  
 
TextColor
  category: Collections-Text
  superclass: TextAttribute
  subclasses:

A TextColor encodes a text color change applicable over a given range of text.

instance methods
  accessing
  color
color:

  comparing
  =
hash

  printing
  printOn:

  scanning
  dominates:
emphasizeScanner:
writeScanOn:

class methods
  constants
  black
blue
cyan
green
magenta
red
white
yellow

  instance creation
  color:
scanFrom:

instance methods
  accessing top  
 

color


 

color:


  comparing top  
 

=

Answer whether the receiver and the argument represent the same
object. If = is redefined in any subclass, consider also redefining the
message hash.


 

hash

Answer a SmallInteger whose value is related to the receiver's identity.
May be overridden, and should be overridden in any classes that define =


  printing top  
 

printOn:

Append to the argument, aStream, a sequence of characters that
identifies the receiver.


  scanning top  
 

dominates:

Subclasses may override condense multiple attributes


 

emphasizeScanner:

Set the emphasis for text display


 

writeScanOn:

Two formats. c125000255 or cblue;


class methods
  constants top  
 

black


 

blue


 

cyan


 

green


 

magenta


 

red


 

white


 

yellow


  instance creation top  
 

color:


 

scanFrom:

read a color in the funny format used by Text styles on files. c125000255 or cblue;