An object designed at drawing a set of points. It does not
own its data, but keeps references to them (they must be
double arrays)
Instance variables :
double *xData,
*yData;
int
numberOfPoints;
float
size;
float
width;
int
style;
NSColor *cocoaColor;
The style is one of four kind of symbols :
PHCrossx, PHCrossplus, PHCircle, PHDiamond
and is set with :
-(void)setStyle:(int)newStyle;
No need to explain what size and width are I guess, and
they are set with :
-(void)setSize:(float)newSize;
-(void)setWidth:(float)newWidth;
and the initializer that should be used :
-(id)initWithXData:(double*)xd
yData:(double*)yd
numberOfPoints:(int)np
xAxis:(PHxAxis*)xaxis
yAxis:(PHyAxis*)yaxis;
Changing the number of points :
-(void)setNumberOfPoints:(int)newNumberOfPoints;