home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / NeXTSTEPAdvantage / Plotter / PlotView.h < prev    next >
Encoding:
Text File  |  1991-06-28  |  962 b   |  42 lines

  1. /* 
  2.  * PlotView.h -- Interface file for the PlotView class 
  3.  *
  4.  * You may freely copy, distribute, and reuse the code in this example.
  5.  * NeXT disclaims any warranty of any kind, expressed or implied, as to its
  6.  * fitness for any particular use.
  7.  *
  8.  */
  9.  
  10. #import <appkit/View.h>
  11.  
  12. @interface PlotView:View
  13. {
  14.     id        delegate;
  15.     id        points;
  16.     id        crossCursor;
  17.     id        readOut;
  18.     float        radius;
  19.     BOOL        needsClearing;
  20. }
  21. - initFrame:(const NXRect *)frameRect;
  22. - setDelegate:anObject;
  23. - drawSelf:(const NXRect *)rects :(int)rectCount;
  24. - sizeTo:(NXCoord)width :(NXCoord)height;
  25. - clear:sender;
  26. - plot:sender;
  27. - mouseDown:(NXEvent *)theEvent;
  28. - registerPoint:(NXPoint *)aPoint;
  29. - setRadius:(float)aFloat;
  30. - (float)radius;
  31. - read:(NXTypedStream *)stream;
  32. - write:(NXTypedStream *)stream;
  33. - awake;
  34. - (const char *)inspectorName;
  35. @end
  36.  
  37. @interface Object(PlotViewDelegate)
  38. - plotView:sender providePoints:(NXStream **)stream;
  39. - plotView:sender pointDidChange:(NXPoint *)aPoint;
  40. @end
  41.  
  42.