Squeak Class Documentation category index | class index  
 
TextLineInterval
  category: Graphics-Text
  superclass: Interval
  subclasses:

My instances specify the starting and stopping points in a String of a composed line. The step is always 1.

instance methods
  accessing
  baseline
internalSpaces
internalSpaces:
lineHeight
paddingWidth
paddingWidth:
stop:

  comparing
  =

  private
  internalSpaces:paddingWidth:
lineHeight:baseline:

  scanning
  justifiedPadFor:
justifiedTabDeltaFor:

  updating
  slide:

class methods
  instance creation
  start:stop:internalSpaces:paddingWidth:

instance methods
  accessing top  
 

baseline


 

internalSpaces

Answer the number of spaces in the line.


 

internalSpaces:

Set the number of spaces in the line to be spacesInteger.


 

lineHeight


 

paddingWidth

Answer the amount of space to be added to the font.


 

paddingWidth:

Set the amount of space to be added to the font to be padWidthInteger.


 

stop:

Set the stopping point in the string of the line to be stopInteger.


  comparing top  
 

=

Answer true if my species and anInterval species are equal, and
if our starts, steps and sizes are equal.


  private top  
 

internalSpaces:paddingWidth:


 

lineHeight:baseline:


  scanning top  
 

justifiedPadFor:

Compute the width of pad for a given space in a line of justified text.


 

justifiedTabDeltaFor:

Compute the delta for a tab in a line of justified text, so tab falls
somewhere plausible when line is justified.


  updating top  
 

slide:

Change the starting and stopping points of the line by delta.


class methods
  instance creation top  
 

start:stop:internalSpaces:paddingWidth:

Answer an instance of me with the arguments as the start, stop points,
number of spaces in the line, and width of the padding.