home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscGaugePalette / MiscGaugeView.subproj / MiscGaugeView.h < prev    next >
Encoding:
Text File  |  1995-04-14  |  2.2 KB  |  83 lines

  1. /*****************************************************************************
  2.   CLASS:                MiscGaugeView
  3.   INHERITS FROM:        Control
  4.   PROGRAMMER:            Todd Thomas, Copyright 1995.
  5.   DATE BEGAN:            March 10, 1995
  6.   LAST CHANGED:            -
  7.   VERSION:                0.1
  8.   CHANGES:                -
  9.   
  10.   This class is basically a view that displays a MiscGaugeCell. Most all the
  11.   methods just pass the message onto the gauge cell. 
  12.   
  13.   As for updating the cell, if just the hand is affected by a method call,
  14.   Control's drawCellInside: method is used for a minimal update. On the 
  15.   other hand, if the method called affects the gauge "face", View's update 
  16.   is called so the cached "face" is redrawn. 
  17.   
  18.   See the MiscGaugeView class for more information, since that is where most
  19.   of the work is done.
  20.  
  21.   This object is included in the MiscKit by permission from the author
  22.   and its use is governed by the MiscKit license, found in the file
  23.   "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  24.   for a list of all applicable permissions and restrictions.  
  25.  *****************************************************************************/
  26.  
  27. #import <appkit/Control.h>
  28.  
  29.  
  30. @interface MiscGaugeView : Control
  31. {
  32. }
  33.  
  34. + initialize;
  35. + setCellClass: aClass;
  36.  
  37. - initFrame: (const NXRect *)frameRect;
  38.  
  39. - initFrame:(const NXRect *)frameRect min:(float)min max:(float)max 
  40.     startAngle:(float)start range:(float)range tickInterval:(int)interval;
  41.  
  42. - (float)maxValue;
  43. - (float)minValue;
  44.  
  45. - setMaxValue: (float)max;
  46. - setMinValue: (float)min;
  47.  
  48. - (float)startAngle;
  49. - (float)angleRange;
  50. - (int)tickInterval;
  51. - (float)tickRatio;
  52. - (float)handRatio;
  53.  
  54. - setStartAngle:(float)newValue; 
  55. - setAngleRange:(float)newValue; 
  56. - setTickInterval:(int)newValue; 
  57. - setTickRatio: (float)newRatio;
  58. - setHandRatio: (float)newRatio;
  59.  
  60. //- (NXColor)backgroundColor;
  61. - (NXColor)gaugeColor;
  62. - (NXColor)textColor;
  63. //- setBackgroundColor: (NXColor)color;
  64. - setGaugeColor: (NXColor)color;
  65. - setTextColor: (NXColor)color;
  66.  
  67. //- (float)backgroundGray;
  68. - (float)gaugeGray;
  69. - (float)textGray;
  70. //- setBackgroundGray: (float)gray;
  71. - setGaugeGray: (float)gray;
  72. - setTextGray: (float)gray;
  73.  
  74. - titleFont;
  75. - setTitleFont: newFont;
  76. - (const char *)title;
  77. - setTitle: (const char *)newTitle;
  78. - (int)titlePosition;
  79. - setTitlePosition: (int)newPos;
  80.  
  81. @end
  82.  
  83.