Squeak Class Documentation category index | class index  
 
DisplayMedium
  category: Graphics-Display Objects
  superclass: DisplayObject
  subclasses: Form

I am a display object which can both paint myself on a medium (displayOn: messages), and can act as a medium myself. My chief subclass is Form.

instance methods
  bordering
  border:width:
border:width:fillColor:
border:width:rule:fillColor:
border:widthRectangle:rule:fillColor:

  coloring
  fill:fillColor:
fill:rule:fillColor:
fillBlack
fillBlack:
fillColor:
fillGray
fillGray:
fillShape:fillColor:
fillShape:fillColor:at:
fillWhite
fillWhite:
fillWithColor:
reverse
reverse:
reverse:fillColor:

  displaying
  copyBits:from:at:clippingBox:rule:fillColor:
deferUpdatesIn:while:
drawLine:from:to:clippingBox:rule:fillColor:

class methods
  no messages
 

instance methods
  bordering top  
 

border:width:

Paint a border whose rectangular area is defined by aRectangle. The
width of the border of each side is borderWidth. Uses black for
drawing the border.


 

border:width:fillColor:

Paint a border whose rectangular area is defined by aRectangle. The
width of the border of each side is borderWidth. Uses aHalfTone for
drawing the border.


 

border:width:rule:fillColor:

Paint a border whose rectangular area is defined by aRectangle. The
width of the border of each side is borderWidth. Uses aHalfTone for
drawing the border.


 

border:widthRectangle:rule:fillColor:

Paint a border whose rectangular area is defined by aRectangle. The
width of each edge of the border is determined by the four coordinates
of insets. Uses aHalfTone and combinationRule for drawing the border.


  coloring top  
 

fill:fillColor:

Replace a rectangular area of the receiver with the pattern described by
aForm according to the rule over.


 

fill:rule:fillColor:

Replace a rectangular area of the receiver with the pattern described by
aForm according to the rule anInteger.


 

fillBlack

Set all bits in the receiver to black (ones).


 

fillBlack:

Set all bits in the receiver's area defined by aRectangle to black (ones).


 

fillColor:

Set all pixels in the receiver to the color. Must be a correct color for this depth of medium. TK 1 Jun 96


 

fillGray

Set all bits in the receiver to gray.


 

fillGray:

Set all bits in the receiver's area defined by aRectangle to the gray mask.


 

fillShape:fillColor:

Fill a region corresponding to 1 bits in aShapeForm with aColor


 

fillShape:fillColor:at:

Fill a region corresponding to 1 bits in aShapeForm with aColor


 

fillWhite

Set all bits in the form to white.


 

fillWhite:

Set all bits in the receiver's area defined by aRectangle to white.


 

fillWithColor:

Fill the receiver's bounding box with the given color.


 

reverse

Change all the bits in the receiver that are white to black, and the ones
that are black to white.


 

reverse:

Change all the bits in the receiver's area that intersects with aRectangle
that are white to black, and the ones that are black to white.


 

reverse:fillColor:

Change all the bits in the receiver's area that intersects with aRectangle
according to the mask. Black does not necessarily turn to white, rather it
changes with respect to the rule and the bit in a corresponding mask
location. Bound to give a surprise.


  displaying top  
 

copyBits:from:at:clippingBox:rule:fillColor:

Make up a BitBlt table and copy the bits.


 

deferUpdatesIn:while:

DisplayScreen overrides with something more involved...


 

drawLine:from:to:clippingBox:rule:fillColor:

Draw line by copying the argument, sourceForm, starting at location
beginPoint and ending at endPoint, clipped by the rectangle, clipRect.
The rule and mask for copying are the arguments anInteger and aForm.


class methods
  no messages top