| 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.hInitializes 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.hReturns the level indicator style of the receiver.
- (NSLevelIndicatorStyle)levelIndicatorStyle
Possible return values are described in “Constants.”
NSLevelIndicatorCell.hReturns the receiver’s maximum value.
- (double)maxValue
NSLevelIndicatorCell.hReturns the receiver’s minimum value.
- (double)minValue
NSLevelIndicatorCell.hReturns the number of major tick marks associated with the receiver.
- (NSInteger)numberOfMajorTickMarks
NSLevelIndicatorCell.hReturns the number of tick marks associated with the receiver.
- (NSInteger)numberOfTickMarks
The tick marks assigned to the minimum and maximum values are included.
NSLevelIndicatorCell.hReturns 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.hSets the receiver’s critical value to criticalValue.
- (void)setCriticalValue:(double)criticalValue
NSLevelIndicatorCell.hSets 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.hSets the style of the receiver to levelIndicatorStyle.
- (void)setLevelIndicatorStyle:(NSLevelIndicatorStyle)levelIndicatorStyle
The available values of levelIndicatorStyle are described in “Constants.”
NSLevelIndicatorCell.hSets the maximum value the receiver can represent to maxValue.
- (void)setMaxValue:(double)maxValue
NSLevelIndicatorCell.hSets the minimum value the receiver can represent to minValue.
- (void)setMinValue:(double)minValue
NSLevelIndicatorCell.hSets 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.hSets 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.hSets 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.hSets the receiver’s warning value to warningValue.
- (void)setWarningValue:(double)warningValue
NSLevelIndicatorCell.hReturns how the receiver’s tick marks are aligned with it.
- (NSTickMarkPosition)tickMarkPosition
The default alignments are NSTickMarkBelow and NSTickMarkLeft.
NSLevelIndicatorCell.hReturns 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.hReturns the receiver’s warning value.
- (double)warningValue
NSLevelIndicatorCell.hThe following constants specify the level indicator’s style and are used by initWithLevelIndicatorStyle:, levelIndicatorStyle, and setLevelIndicatorStyle:.
Last updated: 2007-03-01