Squeak Class Documentation category index | class index  
 
PaintBoxColorPicker
  category: Morphic-Support
  superclass: ImageMorph
  subclasses:

A pop-up, 16-bit color palette used as part of a PaintBoxMorph.

instance methods
  accessing
  currentColor
currentColor:

  drawing
  drawOn:
ringColor

  event handling
  endColorSelection:
initMouseHandlers
selectColor:
startColorSelection:

  initialization
  beStatic
initialize

class methods
  no messages
 

instance methods
  accessing top  
 

currentColor


 

currentColor:

Force me to select the given color.


  drawing top  
 

drawOn:

Image plus circles for currently selected color.


 

ringColor

Choose a color that contrasts with my current color. If that color isn't redish, return red. Otherwise, return green


  event handling top  
 

endColorSelection:

Update current color and report it to paint box.


 

initMouseHandlers


 

selectColor:

Update the receiver from the given event. Constrain locOfCurrent's center to lie within the color selection area. If it is partially in the transparent area, snap it entirely into it vertically.


 

startColorSelection:

Start color selection. Make me stay up as long as the mouse is down.


  initialization top  
 

beStatic

an aid for Nebraska: make the color chart a static image to reduce traffic


 

initialize


class methods
  no messages top