An abstract class, from which every object that needs to be
drawn on the view inherits from. To be able to draw itself,
it needs to know about its axis, so it has to keep
references to them.
Methods :
-(void)drawWithContext:(CGContextRef)context
andRect:(NSRect)rect;
does nothing with this abstract class, but has to be
implemented in every child
-(id)initWithXAxis:(PHxAxis
*)aPHxAxis
yAxis:(PHyAxis
*)aPHyAxis;
-(void)setXAxis:(PHxAxis
*)aPHxAxis;
-(void)setYAxis:(PHyAxis
*)aPHyAxis;
-(BOOL)isLongToDraw;
answers NO in this class, but can be implemented in a
child, so that the drawing of a huge object (in the
millions of points range then) do not draw itself when
dragging the view and changing axis many times...
To toggle the displaying of one object :
-(BOOL)shouldDraw;
-(void)setShouldDraw:(BOOL)flag;