home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09961.iso / java / mojo1-2e.exe / MOJODISK / DATA.4 / plugins / progwrap.def < prev    next >
Encoding:
Text File  |  1996-07-01  |  3.0 KB  |  181 lines

  1. DEF_COMPONENTNAME
  2. MlProgress
  3. DEF_SUPERCLASS
  4. Canvas
  5. DEF_SUPERCOMPONENT
  6.  
  7. DEF_PACKAGE
  8. plugins
  9. microline
  10. DEF_ENDLIST
  11. DEF_SUBCOMPONENTLIST
  12. DEF_ENDLIST
  13. DEF_SUBCOMPONENTCLASSLIST
  14. DEF_ENDLIST
  15. DEF_CATEGORY
  16.  
  17. DEF_BITMAP
  18.  
  19. DEF_THUMBNAIL_UP
  20.  
  21. DEF_THUMBNAIL_DOWN
  22.  
  23. DEF_BASE
  24. DEF_IMPORTS
  25. DEF_ENDLIST
  26. DEF_REQUIRES
  27. DEF_ENDLIST
  28. DEF_IMPLEMENTS
  29. DEF_ENDLIST
  30. DEF_DECLARATION
  31. DEF_ENDLIST
  32. DEF_METHOD
  33. public void updateDisplay()
  34. //updatedisplay calls paint().  Call this after updating the value of the meter.
  35. DEF_ENDLIST
  36. DEF_METHOD
  37. public void setValue(int value)
  38. //setValue sets the value of the progress meter.
  39. DEF_ENDLIST
  40. DEF_ENDCOMPONENT
  41. DEF_COMPONENTNAME
  42. MicrolineProgressBar
  43. DEF_SUPERCLASS
  44. MlProgress
  45. DEF_SUPERCOMPONENT
  46.  
  47. DEF_PACKAGE
  48. plugins
  49. progress
  50. DEF_ENDLIST
  51. DEF_SUBCOMPONENTLIST
  52. DEF_ENDLIST
  53. DEF_SUBCOMPONENTCLASSLIST
  54. DEF_ENDLIST
  55. DEF_CATEGORY
  56. MicroLine
  57. DEF_BITMAP
  58. progm.bmp
  59. DEF_THUMBNAIL_UP
  60. mlprog.bmp
  61. DEF_THUMBNAIL_DOWN
  62. 2-mlprog.bmp
  63. DEF_VISUAL
  64. DEF_TOOL
  65. DEF_IMPORTS
  66. DEF_ENDLIST
  67. DEF_REQUIRES
  68. DEF_ENDLIST
  69. DEF_IMPLEMENTS
  70. DEF_ENDLIST
  71. DEF_DECLARATION
  72. // A class that produces a progress gauge.
  73. // This component has much more functionality which is described in
  74. // the included Microline documentation in /docs/microline.
  75. // This third party component was created by MicroLine.  They can be contacted at:
  76. // http://www.mlsoft.com
  77. DEF_ENDLIST
  78. DEF_METHOD
  79. void initialize() {
  80. //    setLayout(null);
  81. //    setBackground(new Color(255, 255, 255));
  82.  
  83. //  prog1.reshape(0, 0, 300, 20);
  84.     }
  85. DEF_ENDLIST
  86. DEF_ENUM
  87. METER_BOXES
  88. DEF_ENDLIST
  89. DEF_PROPERTY
  90. Bottom Shadow Color
  91. Color
  92. setValue("bottomShadowColor",AVALUE); 
  93. AVALUE=getValue("bottomShadowColor");
  94. Color.black
  95. DEF_ENDLIST
  96. DEF_PROPERTY
  97. Top Shadow Color
  98. Color
  99. setValue("topShadowColor",AVALUE);
  100. AVALUE=getValue("topShadowColor");
  101. Color.black
  102. DEF_ENDLIST
  103. DEF_PROPERTY
  104. Complete Value
  105. int
  106. setValue("completeValue",AVALUE);
  107. AVALUE=getValue("completeValue");
  108. 100
  109. DEF_ENDLIST
  110. DEF_PROPERTY
  111. Shadow Thickness
  112. int
  113. setValue("shadowThickness",AVALUE);
  114. AVALUE=getValue("shadowThickness");
  115. 1
  116. DEF_ENDLIST
  117. DEF_PROPERTY
  118. Show Percentage
  119. boolean
  120. setValue("showPercentage",AVALUE);
  121. AVALUE=getValue("showPercentage");
  122. true
  123. DEF_ENDLIST
  124. DEF_PROPERTY
  125. Show Time
  126. boolean
  127. setValue("showTime",AVALUE);
  128. AVALUE=getValue("showTime");
  129. false
  130. DEF_ENDLIST
  131. DEF_PROPERTY
  132. Value
  133. int
  134. setValue("value",AVALUE);
  135. AVALUE=getValue("value");
  136. 0
  137. DEF_ENDLIST
  138. DEF_PROPERTY
  139. Box Type
  140. fruit
  141. setValue("meterStyle",AVALUE);
  142. AVALUE=getValue("meterStyle");
  143. METER_BAR
  144. DEF_ENDLIST
  145. DEF_PROPERTY
  146. # of Boxes
  147. int
  148. setValue("numBoxes",AVALUE);
  149. AVALUE=getValue("numBoxes");
  150. 20
  151. DEF_ENDLIST
  152. DEF_PROPERTY
  153. Top
  154. int
  155. move(bounds().x, AVALUE);
  156. AVALUE = bounds().y;
  157. 0
  158. DEF_ENDLIST
  159. DEF_PROPERTY
  160. Left
  161. int
  162. move(AVALUE, bounds().y);
  163. AVALUE = bounds().x;
  164. 0
  165. DEF_ENDLIST
  166. DEF_PROPERTY
  167. Height
  168. int
  169. resize(bounds().width, AVALUE);
  170. AVALUE = bounds().height;
  171. 46
  172. DEF_ENDLIST
  173. DEF_PROPERTY
  174. Width
  175. int
  176. resize(AVALUE, bounds().height);
  177. AVALUE = bounds().width;
  178. 230
  179. DEF_ENDLIST
  180. DEF_ENDCOMPONENT
  181.