Squeak Class Documentation category index | class index  
 
MorphThumbnail
  category: Morphic-Books
  superclass: SketchMorph
  subclasses:

A morph whose appearance is a thumbnail of some other morph.

instance methods
  as yet unclassified
  addCustomMenuItems:hand:
computeThumbnail
grabOriginal
initialize
innocuousName
morphRepresented
morphRepresented:
representativeNoTallerThan:norWiderThan:thumbnailHeight:
revealOriginal
smaller

  copying
  veryDeepFixupWith:
veryDeepInner:

  parts bin
  isPartsDonor
isPartsDonor:
partRepresented

class methods
  no messages
 

instance methods
  as yet unclassified top  
 

addCustomMenuItems:hand:

Add custom menu items


 

computeThumbnail

Assumption on entry:
The receiver's width represents the maximum width allowable.
The receiver's height represents the exact height desired.


 

grabOriginal


 

initialize


 

innocuousName

Choose an innocuous name for the receiver -- one that does not end in the word Morph


 

morphRepresented

If the receiver is an alias, answer the morph it represents; else answer self


 

morphRepresented:


 

representativeNoTallerThan:norWiderThan:thumbnailHeight:

Return a morph representing the receiver but which is no taller than aHeight. If the receiver is already small enough, just return it, else return a MorphThumbnail companioned to the receiver, enforcing the maxWidth


 

revealOriginal


 

smaller


  copying top  
 

veryDeepFixupWith:

If target and arguments fields were weakly copied, fix them here. If they were in the tree being copied, fix them up, otherwise point to the originals!!


 

veryDeepInner:

Copy all of my instance variables. Some need to be not copied at all, but shared. Warning!! Every instance variable defined in this class must be handled. We must also implement veryDeepFixupWith:. See DeepCopier class comment.


  parts bin top  
 

isPartsDonor


 

isPartsDonor:


 

partRepresented


class methods
  no messages top