Squeak Class Documentation category index | class index  
 
ColorMappingCanvas
  category: Morphic-Support
  superclass: Canvas
  subclasses: AlphaBlendingCanvas ShadowDrawingCanvas

No comment. Sorry.

instance methods
  accessing
  clipRect
depth
extent
form
origin

  drawing
  drawPolygon:color:borderWidth:borderColor:
fillOval:color:borderWidth:borderColor:
frameAndFillRectangle:fillColor:borderWidth:borderColor:
frameAndFillRectangle:fillColor:borderWidth:topLeftColor:bottomRightColor:
line:to:width:color:
paragraph:bounds:color:
stencil:at:color:
stencil:at:sourceRect:color:
text:bounds:font:color:

  drawing-support
  clipBy:during:
preserveStateDuring:
transformBy:clippingTo:during:smoothing:
translateBy:clippingTo:during:
translateBy:during:
translateTo:clippingTo:during:

  initialization
  flush
on:
reset

  private
  image:at:sourceRect:rule:
mapColor:

  testing
  isShadowDrawing

class methods
  instance creation
  on:

instance methods
  accessing top  
 

clipRect

Return the currently active clipping rectangle


 

depth


 

extent

Return the physical extent of the output device


 

form


 

origin

Return the current origin for drawing operations


  drawing top  
 

drawPolygon:color:borderWidth:borderColor:

Draw the given polygon.


 

fillOval:color:borderWidth:borderColor:

Fill the given oval.


 

frameAndFillRectangle:fillColor:borderWidth:borderColor:

Draw the rectangle using the given attributes


 

frameAndFillRectangle:fillColor:borderWidth:topLeftColor:bottomRightColor:

Draw the rectangle using the given attributes


 

line:to:width:color:

Draw a line using the given width and color


 

paragraph:bounds:color:

Draw the given paragraph


 

stencil:at:color:

Flood this canvas with aColor wherever stencilForm has non-zero pixels


 

stencil:at:sourceRect:color:

Flood this canvas with aColor wherever stencilForm has non-zero pixels


 

text:bounds:font:color:

Draw the given string in the given font and color clipped to the given rectangle. If the font is nil, the default font is used.


  drawing-support top  
 

clipBy:during:

Set a clipping rectangle active only during the execution of aBlock.
Note: In the future we may want to have more general clip shapes - not just rectangles


 

preserveStateDuring:

Preserve the full canvas state during the execution of aBlock


 

transformBy:clippingTo:during:smoothing:

Transform the receiver by the given display transformation during the execution of aBlock. The given clip rectangle defines the *global* (e.g., outer) rectangle against which the receiver should clip (which would be equivalent to 'self clipRect: aClipRect; transformBy: aDisplayTransform').


 

translateBy:clippingTo:during:

Set a translation and clipping rectangle only during the execution of aBlock.


 

translateBy:during:

Set a translation only during the execution of aBlock.


 

translateTo:clippingTo:during:

Set a new origin and clipping rectangle only during the execution of aBlock.


  initialization top  
 

flush


 

on:


 

reset

Reset the canvas.


  private top  
 

image:at:sourceRect:rule:

Draw the given form. For the 'paint' combination rule use stenciling otherwise simply fill the source rectangle.


 

mapColor:


  testing top  
 

isShadowDrawing


class methods
  instance creation top  
 

on: