API 0.9.5
CPColorPanel Class Reference

#import <CPColorPanel.h>

Inheritance diagram for CPColorPanel:

List of all members.

Instance Methods

(selector) - action
(CPColor- color
(id) - init
(CPColorPanelMode) - mode
(float) - opacity
(void) - orderFront:
(void) - setAction:
(void) - setColor:
(void) - setColor:updatePicker:
(void) - setMode:
(void) - setOpacity:
(void) - setTarget:
(id) - target

Class Methods

(void) + provideColorPickerClass:
(void) + setPickerMode:
(CPColorPanel+ sharedColorPanel

Detailed Description

CPColorPanel provides a reusable panel that can be used displayed on screen to prompt the user for a color selection. To obtain the panel, call the +sharedColorPanel method.

Definition at line 2 of file CPColorPanel.h.


Method Documentation

- (selector) action

Returns the current target action.

Definition at line 214 of file CPColorPanel.j.

- (CPColor) color

Returns the panel's currently selected color.

Definition at line 173 of file CPColorPanel.j.

- (id) init

Reimplemented from CPWindow.

Definition at line 114 of file CPColorPanel.j.

- (CPColorPanelMode) mode

Returns the color panel's current display mode.

Definition at line 262 of file CPColorPanel.j.

- (float) opacity

Definition at line 178 of file CPColorPanel.j.

- (void) orderFront: (id)  aSender

Makes the receiver the front most window in the screen ordering.

Parameters:
aSenderthe object that requested this

Reimplemented from CPWindow.

Definition at line 267 of file CPColorPanel.j.

+ (void) provideColorPickerClass: (Class)  aColorPickerSubclass

A list of color pickers is collected here, and any color panel created will contain any picker in this list up to this point. In other words, call before creating a color panel.

Definition at line 84 of file CPColorPanel.j.

- (void) setAction: (selector)  anAction

Sets the action that gets sent to the target. This action is sent whenever a color is selected in the panel.

Parameters:
anActionthe action that will be sent

Definition at line 206 of file CPColorPanel.j.

- (void) setColor: (CPColor aColor

Sets the color of the panel, and updates the picker. Also posts a CPColorPanelDidChangeNotification.

Definition at line 139 of file CPColorPanel.j.

- (void) setColor: (CPColor aColor
updatePicker: (BOOL)  bool 

Sets the selected color of the panel and optionally updates the picker.

Parameters:
boolwhether or not to update the picker

Definition at line 162 of file CPColorPanel.j.

- (void) setMode: (CPColorPanelMode)  mode

Sets the mode (look) of the color panel.

Parameters:
modethe mode in which to display the color panel

Definition at line 223 of file CPColorPanel.j.

- (void) setOpacity: (id)  sender

Definition at line 393 of file CPColorPanel.j.

+ (void) setPickerMode: (CPColorPanelMode)  mode

Sets the mode for the shared color panel.

Parameters:
modethe mode to which the color panel will be set

Definition at line 104 of file CPColorPanel.j.

- (void) setTarget: (id)  aTarget

Sets the target for the color panel. Messages are sent to the target when colors are selected in the panel.

Definition at line 187 of file CPColorPanel.j.

+ (CPColorPanel) sharedColorPanel

Returns (and if necessary, creates) the shared color panel.

Definition at line 92 of file CPColorPanel.j.

- (id) target

Returns the current target. The target receives messages when colors are selected in the panel.

Definition at line 196 of file CPColorPanel.j.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines