Squeak Class Documentation category index | class index  
 
CachingMorph
  category: Morphic-Kernel
  superclass: Morph
  subclasses:

This morph can be used to cache the picture of a morph that takes a long time to draw. It should be used with judgement, however, since heavy use of caching can consume large amounts of memory.

instance methods
  as yet unclassified
  drawOn:
fullDrawOn:
imageForm
initialize
invalidRect:from:
releaseCachedState
updateCacheCanvas:

class methods
  no messages
 

instance methods
  as yet unclassified top  
 

drawOn:


 

fullDrawOn:

Draw the full Morphic structure on the given Canvas


 

imageForm


 

initialize


 

invalidRect:from:

Record the given rectangle in the damage list.


 

releaseCachedState

Release any state that can be recomputed on demand, such as the pixel values for a color gradient or the editor state for a TextMorph. This method may be called to save space when a morph becomes inaccessible. Implementations of this method should do 'super releaseCachedState'.


 

updateCacheCanvas:

Update the cached image of the morphs being held by this hand.


class methods
  no messages top