Class _CPColorPanelSwatches

CPObject
    extended byCPResponder
        extended byCPView
            extended by_CPColorPanelSwatches

@implementation _CPColorPanelSwatches : CPView


Method Summary
-(id)initWithFrame:(CPRect)aFrame
-(CPColor)colorAtIndex:(int)index
-(CPColorPanel)colorPanel
-(BOOL)isOpaque
          Returns whether the receiver is completely opaque.
-(void)mouseDragged:(CPEvent)anEvent
          Notifies the receiver that the user has initiated a drag over it.
-(void)mouseUp:(CPEvent)anEvent
          Notifies the receiver that the user has released the left mouse button.
-(void)pasteboard:(CPPasteboard)aPasteboard provideDataForType:(CPString)aType
-(void)performDragOperation:(id
-(CPArray)saveColorList
-(void)setColorPanel:(CPColorPanel)panel
-(void)setColor:(CPColor)aColor atIndex:(int)index
-(CPArray)startingColorList

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

Methods inherited from class CPResponder
acceptsFirstResponder, becomeFirstResponder, deleteBackward, doCommandBySelector, insertLineBreak, insertText, interpretKeyEvents, keyDown, keyUp, menu, mouseDown, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseUp, nextResponder, noResponderFor, performKeyEquivalent, resignFirstResponder, scrollWheel, setMenu, setNextResponder, tryToPerform, undoManager

Methods inherited from class CPView
initWithFrame, acceptsFirstMouse, addSubview, addSubview, adjustScroll, alphaValue, autoresizesSubviews, autoresizingMask, autoscroll, backgroundColor, bounds, convertPoint, convertPoint, convertRect, convertRect, convertSize, convertSize, didAddSubview, display, displayIfNeeded, displayIfNeededInRect, displayRect, displayRectIgnoringOpacity, dragImage, dragView, drawRect, enclosingMenuItem, enclosingScrollView, enterFullScreenMode, exitFullScreenModeWithOptions, frame, hitTest, hitTests, isDescendantOf, isFlipped, isHidden, isHiddenOrHasHiddenAncestor, isInFullScreenMode, isOpaque, lockFocus, mouseDown, mouseDownCanMoveWindow, needsDisplay, postsBoundsChangedNotifications, postsFrameChangedNotifications, reflectScrolledClipView, registerForDraggedTypes, registeredDraggedTypes, removeFromSuperview, replaceSubview, resizeSubviewsWithOldSize, resizeWithOldSuperviewSize, scrollClipView, scrollPoint, scrollRectToVisible, scrollRect, setAlphaValue, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setBoundsOrigin, setBoundsSize, setFrame, setFrameOrigin, setFrameSize, setHidden, setHitTests, setNeedsDisplay, setNeedsDisplayInRect, setPostsBoundsChangedNotifications, setPostsFrameChangedNotifications, subviews, superview, unlockFocus, unregisterDraggedTypes, viewDidMoveToSuperview, viewDidMoveToWindow, viewWillMoveToSuperview, viewWillMoveToWindow, visibleRect, willRemoveSubview, window


Method Detail

initWithFrame

-(id)initWithFrame:(CPRect)aFrame
Parameters:
aFrame

colorAtIndex

-(CPColor)colorAtIndex:(int)index
Parameters:
index

colorPanel

-(CPColorPanel)colorPanel

isOpaque

-(BOOL)isOpaque
Returns whether the receiver is completely opaque. By default, returns NO.

mouseDragged

-(void)mouseDragged:(CPEvent)anEvent
Notifies the receiver that the user has initiated a drag over it. A drag is a mouse movement while the left button is down.
Parameters:
anEvent - contains information about the drag

mouseUp

-(void)mouseUp:(CPEvent)anEvent
Notifies the receiver that the user has released the left mouse button.
Parameters:
anEvent - contains information about the release

pasteboard

-(void)pasteboard:(CPPasteboard)aPasteboard provideDataForType:(CPString)aType
Parameters:
aPasteboard
aType

performDragOperation

-(void)performDragOperation:(id
Parameters:
aSender

saveColorList

-(CPArray)saveColorList

setColorPanel

-(void)setColorPanel:(CPColorPanel)panel
Parameters:
panel

setColor

-(void)setColor:(CPColor)aColor atIndex:(int)index
Parameters:
aColor
index

startingColorList

-(CPArray)startingColorList

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