Squeak Class Documentation category index | class index  
 
UpdatingRectangleMorph
  category: Morphic-Scripting Support
  superclass: RectangleMorph
  subclasses: ColorSwatch

Intended for use as a color swatch coupled to a color obtained from the target, but made just slightly more general than that.

instance methods
  accessing
  contents
contents:
getSelector:
putSelector
putSelector:
target
target:
userEditsAllowed

  as yet unclassified
  initialize

  copying
  veryDeepFixupWith:
veryDeepInner:

  display
 

  setting
  handlesMouseDown:
mouseUp:
setTargetColor:
valueProvider

  stepping
  step
stepTime

  target access
  readFromTarget

class methods
  no messages
 

instance methods
  accessing top  
 

contents


 

contents:


 

getSelector:


 

putSelector


 

putSelector:


 

target


 

target:


 

userEditsAllowed

Answer whether it is suitable for a user to change the value represented by this readout


  as yet unclassified top  
 

initialize


  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.


  display top  

  setting top  
 

handlesMouseDown:

Do I want to receive mouseDown events (mouseDown:, mouseMove:, mouseUp:)?


 

mouseUp:

Handle a mouse up event. The default response is to let my eventHandler, if any, handle it.


 

setTargetColor:

Set my target's color as indicated


 

valueProvider

Answer the object to which my get/set messages should be sent. This is inefficient and contorted in order to support grandfathered content for an earlier design


  stepping top  
 

step

Do some periodic activity. Use startStepping/stopStepping to start and stop getting sent this message. The time between steps is specified by this morph's answer to the stepTime message. The generic version dispatches control to the player, if any. The nasty circumlocation about owner's transformation is necessitated by the flexing problem that the player remains in the properties dictionary both of the flex and the real morph. In the current architecture, only the top renderer's pointer to the player should actually be honored for the purpose of firing.


 

stepTime

Answer the desired time between steps in milliseconds. This default implementation requests that the 'step' method be called once every second.


  target access top  
 

readFromTarget

Read the color value from my target


class methods
  no messages top