Squeak Class Documentation category index | class index  
 
Line
  category: ST80-Paths
  superclass: Path
  subclasses:

I represent the line segment specified by two points.

instance methods
  accessing
  beginPoint
beginPoint:
endPoint
endPoint:

  displaying
  displayOn:at:clippingBox:rule:fillColor:
displayOn:transformation:clippingBox:rule:fillColor:
displayOnPort:at:

class methods
  examples
  example

  instance creation
  from:to:withForm:
new

instance methods
  accessing top  
 

beginPoint

Answer the first end point of the receiver.


 

beginPoint:

Set the first end point of the receiver to be the argument, aPoint.
Answer aPoint.


 

endPoint

Answer the last end point of the receiver.


 

endPoint:

Set the first end point of the receiver to be the argument, aPoint.
Answer aPoint.


  displaying top  
 

displayOn:at:clippingBox:rule:fillColor:

The form associated with this Path will be displayed, according
to one of the sixteen functions of two logical variables (rule), at
each point on the Line. Also the source form will be first anded
with aForm as a mask. Does not effect the state of the Path.


 

displayOn:transformation:clippingBox:rule:fillColor:

Displays this path, translated and scaled by aTransformation. Get the
scaled and translated Path.


 

displayOnPort:at:


class methods
  examples top  
 

example

Designate two places on the screen by clicking any mouse button. A
straight path with a square black form will be displayed connecting the
two selected points.


  instance creation top  
 

from:to:withForm:

Answer an instance of me with end points begingPoint and endPoint;
the source form for displaying the line is aForm.


 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.