API  1.0.0
CPLevelIndicator Class Reference

#import <CPLevelIndicator.h>

+ Inheritance diagram for CPLevelIndicator:

Instance Methods

(CPView- createEphemeralSubviewNamed:
 
(double) - criticalValue
 
(void) - encodeWithCoder:
 
(CPView- hitTest:
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(BOOL) - isEditable
 
(void) - layoutSubviews
 
(CPLevelIndicator- levelIndicatorStyle
 
(double) - maxValue
 
(double) - minValue
 
(void) - mouseDown:
 
(int) - numberOfMajorTickMarks
 
(int) - numberOfTickMarks
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - setCriticalValue:
 
(void) - setEditable:
 
(void) - setLevelIndicatorStyle:
 
(void) - setMaxValue:
 
(void) - setMinValue:
 
(void) - setNumberOfMajorTickMarks:
 
(void) - setNumberOfTickMarks:
 
(void) - setTickMarkPosition:
 
(void) - setWarningValue:
 
(CPTickMarkPosition) - tickMarkPosition
 
(double) - warningValue
 
- Instance Methods inherited from CPControl
(BOOL) - acceptsFirstMouse:
 
(SEL) - action
 
(CPTextAlignment) - alignment
 
(CPWritingDirection) - baseWritingDirection
 
(BOOL) - continueTracking:at:
 
(CPControlSize) - controlSize
 
(double) - doubleValue
 
(float) - floatValue
 
(CPFont- font
 
(CPFormatter- formatter
 
(void) - highlight:
 
(CPCellImagePosition) - imagePosition
 
(CPUInteger) - imageScaling
 
(int) - integerValue
 
(int) - intValue
 
(BOOL) - isContinuous
 
(BOOL) - isEnabled
 
(BOOL) - isHighlighted
 
(CPLineBreakMode) - lineBreakMode
 
(unsigned) - mouseDownFlags
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(CPInteger) - nextState
 
(id) - objectValue
 
(void) - performClick:
 
(BOOL) - sendAction:to:
 
(int) - sendActionOn:
 
(BOOL) - sendsActionOnEndEditing
 
(void) - setAction:
 
(void) - setAlignment:
 
(void) - setBaseWritingDirection:
 
(void) - setContinuous:
 
(void) - setControlSize:
 
(void) - setDoubleValue:
 
(void) - setEnabled:
 
(void) - setFloatValue:
 
(void) - setFont:
 
(void) - setFormatter:
 
(void) - setHighlighted:
 
(void) - setImagePosition:
 
(void) - setImageScaling:
 
(void) - setIntegerValue:
 
(void) - setIntValue:
 
(void) - setLineBreakMode:
 
(void) - setObjectValue:
 
(void) - setSendsActionOnEndEditing:
 
(void) - setState:
 
(void) - setStringValue:
 
(void) - setTarget:
 
(void) - setTextColor:
 
(void) - setTextShadowColor:
 
(void) - setTextShadowOffset:
 
(void) - setVerticalAlignment:
 
(BOOL) - startTrackingAt:
 
(void) - stopTracking:at:mouseIsUp:
 
(CPString- stringValue
 
(void) - takeDoubleValueFrom:
 
(void) - takeFloatValueFrom:
 
(void) - takeIntegerValueFrom:
 
(void) - takeIntValueFrom:
 
(void) - takeObjectValueFrom:
 
(void) - takeStringValueFrom:
 
(id) - target
 
(CPColor- textColor
 
(void) - textDidBeginEditing:
 
(void) - textDidChange:
 
(void) - textDidEndEditing:
 
(CPColor- textShadowColor
 
(CGSize) - textShadowOffset
 
(void) - trackMouse:
 
(BOOL) - tracksMouseOutsideOfFrame
 
(void) - unhighlightButtonTimerDidFinish:
 
(void) - updateTrackingAreas
 
(CPTextVerticalAlignment) - verticalAlignment
 
- Instance Methods inherited from CPView
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(void) - addTrackingArea:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(CAAnimation- animationForKey:
 
(CPDictionary- animations
 
(id) - animator
 
(BOOL) - autoresizesSubviews
 
(unsigned) - autoresizingMask
 
(BOOL) - autoscroll:
 
(CPColor- backgroundColor
 
(BOOL) - becomeFirstResponder
 
(CGRect) - bounds
 
(CGPoint) - boundsOrigin
 
(CGSize) - boundsSize
 
(BOOL) - canBecomeKeyView
 
(CGPoint) - center
 
(BOOL) - clipsToBounds
 
(CGPoint) - convertPoint:fromView:
 
(CGPoint) - convertPoint:toView:
 
(CGPoint) - convertPointFromBase:
 
(CGPoint) - convertPointToBase:
 
(CGRect) - convertRect:fromView:
 
(CGRect) - convertRect:toView:
 
(CGRect) - convertRectFromBase:
 
(CGRect) - convertRectToBase:
 
(CGSize) - convertSize:fromView:
 
(CGSize) - convertSize:toView:
 
(CPString- debug_description
 
(void) - didAddSubview:
 
(void) - display
 
(void) - displayIfNeeded
 
(void) - displayIfNeededInRect:
 
(void) - displayRect:
 
(void) - displayRectIgnoringOpacity:inContext:
 
(void) - dragImage:at:offset:event:pasteboard:source:slideBack:
 
(void) - dragView:at:offset:event:pasteboard:source:slideBack:
 
(void) - drawRect:
 
(CPAppearance- effectiveAppearance
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGRect) - frameRectOfView:inSuperviewSize:
 
(CGSize) - frameSize
 
(CGRect) - frameWithNewSuperviewSize:
 
(BOOL) - hasCustomDrawRect
 
(BOOL) - hasCustomLayoutSubviews
 
(BOOL) - hitTests
 
(id) - init
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(void) - layout
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - lockFocus
 
(CPMenu- menuForEvent:
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsLayout
 
(BOOL) - needsPanelToBecomeKey
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(void) - objectDidChangeTheme
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(void) - reflectScrolledClipView:
 
(CPArray) - registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - removeFromSuperview
 
(void) - removeTrackingArea:
 
(void) - replaceSubview:with:
 
(BOOL) - resignFirstResponder
 
(void) - resizeSubviewsWithOldSize:
 
(void) - resizeWithOldSuperviewSize:
 
(void) - rightMouseDown:
 
(CGSize) - scaleSize
 
(void) - scaleUnitSquareToSize:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAnimations:
 
(void) - setAppearance:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBackgroundColor:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setDOMClassName:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNeedsLayout:
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setScaleSize:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray) - subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidLayout
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillLayout
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 

Class Methods

(CPString+ defaultThemeClass
 
(CPDictionary+ themeAttributes
 
- Class Methods inherited from CPControl
(void) + initialize
 
- Class Methods inherited from CPView
(Class) + animatorClass
 
(CAAnimation+ defaultAnimationForKey:
 
(CPMenu+ defaultMenu
 
(BOOL) + isHighDPIDrawingEnabled
 
(CPSet) + keyPathsForValuesAffectingBounds
 
(CPSet) + keyPathsForValuesAffectingFrame
 
(void) + setHighDPIDrawingEnabled:
 

Detailed Description

CPLevelIndicator is a control which indicates a value visually on a scale.

Definition at line 2 of file CPLevelIndicator.h.

Method Documentation

◆ createEphemeralSubviewNamed:()

- (CPView) createEphemeralSubviewNamed: (CPString aName
implementation

Reimplemented from CPView.

Definition at line 133 of file CPLevelIndicator.j.

◆ criticalValue()

- (double) criticalValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 448 of file CPLevelIndicator.j.

◆ defaultThemeClass()

+ (CPString) defaultThemeClass
implementation

Reimplemented from CPView.

Definition at line 59 of file CPLevelIndicator.j.

◆ encodeWithCoder:()

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Archives the view to a coder.

Parameters
aCoderthe object into which the view's data will be archived.

Reimplemented from CPControl.

Provided by category CPLevelIndicator(CPCoding).

Definition at line 362 of file CPLevelIndicator.j.

◆ hitTest:()

- (CPView) hitTest: (CGPoint)  aPoint
implementation

Tests whether a point is contained within this view, or one of its subviews.

Parameters
aPointthe point to test
Returns
returns the containing view, or nil if the point is not contained

Reimplemented from CPView.

Definition at line 193 of file CPLevelIndicator.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the view from an archive.

Parameters
aCoderthe coder from which to initialize
Returns
the initialized view

Reimplemented from CPControl.

Provided by category CPLevelIndicator(CPCoding).

Definition at line 338 of file CPLevelIndicator.j.

◆ initWithFrame:()

- (id) initWithFrame: (CGRect)  aFrame
implementation

Initializes the receiver for usage with the specified bounding rectangle

Returns
the initialized view

Reimplemented from CPControl.

Definition at line 76 of file CPLevelIndicator.j.

◆ isEditable()

- (BOOL) isEditable
implementation

Returns YES if the textfield is currently editable by the user.

Definition at line 188 of file CPLevelIndicator.j.

◆ layoutSubviews()

- (void) layoutSubviews
implementation

Reimplemented from CPView.

Definition at line 91 of file CPLevelIndicator.j.

◆ levelIndicatorStyle()

- (CPLevelIndicator) levelIndicatorStyle
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 384 of file CPLevelIndicator.j.

◆ maxValue()

- (double) maxValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 416 of file CPLevelIndicator.j.

◆ minValue()

- (double) minValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 400 of file CPLevelIndicator.j.

◆ mouseDown:()

- (void) mouseDown: (CPEvent anEvent
implementation

Reimplemented from CPControl.

Definition at line 202 of file CPLevelIndicator.j.

◆ numberOfMajorTickMarks()

- (int) numberOfMajorTickMarks
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 496 of file CPLevelIndicator.j.

◆ numberOfTickMarks()

- (int) numberOfTickMarks
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 480 of file CPLevelIndicator.j.

◆ rectForEphemeralSubviewNamed:()

- (CGRect) rectForEphemeralSubviewNamed: (CPString aViewName
implementation

Reimplemented from CPView.

Definition at line 138 of file CPLevelIndicator.j.

◆ setCriticalValue:()

- (void) setCriticalValue: (double)  criticalValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 301 of file CPLevelIndicator.j.

◆ setEditable:()

- (void) setEditable: (BOOL)  shouldBeEditable
implementation

Sets whether or not the receiver level indicator can be edited.

Definition at line 177 of file CPLevelIndicator.j.

◆ setLevelIndicatorStyle:()

- (void) setLevelIndicatorStyle: (CPLevelIndicator aValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 392 of file CPLevelIndicator.j.

◆ setMaxValue:()

- (void) setMaxValue: (double)  maxValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 283 of file CPLevelIndicator.j.

◆ setMinValue:()

- (void) setMinValue: (double)  minValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 274 of file CPLevelIndicator.j.

◆ setNumberOfMajorTickMarks:()

- (void) setNumberOfMajorTickMarks: (int)  aValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 504 of file CPLevelIndicator.j.

◆ setNumberOfTickMarks:()

- (void) setNumberOfTickMarks: (int)  aValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 488 of file CPLevelIndicator.j.

◆ setTickMarkPosition:()

- (void) setTickMarkPosition: (CPTickMarkPosition)  aValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 472 of file CPLevelIndicator.j.

◆ setWarningValue:()

- (void) setWarningValue: (double)  warningValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 292 of file CPLevelIndicator.j.

◆ themeAttributes()

+ (CPDictionary) themeAttributes
implementation

Reimplemented from CPControl.

Definition at line 64 of file CPLevelIndicator.j.

◆ tickMarkPosition()

- (CPTickMarkPosition) tickMarkPosition
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 464 of file CPLevelIndicator.j.

◆ warningValue()

- (double) warningValue
implementation

Synthesized accessor method.

Provided by category CPLevelIndicator(CPSynthesizedAccessors).

Definition at line 432 of file CPLevelIndicator.j.


The documentation for this class was generated from the following files: