Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/AppKit.framework |
Availability | Available in Mac OS X v10.4 and later. |
Declared in | NSLevelIndicatorCell.h |
NSLevelIndicatorCell is a subclass of NSActionCell that provides several level indicator display styles including: capacity, ranking and relevancy. The capacity style provides both continuous and discrete modes.
– setMinValue:
– minValue
– setMaxValue:
– maxValue
– setLevelIndicatorStyle:
– levelIndicatorStyle
– setWarningValue:
– warningValue
– setCriticalValue:
– criticalValue
– setTickMarkPosition:
– tickMarkPosition
– setNumberOfTickMarks:
– numberOfTickMarks
– setNumberOfMajorTickMarks:
– numberOfMajorTickMarks
– tickMarkValueAtIndex:
– rectOfTickMarkAtIndex:
Returns the receiver’s critical value.
- (double)criticalValue
NSLevelIndicatorCell.h
Initializes the receiver with the style specified by levelIndicatorStyle.
- (id)initWithLevelIndicatorStyle:(NSLevelIndicatorStyle)levelIndicatorStyle
The default value and minimum value are 0.0. The default maximum value is dependent on levelIndicatorStyle. For continuous styles, the default maximum value is 100.0. For discrete styles the default maximum value is 5.0.
NSLevelIndicatorCell.h
Returns the level indicator style of the receiver.
- (NSLevelIndicatorStyle)levelIndicatorStyle
Possible return values are described in “Constants.”
NSLevelIndicatorCell.h
Returns the receiver’s maximum value.
- (double)maxValue
NSLevelIndicatorCell.h
Returns the receiver’s minimum value.
- (double)minValue
NSLevelIndicatorCell.h
Returns the number of major tick marks associated with the receiver.
- (NSInteger)numberOfMajorTickMarks
NSLevelIndicatorCell.h
Returns the number of tick marks associated with the receiver.
- (NSInteger)numberOfTickMarks
The tick marks assigned to the minimum and maximum values are included.
NSLevelIndicatorCell.h
Returns the bounding rectangle of the tick mark identified by index (the minimum-value tick mark is at index 0).
- (NSRect)rectOfTickMarkAtIndex:(NSInteger)index
If no tick mark is associated with index, the method raises a NSRangeException
.
NSLevelIndicatorCell.h
Sets the receiver’s critical value to criticalValue.
- (void)setCriticalValue:(double)criticalValue
NSLevelIndicatorCell.h
Sets the image displayed by the receiver for the NSRatingLevelIndicatorStyle
to image.
- (void)setImage:(NSImage *)image
The image is lightened to indicate a highlighted selection and dots are drawn for empty spots. The image is not stretched and no space is added between images. Setting image to nil
causes the default star image to be used.
NSLevelIndicatorCell.h
Sets the style of the receiver to levelIndicatorStyle.
- (void)setLevelIndicatorStyle:(NSLevelIndicatorStyle)levelIndicatorStyle
The available values of levelIndicatorStyle are described in “Constants.”
NSLevelIndicatorCell.h
Sets the maximum value the receiver can represent to maxValue.
- (void)setMaxValue:(double)maxValue
NSLevelIndicatorCell.h
Sets the minimum value the receiver can represent to minValue.
- (void)setMinValue:(double)minValue
NSLevelIndicatorCell.h
Sets the number of major tick marks displayed by the receiver.
- (void)setNumberOfMajorTickMarks:(NSInteger)count
The count must be less than or equal to the number of tick marks.
NSLevelIndicatorCell.h
Sets the number of tick marks displayed by the receiver (which include those assigned to the minimum and maximum values) to numberOfTickMarks.
- (void)setNumberOfTickMarks:(NSInteger)count
By default, this value is 0, and no tick marks appear. The number of tick marks assigned to a slider, along with the slider’s minimum and maximum values, determines the values associated with the tick marks.
NSLevelIndicatorCell.h
Sets where tick marks appear relative to the receiver.
- (void)setTickMarkPosition:(NSTickMarkPosition)position
This method has no effect if no tick marks have been assigned (that is, numberOfTickMarks
returns 0).
NSLevelIndicatorCell.h
Sets the receiver’s warning value to warningValue.
- (void)setWarningValue:(double)warningValue
NSLevelIndicatorCell.h
Returns how the receiver’s tick marks are aligned with it.
- (NSTickMarkPosition)tickMarkPosition
The default alignments are NSTickMarkBelow
and NSTickMarkLeft
.
NSLevelIndicatorCell.h
Returns the receiver’s value represented by the tick mark at index (the minimum-value tick mark has an index of 0).
- (double)tickMarkValueAtIndex:(NSInteger)index
NSLevelIndicatorCell.h
Returns the receiver’s warning value.
- (double)warningValue
NSLevelIndicatorCell.h
The following constants specify the level indicator’s style and are used by initWithLevelIndicatorStyle:
, levelIndicatorStyle
, and setLevelIndicatorStyle:
.
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-03-01)