Authors
- Riccardo Mottola
-
Copyright: (C) 2011-2015 Free Software Foundation
- Declared in:
- OKSeries.h
OKseries provides the series data storage used by
charts.
A series contains an array of scalar data (NSNumbers) and
additional information like color, description
and title
Instance Variables
Method summary
- (void)
addObject: (id)obj;
adds object and updates of minimum and maximum value
- (NSColor*)
color;
color with which the series is drawn
- (
NSString*)
description;
a more verbose description of the series
- (BOOL)
highlighted;
if the series is drawn highlighted in a multi-series
plot
- (
NSNumber*)
maxValue;
largest value in series
- (
NSNumber*)
minValue;
smallest value in series
- (id)
objectAtIndex: (
NSUInteger)index;
returns object at the specified index
- (void)
removeAllObjects;
removes all elements, leaving an empty series
- (void)
removeObjectAtIndex: (
NSUInteger)index;
removes the element in series given by
index
- (void)
setColor: (NSColor*)c;
sets the color with which the series is drawn
- (void)
setDescription: (
NSString*)aDescription;
sets a more verbose description of the series
- (void)
setHighlighted: (BOOL)status;
set if the series is drawn highlighted in a
multi-series plot
- (void)
setTitle: (
NSString*)aTitle;
sets the caption of the series
- (
NSString*)
title;
caption of the series
Instance Variables for OKSeries Class
@protected NSColor* color;
Series color, used when drawing the chart. E.g. the
line color or the pie sector
@protected NSString* description;
Description forthcoming.
@protected BOOL highlighted;
if the series should be highlighted compared to others,
e.g. drawin in bold or brighter colour
@protected NSNumber* maxValue;
maximum value, kept updated while adding/removing
@protected NSNumber* minValue;
minimum value, kept updated while adding/removing
@protected NSMutableArray* seriesArray;
Array containing series data
@protected NSString* title;
Description forthcoming.