Squeak Class Documentation category index | class index  
 
Quadrangle
  category: Graphics-Primitives
  superclass: Rectangle
  subclasses:

I represent a particular kind of Rectangle that has a border and inside color.

instance methods
  bordering
  borderColor
borderColor:
borderWidth
borderWidth:
borderWidthLeft:right:top:bottom:
inside
insideColor
insideColor:
region
region:
setHeight:
setLeft:
setRight:
setWidth:

  displaying-Display
  display
displayAlign:with:clippingBox:
displayTransformation:clippingBox:

  displaying-generic
  displayOn:
displayOn:align:with:clippingBox:
displayOn:transformation:clippingBox:
displayOnPort:at:

  initialize-release
  initialize

  private
  setRegion:borderWidth:borderColor:insideColor:

  rectangle functions
  intersect:

  transforming
  align:with:
alignedTo:
scaleBy:
translateBy:

  vocabulary
  vocabularyDemanded

class methods
  instance creation
  exampleInViewer
new
region:borderWidth:borderColor:insideColor:

instance methods
  bordering top  
 

borderColor

Answer the form that is the borderColor of the receiver.


 

borderColor:

Set the borderColor of the receiver to aColor, a Form.


 

borderWidth

Answer the borderWidth of the receiver.


 

borderWidth:

Set the borderWidth of the receiver to anInteger.


 

borderWidthLeft:right:top:bottom:

Set the border width of the receiver to a Rectangle that represents the
left, right, top, and bottom border widths.


 

inside

Answer a Rectangle that is the receiver inset by the borderWidth.


 

insideColor

Answer the form that is the insideColor of the receiver.


 

insideColor:

Set the insideColor of the receiver to aColor, a Form.


 

region

Answer a Rectangle that defines the area of the receiver.


 

region:

Set the rectangular area of the receiver to aRectangle.


 

setHeight:

Set the receiver's height


 

setLeft:

Move the receiver so that its left edge is given by aNumber. An example of a setter to go with #left


 

setRight:

Move the receiver so that its right edge is given by aNumber. An example of a setter to go with #right


 

setWidth:

Set the receiver's width


  displaying-Display top  
 

display

Display the border and insideRegion of the receiver on the Display.


 

displayAlign:with:clippingBox:

Display the border and region of the receiver on the Display so that its
position at aPoint1 is aligned with position aPoint2. The displayed
information should be clipped so that only information with the area
determined by aRectangle is displayed.


 

displayTransformation:clippingBox:

Display the border and region of the receiver on the Display so that it
is scaled and translated with respect to aWindowingTransformation. The
displayed information should be clipped so that only information with
the area determined by aRectangle is displayed.


  displaying-generic top  
 

displayOn:

Display the border and insideRegion of the receiver.


 

displayOn:align:with:clippingBox:

Display the border and region of the receiver so that its position at
aPoint1 is aligned with position aPoint2. The displayed information
should be clipped so that only information with the area determined by
aRectangle is displayed.


 

displayOn:transformation:clippingBox:

Display the border and region of the receiver so that it is scaled and
translated with respect to aWindowingTransformation. The displayed
information should be clipped so that only information with the area
determined by aRectangle is displayed.


 

displayOnPort:at:

Display the border and insideRegion of the receiver.


  initialize-release top  
 

initialize

Initialize the region to a null Rectangle, the borderWidth to 1, the
borderColor to black, and the insideColor to white.


  private top  
 

setRegion:borderWidth:borderColor:insideColor:


  rectangle functions top  
 

intersect:

Answer a new Quadrangle whose region is the intersection of the
receiver's area and aRectangle.
5/24/96 sw: removed hard-coded class name so subclasses can gain same functionality.


  transforming top  
 

align:with:

Answer a new Quadrangle translated by aPoint2 - aPoint1.
5/24/96 sw: removed hard-coded class name so subclasses can gain same functionality.


 

alignedTo:

Return a copy with offset according to alignPointSelector which is one of...
#(topLeft, topCenter, topRight, leftCenter, center, etc)
5/24/96 sw: removed hard-coded class name so subclasses can gain same functionality.


 

scaleBy:

Answer a new Quadrangle scaled by aPoint.
5/24/96 sw: removed hard-coded class name so subclasses can gain same functionality.


 

translateBy:

Answer a new Quadrangle translated by aPoint.
5/24/96 sw: removed hard-coded class name so subclasses can gain same functionality.


  vocabulary top  
 

vocabularyDemanded

Answer the vocabulary that the receiver really would like to use in a Viewer


class methods
  instance creation top  
 

exampleInViewer

Create a sample Quadrangle and open a Viewer on it


 

new

Answer an instance of me, initialized to a null Rectangle,
with borderWidth of 1, borderColor of black, and insideColor of white.


 

region:borderWidth:borderColor:insideColor:

Answer an instance of me with rectangle, border width and color, and
inside color determined by the arguments.