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

Arcs are an unusual implementation of splines due to Ted Kaehler. Imagine two lines that meet at a corner. Now imagine two moving points; one moves from the corner to the end on one line, the other moves from the end of the other line in to the corner. Now imagine a series of lines drawn between those moving points at each step along the way (they form a sort of spider web pattern). By connecting segments of the intersecting lines, a smooth curve is achieved that is tangent to both of the original lines. Voila.

instance methods
  accessing
  center
center:
center:radius:
center:radius:quadrant:
quadrant
quadrant:
radius
radius:

  display box access
  computeBoundingBox

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

class methods
  examples
  example

instance methods
  accessing top  
 

center

Answer the point at the center of the receiver.


 

center:

Set aPoint to be the receiver's center.


 

center:radius:

The receiver is defined by a point at the center and a radius. The
quadrant is not reset.


 

center:radius:quadrant:

Set the receiver's quadrant to be the argument, section. The size of the
receiver is defined by the center and its radius.


 

quadrant

Answer the part of the circle represented by the receiver.


 

quadrant:

Set the part of the circle represented by the receiver to be the argument,
section.


 

radius

Answer the receiver's radius.


 

radius:

Set the receiver's radius to be the argument, anInteger.


  display box access top  
 

computeBoundingBox

Refer to the comment in DisplayObject|computeBoundingBox.


  displaying top  
 

displayOn:at:clippingBox:rule:fillColor:

Display this Path--offset by aPoint, clipped by clipRect and the form
associated with this Path will be displayedr according to one of the sixteen
functions of two logical variables (rule). 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.


class methods
  examples top  
 

example

Click the button somewhere on the screen. The designated point will
be the center of an Arc with radius 50 in the 4th quadrant.