home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / 2.0_nxyPalette1.2 / src / NXYController.h < prev    next >
Encoding:
Text File  |  1992-01-24  |  3.4 KB  |  124 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <objc/Object.h>
  5. #import <appkit/nextstd.h>
  6. #import <appkit/Form.h>
  7. #import <appkit/Button.h>
  8. #import <stdio.h>
  9.  
  10. @interface  NXYController:Object
  11. {
  12.     id    mainTitle;        /* the main title object */
  13.     id    yMax;            /* the yMax object */
  14.     id    xMax;            /* the xMax object */
  15.     id    canvas;            /* the PlotView object */
  16.     id    yMin;            /* the yMin object */
  17.     id    xMin;            /* the xMin object */
  18.     id    yInc;            /* the yInc object */
  19.     id    xInc;            /* the xInc object */
  20.     id    yTitle;            /* the yTitle object */
  21.     id    xTitle;            /* the xTitle object */
  22.     id  lineText;        /* the lineText object */
  23.     id  symbolText;        /* the symbolText object */
  24.     id  lineMatrix;        /* the lineMatrix object */
  25.     id  lineThickness;        /* the lineThickness object */
  26.     id  symbolMatrix;        /* the symbolMatrix object */
  27.     id  symbolSize;        /* the symbolSize object */
  28.     id  legendTitle;        /* the legend title object */
  29.     id  legendForm;        /* the legend form object */
  30.     id  legendOnOff;        /* the legend on/off button */
  31.     id  legendBoxOnOff;        /* the legend Box on/off button */
  32.     id  gridOnOff;        /* the grid on/off button */
  33.     id  borderBoxOnOff;        /* the border box on/off button */
  34.     id  legendMove;        /* the legend Move button */
  35.     id  zoomOnOff;        /* the zoom on/off button */
  36.     id  plotButton;        /* the plot Button object */
  37.     id  xLinLog;        /* the x-axis linear/logarithmic button */
  38.     id  yLinLog;        /* the y-axis linear/logarithmic button */
  39.  
  40.     const char * maintitle;
  41.     const char * xtitle;
  42.     const char * ytitle;
  43.  
  44.     NXCoord *x;            /* the x coordinates */
  45.     NXCoord **y;        /* the y coordinates */
  46.     int npoints;        /* number of points  */
  47.     int ncurves;        /* number of curves  */
  48.  
  49.     NXPoint min;        /* min.x and min.y from xMin and yMin objects */
  50.     NXPoint max;        /* max.x and max.y from xMax and yMax objects */
  51.     NXPoint datamin;        /* xmin and ymin from the data */
  52.     NXPoint datamax;        /* xmax and ymax from the data */
  53. }
  54.  
  55. - (NXCoord *)xdata;
  56. - (NXCoord **)ydata;
  57.  
  58. - (int) nPoints;
  59. - (int) nCurves;
  60.  
  61. - (const char *) provideXtitle;
  62. - (const char *) provideYtitle;
  63. - (const char *) provideMaintitle;
  64. - (const char *) provideCurveTitle:(int)aCurve;
  65. - (const char *) provideLegendTitle;
  66.  
  67. - (BOOL) shouldDrawLegendBox;
  68. - (BOOL) shouldDrawLegend;
  69. - (BOOL) shouldDrawGrid;
  70. - (BOOL) shouldDrawBox;
  71. - (BOOL) shouldMoveLegend;
  72. - (BOOL) doZoom;
  73. - (BOOL) xaxisLog;
  74. - (BOOL) yaxisLog;
  75. - forceXaxisLinear;
  76. - forceYaxisLinear;
  77.  
  78. - (int)providelinestyle: (int)aCurve;
  79.                 /* 0=solid, 1=dash, 2=dot, 3=chain dash */
  80.                 /* 4=chain dot, 5=none */
  81. - (int)providesymbolstyle: (int)aCurve;
  82.                 /* 0=none, 1=circle, 2=x, 3=up triangle */
  83.                 /* 4=down triangle, 5=diamond, 6=square  */
  84.                 /* 7=plus */
  85.  
  86. - (int)providelinethickness;    /* 0=thin, 1=medium, 2=thick */
  87.  
  88. - (int)providesymbolsize;       /* 0=pixel, 1=small, 2=medium, 3=large */
  89.  
  90. - (float) provideXmin;
  91. - (float) provideXmax;
  92. - (float) provideXinc;
  93. - (float) provideYmin;
  94. - (float) provideYmax;
  95. - (float) provideYinc;
  96.  
  97. - resetXmin:(float)x;
  98. - resetXmax:(float)x;
  99. - resetXinc:(float)x;
  100. - resetYmin:(float)x;
  101. - resetYmax:(float)x;
  102. - resetYinc:(float)x;
  103.  
  104. - resetMinMax:sender;
  105.  
  106. - drawPlotButton:(int)state;
  107.  
  108. - drawPlot:sender;
  109.  
  110. - (int) readData:(FILE *)aDataStream;
  111.  
  112. - adjustPanels:(int)oldn :(int)newn;
  113.  
  114. - findMinAndMax;
  115.  
  116. - open:sender;
  117.  
  118. - openFile:(char *)dataFile;
  119.  
  120. #define N_LINE_STYLES 6        /* number of line styles (including none) */
  121. #define N_SYMBOL_STYLES 8    /* number of symbol styles (including none) */
  122.  
  123. @end
  124.