Class CPColorPicker

CPObject
    extended byCPColorPicker

@implementation CPColorPicker : CPObject

CPColorPicker is an abstract superclass for all color picker subclasses. If you want a particular color picker, use CPColorPanel's setPickerMode: method. The simplest way to implement your own color picker is to create a subclass of CPColorPicker.


Method Summary
-(id)initWithPickerMask:(int)aMask colorPanel:(CPColorPanel)aPanel
          Initializes the color picker.
-(CPColorPanel)colorPanel
          Returns the color panel that owns this picker.
-(void)setColor:(CPColor)aColor
          Sets the picker's color.
-(void)setMode:(CPColorPanelMode)mode
          Sets the color picker's mode.

Methods inherited from class CPObject
initialize, alloc, class, instanceMethodForSelector, instancesRespondToSelector, isSubclassOfClass, load, new, setVersion, superclass, version, init, autorelease, awakeAfterUsingCoder, class, classForCoder, classForKeyedArchiver, className, copy, dealloc, description, doesNotRecognizeSelector, forwardInvocation, hash, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableCopy, performSelector, performSelector, performSelector, release, replacementObjectForArchiver, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, retain, self, superclass


Method Detail

initWithPickerMask

-(id)initWithPickerMask:(int)aMask colorPanel:(CPColorPanel)aPanel
Initializes the color picker.
Parameters:
aMask - a unique unsigned int identifying your color picker
aPanel - the color panel that owns this picker

colorPanel

-(CPColorPanel)colorPanel
Returns the color panel that owns this picker

setColor

-(void)setColor:(CPColor)aColor
Sets the picker's color.
Parameters:
aColor - the new color for the picker

setMode

-(void)setMode:(CPColorPanelMode)mode
Sets the color picker's mode.
Parameters:
mode - the color panel mode

Created on Sat Sep 13 14:15:43 PDT 2008