Squeak Class Documentation category index | class index  
 
StarSqueakTrees
  category: StarSqueak-Worlds
  superclass: StarSqueakMorph
  subclasses:

No comment. Sorry.

instance methods
  initialization
  initialize
initializeToStandAlone

  menu
  addCustomMenuItems:hand:
setTreeDepth
setTreeType

  setup
  setup

class methods
  parts bin
  descriptionForPartsBin

instance methods
  initialization top  
 

initialize


 

initializeToStandAlone

Set up the receiver, created by a #basicNew and now ready to be initialized, as a fully-formed morph suitable for providing a graphic for a parts bin surrogate, and, when such a parts-bin surrogate is clicked on, for attaching to the hand as a viable stand-alone morph. Because of historical precedent, #initialize has been expected to handle this burden, though a great number of morphs actually cannot stand alone. In any case, by default we call the historical #initialize, though unhappily, so that all existing morphs will work no worse than before when using this protocol.


  menu top  
 

addCustomMenuItems:hand:

Add morph-specific items to the given menu which was invoked by the given hand. This method provides is invoked both from the halo-menu and from the control-menu regimes.


 

setTreeDepth


 

setTreeType


  setup top  
 

setup

Subclasses should override this to setup the initial conditions of this StarSqueak world. The method should start with 'self clearAll'.


class methods
  parts bin top  
 

descriptionForPartsBin

Answer a description of the receiver for use in a parts bin