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 / lib / packages / java4.def < prev    next >
Encoding:
Text File  |  1996-07-02  |  136.2 KB  |  5,730 lines

  1. DEF_COMPONENTNAME
  2. MemoryImageSource
  3. DEF_SUPERCLASS
  4. Object
  5. DEF_SUPERCOMPONENT
  6.  
  7. DEF_PACKAGE
  8. java
  9. awt
  10. image
  11. DEF_ENDLIST
  12. DEF_SUBCOMPONENTLIST
  13. DEF_ENDLIST
  14. DEF_SUBCOMPONENTCLASSLIST
  15. DEF_ENDLIST
  16. DEF_CATEGORY
  17.  
  18. DEF_BITMAP
  19.  
  20. DEF_THUMBNAIL_UP
  21.  
  22. DEF_THUMBNAIL_DOWN
  23.  
  24. DEF_BASE
  25. DEF_IMPORTS
  26. DEF_ENDLIST
  27. DEF_REQUIRES
  28. DEF_ENDLIST
  29. DEF_IMPLEMENTS
  30. ImageProducer
  31. DEF_ENDLIST
  32. DEF_DECLARATION
  33. // This class is an implementation of the ImageProducer interface which
  34. // uses an array to produce pixel values for an Image.  Here is an example
  35. // which calculates a 100x100 image representing a fade from black to blue
  36. // along the X axis and a fade from black to red along the Y axis:
  37. // 
  38. //     int w = 100;
  39. //     int h = 100;
  40. //     int pix[] = new int[w * h];
  41. //     int index = 0;
  42. //     for (int y = 0; y < h; y++) {
  43. //         int red = (y * 255) / (h - 1);
  44. //         for (int x = 0; x < w; x++) {
  45. //         int blue = (x * 255) / (w - 1);
  46. //         pix[index++] = (255 << 24) | (red << 16) | blue;
  47. //         }
  48. //     }
  49. //     Image img = createImage(new MemoryImageSource(w, h, pix, 0, w));
  50. // 
  51. // 
  52. //      See Also:
  53. //      ImageProducer
  54. // 
  55. DEF_ENDLIST
  56. DEF_METHOD
  57. public MemoryImageSource(int w,
  58.                          int h,
  59.                          ColorModel cm,
  60.                          byte pix[],
  61.                          int off,
  62.                          int scan)
  63. //    Constructs an ImageProducer object which uses an array of bytes
  64. // to produce data for an Image object.
  65. //   
  66. //      See Also:
  67. //      createImage
  68. //   
  69. // 
  70. DEF_ENDLIST
  71. DEF_METHOD
  72. public MemoryImageSource(int w,
  73.                          int h,
  74.                          ColorModel cm,
  75.                          byte pix[],
  76.                          int off,
  77.                          int scan,
  78.                          Hashtable props)
  79. //    Constructs an ImageProducer object which uses an array of bytes
  80. // to produce data for an Image object.
  81. //   
  82. //      See Also:
  83. //      createImage
  84. //   
  85. // 
  86. DEF_ENDLIST
  87. DEF_METHOD
  88. public MemoryImageSource(int w,
  89.                          int h,
  90.                          ColorModel cm,
  91.                          int pix[],
  92.                          int off,
  93.                          int scan)
  94. //    Constructs an ImageProducer object which uses an array of integers
  95. // to produce data for an Image object.
  96. //   
  97. //      See Also:
  98. //      createImage
  99. //   
  100. // 
  101. DEF_ENDLIST
  102. DEF_METHOD
  103. public MemoryImageSource(int w,
  104.                          int h,
  105.                          ColorModel cm,
  106.                          int pix[],
  107.                          int off,
  108.                          int scan,
  109.                          Hashtable props)
  110. //    Constructs an ImageProducer object which uses an array of integers
  111. // to produce data for an Image object.
  112. //   
  113. //      See Also:
  114. //      createImage
  115. //   
  116. // 
  117. DEF_ENDLIST
  118. DEF_METHOD
  119. public MemoryImageSource(int w,
  120.                          int h,
  121.                          int pix[],
  122.                          int off,
  123.                          int scan)
  124. //    Constructs an ImageProducer object which uses an array of integers
  125. // in the default RGB ColorModel to produce data for an Image object.
  126. //   
  127. //      See Also:
  128. //      createImage, getRGBdefault
  129. //   
  130. // 
  131. DEF_ENDLIST
  132. DEF_METHOD
  133. public MemoryImageSource(int w,
  134.                          int h,
  135.                          int pix[],
  136.                          int off,
  137.                          int scan,
  138.                          Hashtable props)
  139. //    Constructs an ImageProducer object which uses an array of integers
  140. // in the default RGB ColorModel to produce data for an Image object.
  141. //   
  142. //      See Also:
  143. //      createImage, getRGBdefault
  144. //   
  145. // 
  146. DEF_ENDLIST
  147. DEF_METHOD
  148. public synchronized void addConsumer(ImageConsumer ic)
  149. //    Adds an ImageConsumer to the list of consumers interested in
  150. // data for this image.
  151. //   
  152. //      See Also:
  153. //      ImageConsumer
  154. //   
  155. // 
  156. DEF_ENDLIST
  157. DEF_METHOD
  158. public synchronized boolean isConsumer(ImageConsumer ic)
  159. //    Determine if an ImageConsumer is on the list of consumers currently
  160. // interested in data for this image.
  161. //   
  162. //      Returns:
  163. //      true if the ImageConsumer is on the list; false otherwise
  164. //      See Also:
  165. //      ImageConsumer
  166. //   
  167. // 
  168. DEF_ENDLIST
  169. DEF_METHOD
  170. public synchronized void removeConsumer(ImageConsumer ic)
  171. //    Remove an ImageConsumer from the list of consumers interested in
  172. // data for this image.
  173. //   
  174. //      See Also:
  175. //      ImageConsumer
  176. //   
  177. // 
  178. DEF_ENDLIST
  179. DEF_METHOD
  180. public void startProduction(ImageConsumer ic)
  181. //    Adds an ImageConsumer to the list of consumers interested in
  182. // data for this image, and immediately start delivery of the
  183. // image data through the ImageConsumer interface.
  184. //   
  185. //      See Also:
  186. //      ImageConsumer
  187. //   
  188. // 
  189. DEF_ENDLIST
  190. DEF_METHOD
  191. public void requestTopDownLeftRightResend(ImageConsumer ic)
  192. //    Requests that a given ImageConsumer have the image data delivered
  193. // one more time in top-down, left-right order.
  194. //   
  195. //      See Also:
  196. //      ImageConsumer
  197. //   
  198. // 
  199. DEF_ENDLIST
  200. DEF_ENDCOMPONENT
  201. DEF_COMPONENTNAME
  202. PixelGrabber
  203. DEF_SUPERCLASS
  204. Object
  205. DEF_SUPERCOMPONENT
  206.  
  207. DEF_PACKAGE
  208. java
  209. awt
  210. image
  211. DEF_ENDLIST
  212. DEF_SUBCOMPONENTLIST
  213. DEF_ENDLIST
  214. DEF_SUBCOMPONENTCLASSLIST
  215. DEF_ENDLIST
  216. DEF_CATEGORY
  217.  
  218. DEF_BITMAP
  219.  
  220. DEF_THUMBNAIL_UP
  221.  
  222. DEF_THUMBNAIL_DOWN
  223.  
  224. DEF_BASE
  225. DEF_IMPORTS
  226. DEF_ENDLIST
  227. DEF_REQUIRES
  228. DEF_ENDLIST
  229. DEF_IMPLEMENTS
  230. ImageConsumer
  231. DEF_ENDLIST
  232. DEF_DECLARATION
  233. // The PixelGrabber class implements an ImageConsumer which can be attached
  234. // to an Image or ImageProducer object to retrieve a subset of the pixels
  235. // in that image.  Here is an example:
  236. // 
  237. // public abstract void handlesinglepixel(int x, int y, int pixel);
  238. // public void handlepixels(Image img, int x, int y, int w, int h) {
  239. //     int[] pixels = new int[w * h];
  240. //     PixelGrabber pg = new PixelGrabber(img, x, y, w, h, pixels, 0, w);
  241. //     try {
  242. //         pg.grabPixels();
  243. //     } catch (InterruptedException e) {
  244. //         System.err.println("interrupted waiting for pixels!");
  245. //         return;
  246. //     }
  247. //     if ((pg.status() & ImageObserver.ABORT) != 0) {
  248. //         System.err.println("image fetch aborted or errored");
  249. //         return;
  250. //     }
  251. //     for (int j = 0; j < h; j++) {
  252. //         for (int i = 0; i < w; i++) {
  253. //         handlesinglepixel(x+i, y+j, pixels[j * w + i]);
  254. //         }
  255. //     }
  256. // }
  257. // 
  258. DEF_ENDLIST
  259. DEF_METHOD
  260. public PixelGrabber(Image img,
  261.                     int x,
  262.                     int y,
  263.                     int w,
  264.                     int h,
  265.                     int pix[],
  266.                     int off,
  267.                     int scansize)
  268. //    Create a PixelGrabber object to grab the (x, y, w, h) rectangular
  269. // section of pixels from the specified image into the given array.
  270. // The pixels are stored into the array in the default RGB ColorModel.
  271. // The RGB data for pixel (i, j) where (i, j) is inside the rectangle
  272. // (x, y, w, h) is stored in the array at
  273. // pix[(j - y) * scansize + (i - x) + off].
  274. //   
  275. //      Parameters:
  276. //      img - the image to retrieve pixels from
  277. //      x - the x coordinate of the upper left corner of the rectangle
  278. // of pixels to retrieve from the image, relative to the default
  279. // (unscaled) size of the image
  280. //      y - the y coordinate of the upper left corner of the rectangle
  281. // of pixels to retrieve from the image
  282. //      w - the width of the rectangle of pixels to retrieve
  283. //      h - the height of the rectangle of pixels to retrieve
  284. //      pix - the array of integers which are to be used to hold the
  285. // RGB pixels retrieved from the image
  286. //      off - the offset into the array of where to store the first pixel
  287. //      scansize - the distance from one row of pixels to the next in
  288. // the array
  289. //      See Also:
  290. //      getRGBdefault
  291. //   
  292. // 
  293. DEF_ENDLIST
  294. DEF_METHOD
  295. public PixelGrabber(ImageProducer ip,
  296.                     int x,
  297.                     int y,
  298.                     int w,
  299.                     int h,
  300.                     int pix[],
  301.                     int off,
  302.                     int scansize)
  303. //    Create a PixelGrabber object to grab the (x, y, w, h) rectangular
  304. // section of pixels from the image produced by the specified
  305. // ImageProducer into the given array.
  306. // The pixels are stored into the array in the default RGB ColorModel.
  307. // The RGB data for pixel (i, j) where (i, j) is inside the rectangle
  308. // (x, y, w, h) is stored in the array at
  309. // pix[(j - y) * scansize + (i - x) + off].
  310. //   
  311. //      Parameters:
  312. //      img - the image to retrieve pixels from
  313. //      x - the x coordinate of the upper left corner of the rectangle
  314. // of pixels to retrieve from the image, relative to the default
  315. // (unscaled) size of the image
  316. //      y - the y coordinate of the upper left corner of the rectangle
  317. // of pixels to retrieve from the image
  318. //      w - the width of the rectangle of pixels to retrieve
  319. //      h - the height of the rectangle of pixels to retrieve
  320. //      pix - the array of integers which are to be used to hold the
  321. // RGB pixels retrieved from the image
  322. //      off - the offset into the array of where to store the first pixel
  323. //      scansize - the distance from one row of pixels to the next in
  324. // the array
  325. //      See Also:
  326. //      getRGBdefault
  327. //   
  328. // 
  329. DEF_ENDLIST
  330. DEF_METHOD
  331. public boolean grabPixels() throws InterruptedException
  332. //    Request the Image or ImageProducer to start delivering pixels and
  333. // wait for all of the pixels in the rectangle of interest to be
  334. // delivered.
  335. //   
  336. //      Returns:
  337. //      true if the pixels were successfully grabbed, false on
  338. // abort, error or timeout
  339. //      Throws: InterruptedException
  340. //      Another thread has interrupted this thread.
  341. //   
  342. // 
  343. DEF_ENDLIST
  344. DEF_METHOD
  345. public synchronized boolean grabPixels(long ms) throws InterruptedException
  346. //    Request the Image or ImageProducer to start delivering pixels and
  347. // wait for all of the pixels in the rectangle of interest to be
  348. // delivered or until the specified timeout has elapsed.
  349. //   
  350. //      Parameters:
  351. //      ms - the number of milliseconds to wait for the image pixels
  352. // to arrive before timing out
  353. //      Returns:
  354. //      true if the pixels were successfully grabbed, false on
  355. // abort, error or timeout
  356. //      Throws: InterruptedException
  357. //      Another thread has interrupted this thread.
  358. //   
  359. // 
  360. DEF_ENDLIST
  361. DEF_METHOD
  362. public synchronized int status()
  363. //    Return the status of the pixels.  The ImageObserver flags
  364. // representing the available pixel information are returned.
  365. //   
  366. //      Returns:
  367. //      the bitwise OR of all relevant ImageObserver flags
  368. //      See Also:
  369. //      ImageObserver
  370. //   
  371. // 
  372. DEF_ENDLIST
  373. DEF_METHOD
  374. public void setDimensions(int width,
  375.                           int height)
  376. //    The setDimensions method is part of the ImageConsumer API which
  377. // this class must implement to retrieve the pixels.
  378. // 
  379. DEF_ENDLIST
  380. DEF_METHOD
  381. public void setHints(int hints)
  382. //    The setHints method is part of the ImageConsumer API which
  383. // this class must implement to retrieve the pixels.
  384. // 
  385. DEF_ENDLIST
  386. DEF_METHOD
  387. public void setProperties(Hashtable props)
  388. //    The setProperties method is part of the ImageConsumer API which
  389. // this class must implement to retrieve the pixels.
  390. // 
  391. DEF_ENDLIST
  392. DEF_METHOD
  393. public void setColorModel(ColorModel model)
  394. //    The setColorModel method is part of the ImageConsumer API which
  395. // this class must implement to retrieve the pixels.
  396. // 
  397. DEF_ENDLIST
  398. DEF_METHOD
  399. public void setPixels(int srcX,
  400.                       int srcY,
  401.                       int srcW,
  402.                       int srcH,
  403.                       ColorModel model,
  404.                       byte pixels[],
  405.                       int srcOff,
  406.                       int srcScan)
  407. //    The setPixels method is part of the ImageConsumer API which
  408. // this class must implement to retrieve the pixels.
  409. // 
  410. DEF_ENDLIST
  411. DEF_METHOD
  412. public void setPixels(int srcX,
  413.                       int srcY,
  414.                       int srcW,
  415.                       int srcH,
  416.                       ColorModel model,
  417.                       int pixels[],
  418.                       int srcOff,
  419.                       int srcScan)
  420. //    The setPixels method is part of the ImageConsumer API which
  421. // this class must implement to retrieve the pixels.
  422. // 
  423. DEF_ENDLIST
  424. DEF_METHOD
  425. public synchronized void imageComplete(int status)
  426. //    The imageComplete method is part of the ImageConsumer API which
  427. // this class must implement to retrieve the pixels.
  428. // 
  429. DEF_ENDLIST
  430. DEF_ENDCOMPONENT
  431. DEF_COMPONENTNAME
  432. RGBImageFilter
  433. DEF_SUPERCLASS
  434. ImageFilter
  435. DEF_SUPERCOMPONENT
  436.  
  437. DEF_PACKAGE
  438. java
  439. awt
  440. image
  441. DEF_ENDLIST
  442. DEF_SUBCOMPONENTLIST
  443. DEF_ENDLIST
  444. DEF_SUBCOMPONENTCLASSLIST
  445. DEF_ENDLIST
  446. DEF_CATEGORY
  447.  
  448. DEF_BITMAP
  449.  
  450. DEF_THUMBNAIL_UP
  451.  
  452. DEF_THUMBNAIL_DOWN
  453.  
  454. DEF_BASE
  455. DEF_IMPORTS
  456. DEF_ENDLIST
  457. DEF_REQUIRES
  458. DEF_ENDLIST
  459. DEF_IMPLEMENTS
  460. DEF_ENDLIST
  461. DEF_DECLARATION
  462. // This class provides an easy way to create an ImageFilter which modifies
  463. // the pixels of an image in the default RGB ColorModel.  It is meant to
  464. // be used in conjunction with a FilteredImageSource object to produce
  465. // filtered versions of existing images.  It is an abstract class that
  466. // provides the calls needed to channel all of the pixel data through a
  467. // single method which converts pixels one at a time in the default RGB
  468. // ColorModel regardless of the ColorModel being used by the ImageProducer.
  469. // The only method which needs to be defined to create a useable image
  470. // filter is the filterRGB method.  Here is an example of a definition
  471. // of a filter which swaps the red and blue components of an image:
  472. // 
  473. //     class RedBlueSwapFilter extends RGBImageFilter {
  474. //         public RedBlueSwapFilter() {
  475. //         // The filter's operation does not depend on the
  476. //         // pixel's location, so IndexColorModels can be
  477. //         // filtered directly.
  478. //         canFilterIndexColorModel = true;
  479. //         }
  480. //         public int filterRGB(int x, int y, int rgb) {
  481. //         return ((rgb & 0xff00ff00)
  482. //             | ((rgb & 0xff0000) >> 16)
  483. //             | ((rgb & 0xff) << 16));
  484. //         }
  485. //     }
  486. // 
  487. // 
  488. //      See Also:
  489. //      FilteredImageSource, ImageFilter, getRGBdefault
  490. // 
  491. DEF_ENDLIST
  492. DEF_METHOD
  493. public RGBImageFilter()
  494. //    If the ColorModel is an IndexColorModel, and the subclass has
  495. // set the canFilterIndexColorModel flag to true, we substitute
  496. // a filtered version of the color model here and wherever
  497. // that original ColorModel object appears in the setPixels methods. Otherwise
  498. // overrides the default ColorModel used by the ImageProducer and
  499. // specifies the default RGB ColorModel instead.
  500. //   
  501. //      Overrides:
  502. //      setColorModel in class ImageFilter
  503. //      See Also:
  504. //      ImageConsumer, getRGBdefault
  505. //   
  506. // 
  507. DEF_ENDLIST
  508. DEF_METHOD
  509. public void substituteColorModel(ColorModel oldcm,
  510.                                  ColorModel newcm)
  511. //    Registers two ColorModel objects for substitution.  If the oldcm
  512. // is encountered during any of the setPixels methods, the newcm
  513. // is substituted and the pixels passed through
  514. // untouched (but with the new ColorModel object).
  515. //   
  516. //      Parameters:
  517. //      oldcm - the ColorModel object to be replaced on the fly
  518. //      newcm - the ColorModel object to replace oldcm on the fly
  519. //   
  520. // 
  521. DEF_ENDLIST
  522. DEF_METHOD
  523. public IndexColorModel filterIndexColorModel(IndexColorModel icm)
  524. //    Filters an IndexColorModel object by running each entry in its
  525. // color tables through the filterRGB function that RGBImageFilter
  526. // subclasses must provide.  Uses coordinates of -1 to indicate that
  527. // a color table entry is being filtered rather than an actual
  528. // pixel value.
  529. //   
  530. //      Parameters:
  531. //      icm - the IndexColorModel object to be filtered
  532. //      Returns:
  533. //      a new IndexColorModel representing the filtered colors
  534. //   
  535. // 
  536. DEF_ENDLIST
  537. DEF_METHOD
  538. public void filterRGBPixels(int x,
  539.                             int y,
  540.                             int w,
  541.                             int h,
  542.                             int pixels[],
  543.                             int off,
  544.                             int scansize)
  545. //    Filters a buffer of pixels in the default RGB ColorModel by passing
  546. // them one by one through the filterRGB method.
  547. //   
  548. //      See Also:
  549. //      getRGBdefault, filterRGB
  550. //   
  551. // 
  552. DEF_ENDLIST
  553. DEF_METHOD
  554. public void setPixels(int x,
  555.                       int y,
  556.                       int w,
  557.                       int h,
  558.                       ColorModel model,
  559.                       byte pixels[],
  560.                       int off,
  561.                       int scansize)
  562. //    If the ColorModel object is the same one that has already
  563. // been converted, then simply passes the pixels through with the
  564. // converted ColorModel. Otherwise converts the buffer of byte
  565. // pixels to the default RGB ColorModel and passes the converted
  566. // buffer to the filterRGBPixels method to be converted one by one.
  567. //   
  568. //      Overrides:
  569. //      setPixels in class ImageFilter
  570. //      See Also:
  571. //      getRGBdefault, filterRGBPixels
  572. //   
  573. // 
  574. DEF_ENDLIST
  575. DEF_METHOD
  576. public void setPixels(int x,
  577.                       int y,
  578.                       int w,
  579.                       int h,
  580.                       ColorModel model,
  581.                       int pixels[],
  582.                       int off,
  583.                       int scansize)
  584. //    If the ColorModel object is the same one that has already
  585. // been converted, then simply passes the pixels through with the
  586. // converted ColorModel, otherwise converts the buffer of integer
  587. // pixels to the default RGB ColorModel and passes the converted
  588. // buffer to the filterRGBPixels method to be converted one by one.
  589. // Converts a buffer of integer pixels to the default RGB ColorModel
  590. // and passes the converted buffer to the filterRGBPixels method.
  591. //   
  592. //      Overrides:
  593. //      setPixels in class ImageFilter
  594. //      See Also:
  595. //      getRGBdefault, filterRGBPixels
  596. //   
  597. // 
  598. DEF_ENDLIST
  599. DEF_METHOD
  600. public abstract int filterRGB(int x,
  601.                               int y,
  602.                               int rgb)
  603. //    Subclasses must specify a method to convert a single input pixel
  604. // in the default RGB ColorModel to a single output pixel.
  605. //   
  606. //      See Also:
  607. //      getRGBdefault, filterRGBPixels
  608. //   
  609. // 
  610. DEF_ENDLIST
  611. DEF_ENDCOMPONENT
  612. DEF_COMPONENTNAME
  613. List
  614. DEF_SUPERCLASS
  615. Component
  616. DEF_SUPERCOMPONENT
  617.  
  618. DEF_PACKAGE
  619. java
  620. awt
  621. DEF_ENDLIST
  622. DEF_SUBCOMPONENTLIST
  623. DEF_ENDLIST
  624. DEF_SUBCOMPONENTCLASSLIST
  625. DEF_ENDLIST
  626. DEF_CATEGORY
  627.  
  628. DEF_BITMAP
  629.  
  630. DEF_CATEGORY
  631. Standard
  632. DEF_THUMBNAIL_UP
  633. list.bmp
  634. DEF_THUMBNAIL_DOWN
  635. 2-list.bmp
  636. DEF_BASE
  637. DEF_TOOL
  638. DEF_VISUAL
  639. DEF_IMPORTS
  640. DEF_ENDLIST
  641. DEF_REQUIRES
  642. DEF_ENDLIST
  643. DEF_IMPLEMENTS
  644. DEF_ENDLIST
  645. DEF_DECLARATION
  646. // A scrolling list of text items.
  647. DEF_ENDLIST
  648. DEF_METHOD
  649. public List()
  650. //    Creates a new scrolling list initialized with no visible Lines
  651. // or multiple selections.
  652. // 
  653. DEF_ENDLIST
  654. DEF_METHOD
  655. public List(int rows,
  656.             boolean multipleSelections)
  657. //    Creates a new scrolling list initialized with the specified 
  658. // number of visible lines and a boolean stating whether multiple
  659. // selections are allowed or not.
  660. //   
  661. //      Parameters:
  662. //      rows - the number of items to show.
  663. //      multipleSelections - if true then multiple selections are allowed.
  664. //   
  665. // 
  666. DEF_ENDLIST
  667. DEF_METHOD
  668. public synchronized void addNotify()
  669. //    Creates the peer for the list.  The peer allows us to modify the
  670. // list's appearance without changing its functionality.
  671. //   
  672. //      Overrides:
  673. //      addNotify in class Component
  674. //   
  675. // 
  676. DEF_ENDLIST
  677. DEF_METHOD
  678. public synchronized void removeNotify()
  679. //    Removes the peer for this list.  The peer allows us to modify the
  680. // list's appearance without changing its functionality.
  681. //   
  682. //      Overrides:
  683. //      removeNotify in class Component
  684. //   
  685. // 
  686. DEF_ENDLIST
  687. DEF_METHOD
  688. public int countItems()
  689. //    Returns the number of items in the list.
  690. //   
  691. //      See Also:
  692. //      getItem
  693. //   
  694. // 
  695. DEF_ENDLIST
  696. DEF_METHOD
  697. public String getItem(int index)
  698. //    Gets the item associated with the specified index.
  699. //   
  700. //      Parameters:
  701. //      index - the position of the item
  702. //      See Also:
  703. //      countItems
  704. //   
  705. // 
  706. DEF_ENDLIST
  707. DEF_METHOD
  708. public synchronized void addItem(String item)
  709. //    Adds the specified item to the end of scrolling list.
  710. //   
  711. //      Parameters:
  712. //      item - the item to be added
  713. //   
  714. // 
  715. DEF_ENDLIST
  716. DEF_METHOD
  717. public synchronized void addItem(String item,
  718.                                  int index)
  719. //    Adds the specified item to the end of scrolling list.
  720. //   
  721. //      Parameters:
  722. //      item - the item to be added
  723. //      index - the position at which to put in the item. The
  724. // index is zero-based. If index is -1 then the item is added to
  725. // the end. If index is greater than the number of items in the
  726. // list, the item gets added at the end.
  727. //   
  728. // 
  729. DEF_ENDLIST
  730. DEF_METHOD
  731. public synchronized void replaceItem(String newValue,
  732.                                      int index)
  733. //    Replaces the item at the given index.
  734. //   
  735. //      Parameters:
  736. //      newValue - the new value to replace the existing item
  737. //      index - the position of the item to replace
  738. //   
  739. // 
  740. DEF_ENDLIST
  741. DEF_METHOD
  742. public synchronized void clear()
  743. //    Clears the list.
  744. //   
  745. //      See Also:
  746. //      delItem, delItems
  747. //   
  748. // 
  749. DEF_ENDLIST
  750. DEF_METHOD
  751. public synchronized void delItem(int position)
  752. //    Delete an item from the list.
  753. // 
  754. DEF_ENDLIST
  755. DEF_METHOD
  756. public synchronized void delItems(int start,
  757.                                   int end)
  758. //    Delete multiple items from the list.
  759. // 
  760. DEF_ENDLIST
  761. DEF_METHOD
  762. public synchronized int getSelectedIndex()
  763. //    Get the selected item on the list or -1 if no item is selected.
  764. //   
  765. //      See Also:
  766. //      select, deselect, isSelected
  767. //   
  768. // 
  769. DEF_ENDLIST
  770. DEF_METHOD
  771. public synchronized int[] getSelectedIndexes()
  772. //    Returns the selected indexes on the list.
  773. //   
  774. //      See Also:
  775. //      select, deselect, isSelected
  776. //   
  777. // 
  778. DEF_ENDLIST
  779. DEF_METHOD
  780. public synchronized String getSelectedItem()
  781. //    Returns the selected item on the list or null if no item is selected.
  782. //   
  783. //      See Also:
  784. //      select, deselect, isSelected
  785. //   
  786. // 
  787. DEF_ENDLIST
  788. DEF_METHOD
  789. public synchronized String[] getSelectedItems()
  790. //    Returns the selected items on the list.
  791. //   
  792. //      See Also:
  793. //      select, deselect, isSelected
  794. //   
  795. // 
  796. DEF_ENDLIST
  797. DEF_METHOD
  798. public synchronized void select(int index)
  799. //    Selects the item at the specified index.
  800. //   
  801. //      Parameters:
  802. //      index - the position of the item to select
  803. //      See Also:
  804. //      getSelectedItem, deselect, isSelected
  805. //   
  806. // 
  807. DEF_ENDLIST
  808. DEF_METHOD
  809. public synchronized void deselect(int index)
  810. //    Deselects the item at the specified index.
  811. //   
  812. //      Parameters:
  813. //      index - the position of the item to deselect
  814. //      See Also:
  815. //      select, getSelectedItem, isSelected
  816. //   
  817. // 
  818. DEF_ENDLIST
  819. DEF_METHOD
  820. public synchronized boolean isSelected(int index)
  821. //    Returns true if the item at the specified index has been selected;
  822. // false otherwise.
  823. //   
  824. //      Parameters:
  825. //      index - the item to be checked
  826. //      See Also:
  827. //      select, deselect, isSelected
  828. //   
  829. // 
  830. DEF_ENDLIST
  831. DEF_METHOD
  832. public int getRows()
  833. //    Returns the number of visible lines in this list.
  834. // 
  835. DEF_ENDLIST
  836. DEF_METHOD
  837. public boolean allowsMultipleSelections()
  838. //    Returns true if this list allows multiple selections.
  839. //   
  840. //      See Also:
  841. //      setMultipleSelections
  842. //   
  843. // 
  844. DEF_ENDLIST
  845. DEF_METHOD
  846. public void setMultipleSelections(boolean v)
  847. //    Sets whether this list should allow multiple selections or not.
  848. //   
  849. //      Parameters:
  850. //      v - the boolean to allow multiple selections
  851. //      See Also:
  852. //      allowsMultipleSelections
  853. //   
  854. // 
  855. DEF_ENDLIST
  856. DEF_METHOD
  857. public int getVisibleIndex()
  858. //    Gets the index of the item that was last made visible by the method
  859. // makeVisible.
  860. // 
  861. DEF_ENDLIST
  862. DEF_METHOD
  863. public void makeVisible(int index)
  864. //    Forces the item at the specified index to be visible.
  865. //   
  866. //      Parameters:
  867. //      index - the position of the item
  868. //      See Also:
  869. //      getVisibleIndex
  870. //   
  871. // 
  872. DEF_ENDLIST
  873. DEF_METHOD
  874. public Dimension preferredSize(int rows)
  875. //    Returns the preferred dimensions needed for the list with the specified
  876. // amount of rows.
  877. //   
  878. //      Parameters:
  879. //      rows - amount of rows in list.
  880. //   
  881. // 
  882. DEF_ENDLIST
  883. DEF_METHOD
  884. public Dimension preferredSize()
  885. //    Returns the preferred dimensions needed for the list.
  886. //   
  887. //      Returns:
  888. //      the preferred size with the specified number of rows if the 
  889. // row size is greater than 0.
  890. //      Overrides:
  891. //      preferredSize in class Component
  892. //   
  893. // 
  894. DEF_ENDLIST
  895. DEF_METHOD
  896. public Dimension minimumSize(int rows)
  897. //    Returns the minimum dimensions needed for the amount of rows in the 
  898. // list.
  899. //   
  900. //      Parameters:
  901. //      rows - minimum amount of rows in the list
  902. //   
  903. // 
  904. DEF_ENDLIST
  905. DEF_METHOD
  906. public Dimension minimumSize()
  907. //    Returns the minimum dimensions needed for the list.
  908. //   
  909. //      Returns:
  910. //      the preferred size with the specified number of rows if
  911. // the row size is greater than zero.
  912. //      Overrides:
  913. //      minimumSize in class Component
  914. //   
  915. // 
  916. DEF_ENDLIST
  917. DEF_METHOD
  918. protected String paramString()
  919. //    Returns the parameter String of this list.
  920. //   
  921. //      Overrides:
  922. //      paramString in class Component
  923. //   
  924. // 
  925. DEF_ENDLIST
  926. DEF_PROPERTY
  927. MultipleSelections
  928. boolean
  929. setMultipleSelections(AVALUE);
  930. AVALUE = allowsMultipleSelections();
  931. false
  932. DEF_ENDLIST
  933. DEF_PROPERTY
  934. Top
  935. int
  936. move(bounds().x, AVALUE);
  937. AVALUE = bounds().y;
  938. 0
  939. DEF_ENDLIST
  940. DEF_PROPERTY
  941. Left
  942. int
  943. move(AVALUE, bounds().y);
  944. AVALUE = bounds().x;
  945. 0
  946. DEF_ENDLIST
  947. DEF_PROPERTY
  948. Height
  949. int
  950. resize(bounds().width, AVALUE);
  951. AVALUE = bounds().height;
  952. 100
  953. DEF_ENDLIST
  954. DEF_PROPERTY
  955. Width
  956. int
  957. resize(AVALUE, bounds().height);
  958. AVALUE = bounds().width;
  959. 100
  960. DEF_ENDLIST
  961. DEF_PROPERTY
  962. ForegroundColor
  963. Color
  964. setForeground(AVALUE);
  965. AVALUE = getForeground();
  966. Color.black
  967. DEF_ENDLIST
  968. DEF_PROPERTY
  969. BackgroundColor
  970. Color
  971. setBackground(AVALUE);
  972. AVALUE = getBackground();
  973. Color.white
  974. DEF_ENDLIST
  975. DEF_PROPERTY
  976. FontName
  977. String
  978. setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
  979. AVALUE = getFont().getName();
  980. Courier
  981. DEF_ENDLIST
  982. DEF_PROPERTY
  983. FontStyle
  984. int
  985. setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
  986. AVALUE = getFont().getStyle();
  987. Font.PLAIN
  988. DEF_ENDLIST
  989. DEF_PROPERTY
  990. FontSize
  991. int
  992. setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
  993. AVALUE = getFont().getSize();
  994. 10
  995. DEF_ENDLIST
  996.  
  997. DEF_ENDCOMPONENT
  998. DEF_COMPONENTNAME
  999. MediaTracker
  1000. DEF_SUPERCLASS
  1001. Object
  1002. DEF_SUPERCOMPONENT
  1003.  
  1004. DEF_PACKAGE
  1005. java
  1006. awt
  1007. DEF_ENDLIST
  1008. DEF_SUBCOMPONENTLIST
  1009. DEF_ENDLIST
  1010. DEF_SUBCOMPONENTCLASSLIST
  1011. DEF_ENDLIST
  1012. DEF_CATEGORY
  1013.  
  1014. DEF_BITMAP
  1015.  
  1016. DEF_THUMBNAIL_UP
  1017.  
  1018. DEF_THUMBNAIL_DOWN
  1019.  
  1020. DEF_BASE
  1021. DEF_IMPORTS
  1022. DEF_ENDLIST
  1023. DEF_REQUIRES
  1024. DEF_ENDLIST
  1025. DEF_IMPLEMENTS
  1026. DEF_ENDLIST
  1027. DEF_DECLARATION
  1028. // A utility class to track the status of a number of media objects.
  1029. // Media objects could include images as well as audio clips, though
  1030. // currently only images are supported.  To use it, simply create an
  1031. // instance and then call addImage() for each image to be tracked.
  1032. // Each image can be assigned a unique ID for indentification purposes.
  1033. // The IDs control the priority order in which the images are fetched
  1034. // as well as identifying unique subsets of the images that can be
  1035. // waited on independently.  Here is an example:
  1036. // 
  1037. // import java.applet.Applet;
  1038. // import java.awt.Color;
  1039. // import java.awt.Image;
  1040. // import java.awt.Graphics;
  1041. // import java.awt.MediaTracker;
  1042. // public class ImageBlaster extends Applet implements Runnable {
  1043. //     MediaTracker tracker;
  1044. //     Image bg;
  1045. //     Image anim[] = new Image[5];
  1046. //     int index;
  1047. //     Thread animator;
  1048. //     // Get the images for the background (id == 0) and the animation
  1049. //     // frames (id == 1) and add them to the MediaTracker
  1050. //     public void init() {
  1051. //         tracker = new MediaTracker(this);
  1052. //         bg = getImage(getDocumentBase(), "images/background.gif");
  1053. //         tracker.addImage(bg, 0);
  1054. //         for (int i = 0; i < 5; i++) {
  1055. //         anim[i] = getImage(getDocumentBase(), "images/anim"+i+".gif");
  1056. //         tracker.addImage(anim[i], 1);
  1057. //         }
  1058. //     }
  1059. //     // Start the animation thread.
  1060. //     public void start() {
  1061. //         animator = new Thread(this);
  1062. //         animator.start();
  1063. //     }
  1064. //     // Stop the animation thread.
  1065. //     public void stop() {
  1066. //         animator.stop();
  1067. //         animator = null;
  1068. //     }
  1069. //     // Run the animation thread.
  1070. //     // First wait for the background image to fully load and paint.
  1071. //     // Then wait for all of the animation frames to finish loading.
  1072. //     // Finally loop and increment the animation frame index.
  1073. //     public void run() {
  1074. //         try {
  1075. //         tracker.waitForID(0);
  1076. //         tracker.waitForID(1);
  1077. //         } catch (InterruptedException e) {
  1078. //         return;
  1079. //         }
  1080. //         Thread me = Thread.currentThread();
  1081. //         while (animator == me) {
  1082. //         try {
  1083. //             Thread.sleep(100);
  1084. //         } catch (InterruptedException e) {
  1085. //             break;
  1086. //         }
  1087. //         synchronized (this) {
  1088. //             index++;
  1089. //             if (index >= anim.length) {
  1090. //             index = 0;
  1091. //             }
  1092. //         }
  1093. //         repaint();
  1094. //         }
  1095. //     }
  1096. //     // The background image fills our frame so we don't need to clear
  1097. //     // the applet on repaints, just call the paint method.
  1098. //     public void update(Graphics g) {
  1099. //         paint(g);
  1100. //     }
  1101. //     // Paint a large red rectangle if there are any errors loading the
  1102. //     // images.  Otherwise always paint the background so that it appears
  1103. //     // incrementally as it is loading.  Finally, only paint the current
  1104. //     // animation frame if all of the frames (id == 1) are done loading
  1105. //     // so that we don't get partial animations.
  1106. //     public void paint(Graphics g) {
  1107. //         if ((tracker.statusAll() & MediaTracker.ERRORED) != 0) {
  1108. //         g.setColor(Color.red);
  1109. //         g.fillRect(0, 0, size().width, size().height);
  1110. //         return;
  1111. //         }
  1112. //         g.drawImage(bg, 0, 0, this);
  1113. //         if ((tracker.statusID(1) & MediaTracker.COMPLETE) != 0) {
  1114. //         g.drawImage(anim[index], 10, 10, this);
  1115. //         }
  1116. //     }
  1117. // }
  1118. // 
  1119. DEF_ENDLIST
  1120. DEF_METHOD
  1121. public MediaTracker(Component comp)
  1122. //    Creates a Media tracker to track images for a given Component.
  1123. //   
  1124. //      Parameters:
  1125. //      comp - the component on which the images will eventually be drawn
  1126. //   
  1127. // 
  1128. DEF_ENDLIST
  1129. DEF_METHOD
  1130. public void addImage(Image image,
  1131.                      int id)
  1132. //    Adds an image to the list of images being tracked.  The image
  1133. // will eventually be rendered at its default (unscaled) size.
  1134. //   
  1135. //      Parameters:
  1136. //      image - the image to be tracked
  1137. //      id - the identifier used to later track this image
  1138. //   
  1139. // 
  1140. DEF_ENDLIST
  1141. DEF_METHOD
  1142. public synchronized void addImage(Image image,
  1143.                                   int id,
  1144.                                   int w,
  1145.                                   int h)
  1146. //    Adds a scaled image to the list of images being tracked.  The
  1147. // image will eventually be rendered at the indicated size.
  1148. //   
  1149. //      Parameters:
  1150. //      image - the image to be tracked
  1151. //      id - the identifier used to later track this image
  1152. //      w - the width that the image will be rendered at
  1153. //      h - the height that the image will be rendered at
  1154. //   
  1155. // 
  1156. DEF_ENDLIST
  1157. DEF_METHOD
  1158. public boolean checkAll()
  1159. //    Checks to see if all images have finished loading but does not start
  1160. // loading the images if they are not already loading.
  1161. // If there is an error while loading or scaling an image then that
  1162. // image is considered "complete."
  1163. // Use isErrorAny() or isErrorID() to check for errors.
  1164. //   
  1165. //      Returns:
  1166. //      true if all images have finished loading, were aborted or
  1167. // encountered an error
  1168. //      See Also:
  1169. //      checkAll, checkID, isErrorAny, isErrorID
  1170. //   
  1171. // 
  1172. DEF_ENDLIST
  1173. DEF_METHOD
  1174. public synchronized boolean checkAll(boolean load)
  1175. //    Checks to see if all images have finished loading. If load is
  1176. // true, starts loading any images that are not yet being loaded.
  1177. // If there is an error while loading or scaling an image then
  1178. // that image is considered "complete."  Use isErrorAny() or
  1179. // isErrorID() to check for errors.
  1180. //   
  1181. //      Parameters:
  1182. //      load - start loading the images if this parameter is true
  1183. //      Returns:
  1184. //      true if all images have finished loading, were aborted or
  1185. // encountered an error
  1186. //      See Also:
  1187. //      isErrorAny, isErrorID, checkID, checkAll
  1188. //   
  1189. // 
  1190. DEF_ENDLIST
  1191. DEF_METHOD
  1192. public synchronized boolean isErrorAny()
  1193. //    Checks the error status of all of the images.
  1194. //   
  1195. //      Returns:
  1196. //      true if any of the images had an error during loading
  1197. //      See Also:
  1198. //      isErrorID, getErrorsAny
  1199. //   
  1200. // 
  1201. DEF_ENDLIST
  1202. DEF_METHOD
  1203. public synchronized Object[] getErrorsAny()
  1204. //    Returns a list of all media that have encountered an error.
  1205. //   
  1206. //      Returns:
  1207. //      an array of media objects or null if there are no errors
  1208. //      See Also:
  1209. //      isErrorAny, getErrorsID
  1210. //   
  1211. // 
  1212. DEF_ENDLIST
  1213. DEF_METHOD
  1214. public void waitForAll() throws InterruptedException
  1215. //    Starts loading all images. Waits until they have finished loading,
  1216. // are aborted, or it receives an error.
  1217. // If there is an error while loading or scaling an image then that
  1218. // image is considered "complete."
  1219. // Use isErrorAny() or statusAll() to check for errors.
  1220. //   
  1221. //      Throws: InterruptedException
  1222. //      Another thread has interrupted this thread.
  1223. //      See Also:
  1224. //      waitForID, waitForAll, isErrorAny, isErrorID
  1225. //   
  1226. // 
  1227. DEF_ENDLIST
  1228. DEF_METHOD
  1229. public synchronized boolean waitForAll(long ms) throws InterruptedException
  1230. //    Starts loading all images. Waits until they have finished loading,
  1231. // are aborted, it receives an error, or until the specified timeout has
  1232. // elapsed.
  1233. // If there is an error while loading or scaling an image then that
  1234. // image is considered "complete."
  1235. // Use isErrorAny() or statusAll() to check for errors.
  1236. //   
  1237. //      Parameters:
  1238. //      ms - the length of time to wait for the loading to complete
  1239. //      Returns:
  1240. //      true if all images were successfully loaded
  1241. //      Throws: InterruptedException
  1242. //      Another thread has interrupted this thread.
  1243. //      See Also:
  1244. //      waitForID, waitForAll, isErrorAny, isErrorID
  1245. //   
  1246. // 
  1247. DEF_ENDLIST
  1248. DEF_METHOD
  1249. public int statusAll(boolean load)
  1250. //    Returns the boolean OR of the status of all of the media being
  1251. // tracked.
  1252. //   
  1253. //      Parameters:
  1254. //      load - specifies whether to start the media loading
  1255. //      See Also:
  1256. //      statusID, LOADING, ABORTED, ERRORED, COMPLETE
  1257. //   
  1258. // 
  1259. DEF_ENDLIST
  1260. DEF_METHOD
  1261. public boolean checkID(int id)
  1262. //    Checks to see if all images tagged with the indicated ID have
  1263. // finished loading, but does not start loading the images if they
  1264. // are not already loading.
  1265. // If there is an error while loading or scaling an image then that
  1266. // image is considered "complete."
  1267. // Use isErrorAny() or isErrorID() to check for errors.
  1268. //   
  1269. //      Parameters:
  1270. //      id - the identifier used to determine which images to check
  1271. //      Returns:
  1272. //      true if all tagged images have finished loading, were
  1273. // aborted, or an error occurred.
  1274. //      See Also:
  1275. //      checkID, checkAll, isErrorAny, isErrorID
  1276. //   
  1277. // 
  1278. DEF_ENDLIST
  1279. DEF_METHOD
  1280. public synchronized boolean checkID(int id,
  1281.                                     boolean load)
  1282. //    Checks to see if all images tagged with the indicated ID have
  1283. // finished loading. If load is true, starts loading any images
  1284. // with that ID that are not yet being loaded.  If there is an
  1285. // error while loading or scaling an image then that image is
  1286. // considered "complete."  Use isErrorAny() or isErrorID() to
  1287. // check for errors.
  1288. //   
  1289. //      Parameters:
  1290. //      id - the identifier used to determine which images to check
  1291. //      load - start loading the images if this parameter is true
  1292. //      Returns:
  1293. //      true if all tagged images have finished loading, were
  1294. // aborted, or an error occurred
  1295. //      See Also:
  1296. //      checkID, checkAll, isErrorAny, isErrorID
  1297. //   
  1298. // 
  1299. DEF_ENDLIST
  1300. DEF_METHOD
  1301. public synchronized boolean isErrorID(int id)
  1302. //    Checks the error status of all of the images with the specified ID.
  1303. //   
  1304. //      Parameters:
  1305. //      id - the identifier used to determine which images to check
  1306. //      Returns:
  1307. //      true if any of the tagged images had an error during loading
  1308. //      See Also:
  1309. //      isErrorAny, getErrorsID
  1310. //   
  1311. // 
  1312. DEF_ENDLIST
  1313. DEF_METHOD
  1314. public synchronized Object[] getErrorsID(int id)
  1315. //    Returns a list of media with the specified ID that have encountered
  1316. // an error.
  1317. //   
  1318. //      Parameters:
  1319. //      id - the identifier used to determine which images to return
  1320. //      Returns:
  1321. //      an array of media objects or null if there are no errors
  1322. //      See Also:
  1323. //      isErrorID, getErrorsAny
  1324. //   
  1325. // 
  1326. DEF_ENDLIST
  1327. DEF_METHOD
  1328. public void waitForID(int id) throws InterruptedException
  1329. //    Starts loading all images with the specified ID and waits until they
  1330. // have finished loading or receive an error.
  1331. // If there is an error while loading or scaling an image then that
  1332. // image is considered "complete."
  1333. // Use statusID() or isErrorID() to check for errors.
  1334. //   
  1335. //      Parameters:
  1336. //      id - the identifier used to determine which images to wait for
  1337. //      Throws: InterruptedException
  1338. //      Another thread has interrupted this thread.
  1339. //      See Also:
  1340. //      waitForAll, waitForID, isErrorAny, isErrorID
  1341. //   
  1342. // 
  1343. DEF_ENDLIST
  1344. DEF_METHOD
  1345. public synchronized boolean waitForID(int id,
  1346.                                       long ms) throws InterruptedException
  1347. //    Starts loading all images with the specified ID. Waits until they
  1348. // have finished loading, an error occurs, or the specified
  1349. // timeout has elapsed.
  1350. // If there is an error while loading or scaling an image then that
  1351. // image is considered "complete."
  1352. // Use statusID or isErrorID to check for errors.
  1353. //   
  1354. //      Parameters:
  1355. //      id - the identifier used to determine which images to wait for
  1356. //      ms - the length of time to wait for the loading to complete
  1357. //      Throws: InterruptedException
  1358. //      Another thread has interrupted this thread.
  1359. //      See Also:
  1360. //      waitForAll, waitForID, isErrorAny, isErrorID
  1361. //   
  1362. // 
  1363. DEF_ENDLIST
  1364. DEF_METHOD
  1365. public int statusID(int id,
  1366.                     boolean load)
  1367. //    Returns the boolean OR of the status of all of the media with
  1368. // a given ID.
  1369. //   
  1370. //      Parameters:
  1371. //      id - the identifier used to determine which images to check
  1372. //      load - specifies whether to start the media loading
  1373. //      See Also:
  1374. //      statusAll, LOADING, ABORTED, ERRORED, COMPLETE
  1375. //   
  1376. // 
  1377. DEF_ENDLIST
  1378. DEF_ENDCOMPONENT
  1379. DEF_COMPONENTNAME
  1380. Menu
  1381. DEF_SUPERCLASS
  1382. MenuItem
  1383. DEF_SUPERCOMPONENT
  1384.  
  1385. DEF_PACKAGE
  1386. java
  1387. awt
  1388. DEF_ENDLIST
  1389. DEF_SUBCOMPONENTLIST
  1390. DEF_ENDLIST
  1391. DEF_SUBCOMPONENTCLASSLIST
  1392. DEF_ENDLIST
  1393. DEF_CATEGORY
  1394.  
  1395. DEF_BITMAP
  1396.  
  1397. DEF_THUMBNAIL_UP
  1398.  
  1399. DEF_THUMBNAIL_DOWN
  1400.  
  1401. DEF_BASE
  1402. DEF_IMPORTS
  1403. DEF_ENDLIST
  1404. DEF_REQUIRES
  1405. DEF_ENDLIST
  1406. DEF_IMPLEMENTS
  1407. MenuContainer
  1408. DEF_ENDLIST
  1409. DEF_DECLARATION
  1410. // A Menu that is a component of a menu bar.
  1411. DEF_ENDLIST
  1412. DEF_METHOD
  1413. public Menu(String label)
  1414. //    Constructs a new Menu with the specified label.  This menu can
  1415. // not be torn off - the menu will still appear on screen after
  1416. // the the mouse button has been released.
  1417. //   
  1418. //      Parameters:
  1419. //      label - the label to be added to this menu
  1420. //   
  1421. // 
  1422. DEF_ENDLIST
  1423. DEF_METHOD
  1424. public Menu(String label,
  1425.             boolean tearOff)
  1426. //    Constructs a new Menu with the specified label. If tearOff is
  1427. // true, the menu can be torn off - the menu will still appear on
  1428. // screen after the the mouse button has been released.
  1429. //   
  1430. //      Parameters:
  1431. //      label - the label to be added to this menu
  1432. //      tearOff - the boolean indicating whether or not the menu will be
  1433. // able to be torn off.
  1434. //   
  1435. // 
  1436. DEF_ENDLIST
  1437. DEF_METHOD
  1438. public synchronized void addNotify()
  1439. //    Creates the menu's peer.  The peer allows us to modify the 
  1440. // appearance of the menu without changing its functionality.
  1441. //   
  1442. //      Overrides:
  1443. //      addNotify in class MenuItem
  1444. //   
  1445. // 
  1446. DEF_ENDLIST
  1447. DEF_METHOD
  1448. public synchronized void removeNotify()
  1449. //    Removes the menu's peer.  The peer allows us to modify the appearance
  1450. // of the menu without changing its functionality.
  1451. //   
  1452. //      Overrides:
  1453. //      removeNotify in class MenuComponent
  1454. //   
  1455. // 
  1456. DEF_ENDLIST
  1457. DEF_METHOD
  1458. public boolean isTearOff()
  1459. //    Returns true if this is a tear-off menu.
  1460. // 
  1461. DEF_ENDLIST
  1462. DEF_METHOD
  1463. public int countItems()
  1464. //    Returns the number of elements in this menu.
  1465. // 
  1466. DEF_ENDLIST
  1467. DEF_METHOD
  1468. public MenuItem getItem(int index)
  1469. //    Returns the item located at the specified index of this menu.
  1470. //   
  1471. //      Parameters:
  1472. //      index - the position of the item to be returned
  1473. //   
  1474. // 
  1475. DEF_ENDLIST
  1476. DEF_METHOD
  1477. public synchronized MenuItem add(MenuItem mi)
  1478. //    Adds the specified item to this menu.
  1479. //   
  1480. //      Parameters:
  1481. //      mi - the item to be added
  1482. //   
  1483. // 
  1484. DEF_ENDLIST
  1485. DEF_METHOD
  1486. public void add(String label)
  1487. //    Adds an item with with the specified label to this menu.
  1488. //   
  1489. //      Parameters:
  1490. //      label - the text on the item
  1491. //   
  1492. // 
  1493. DEF_ENDLIST
  1494. DEF_METHOD
  1495. public void addSeparator()
  1496. //    Adds a separator line, or a hypen, to the menu at the current position.
  1497. // 
  1498. DEF_ENDLIST
  1499. DEF_METHOD
  1500. public synchronized void remove(int index)
  1501. //    Deletes the item from this menu at the specified index.
  1502. //   
  1503. //      Parameters:
  1504. //      index - the position of the item to be removed
  1505. //   
  1506. // 
  1507. DEF_ENDLIST
  1508. DEF_METHOD
  1509. public synchronized void remove(MenuComponent item)
  1510. //    Deletes the specified item from this menu.
  1511. //   
  1512. //      Parameters:
  1513. //      item - the item to be removed from the menu
  1514. //   
  1515. // 
  1516. DEF_ENDLIST
  1517. DEF_ENDCOMPONENT
  1518. DEF_COMPONENTNAME
  1519. MenuBar
  1520. DEF_SUPERCLASS
  1521. MenuComponent
  1522. DEF_SUPERCOMPONENT
  1523.  
  1524. DEF_PACKAGE
  1525. java
  1526. awt
  1527. DEF_ENDLIST
  1528. DEF_SUBCOMPONENTLIST
  1529. DEF_ENDLIST
  1530. DEF_SUBCOMPONENTCLASSLIST
  1531. DEF_ENDLIST
  1532. DEF_CATEGORY
  1533.  
  1534. DEF_BITMAP
  1535.  
  1536. DEF_THUMBNAIL_UP
  1537.  
  1538. DEF_THUMBNAIL_DOWN
  1539.  
  1540. DEF_BASE
  1541. DEF_IMPORTS
  1542. DEF_ENDLIST
  1543. DEF_REQUIRES
  1544. DEF_ENDLIST
  1545. DEF_IMPLEMENTS
  1546. MenuContainer
  1547. DEF_ENDLIST
  1548. DEF_DECLARATION
  1549. // A class that encapsulates the platform's concept of a menu bar bound
  1550. // to a Frame. In order to associate the MenuBar with an actual Frame,
  1551. // the Frame.setMenuBar() method should be called.
  1552. // 
  1553. //      See Also:
  1554. //      setMenuBar
  1555. // 
  1556. DEF_ENDLIST
  1557. DEF_METHOD
  1558. public MenuBar()
  1559. //    Creates a new menu bar.
  1560. // 
  1561. DEF_ENDLIST
  1562. DEF_METHOD
  1563. public synchronized void addNotify()
  1564. //    Creates the menu bar's peer.  The peer allows us to change the 
  1565. // appearance of the menu bar without changing any of the menu bar's 
  1566. // functionality.
  1567. // 
  1568. DEF_ENDLIST
  1569. DEF_METHOD
  1570. public void removeNotify()
  1571. //    Removes the menu bar's peer.  The peer allows us to change the 
  1572. // appearance of the menu bar without changing any of the menu bar's 
  1573. // functionality.
  1574. //   
  1575. //      Overrides:
  1576. //      removeNotify in class MenuComponent
  1577. //   
  1578. // 
  1579. DEF_ENDLIST
  1580. DEF_METHOD
  1581. public Menu getHelpMenu()
  1582. //    Gets the help menu on the menu bar.
  1583. // 
  1584. DEF_ENDLIST
  1585. DEF_METHOD
  1586. public synchronized void setHelpMenu(Menu m)
  1587. //    Sets the help menu to the specified menu on the menu bar.
  1588. //   
  1589. //      Parameters:
  1590. //      m - the menu to be set
  1591. //   
  1592. // 
  1593. DEF_ENDLIST
  1594. DEF_METHOD
  1595. public synchronized Menu add(Menu m)
  1596. //    Adds the specified menu to the menu bar.
  1597. //   
  1598. //      Parameters:
  1599. //      m - the menu to be added to the menu bar
  1600. //   
  1601. // 
  1602. DEF_ENDLIST
  1603. DEF_METHOD
  1604. public synchronized void remove(int index)
  1605. //    Removes the menu located at the specified index from the menu bar.
  1606. //   
  1607. //      Parameters:
  1608. //      index - the position of the menu to be removed
  1609. //   
  1610. // 
  1611. DEF_ENDLIST
  1612. DEF_METHOD
  1613. public synchronized void remove(MenuComponent m)
  1614. //    Removes the specified menu from the menu bar.
  1615. //   
  1616. //      Parameters:
  1617. //      m - the menu to be removed
  1618. //   
  1619. // 
  1620. DEF_ENDLIST
  1621. DEF_METHOD
  1622. public int countMenus()
  1623. //    Counts the number of menus on the menu bar.
  1624. // 
  1625. DEF_ENDLIST
  1626. DEF_METHOD
  1627. public Menu getMenu(int i)
  1628. //    Gets the specified menu.
  1629. //   
  1630. //      Parameters:
  1631. //      i - the menu to be returned
  1632. //   
  1633. // 
  1634. DEF_ENDLIST
  1635. DEF_ENDCOMPONENT
  1636. DEF_COMPONENTNAME
  1637. MenuComponent
  1638. DEF_SUPERCLASS
  1639. Object
  1640. DEF_SUPERCOMPONENT
  1641.  
  1642. DEF_PACKAGE
  1643. java
  1644. awt
  1645. DEF_ENDLIST
  1646. DEF_SUBCOMPONENTLIST
  1647. DEF_ENDLIST
  1648. DEF_SUBCOMPONENTCLASSLIST
  1649. DEF_ENDLIST
  1650. DEF_CATEGORY
  1651.  
  1652. DEF_BITMAP
  1653.  
  1654. DEF_THUMBNAIL_UP
  1655.  
  1656. DEF_THUMBNAIL_DOWN
  1657.  
  1658. DEF_BASE
  1659. DEF_IMPORTS
  1660. DEF_ENDLIST
  1661. DEF_REQUIRES
  1662. DEF_ENDLIST
  1663. DEF_IMPLEMENTS
  1664. DEF_ENDLIST
  1665. DEF_DECLARATION
  1666. // The super class of all menu related components.
  1667. DEF_ENDLIST
  1668. DEF_EVENT
  1669. public boolean postEvent(Event evt)
  1670. //    Posts the specified event to the menu.
  1671. //   
  1672. //      Parameters:
  1673. //      evt - the event which is to take place
  1674. //   
  1675. // 
  1676. DEF_ENDLIST
  1677. DEF_METHOD
  1678. public MenuComponent()
  1679. //    Returns the parent container.
  1680. // 
  1681. DEF_ENDLIST
  1682. DEF_METHOD
  1683. public MenuComponentPeer getPeer()
  1684. //    Gets the MenuComponent's peer.  The peer allows us to modify the
  1685. // appearance of the menu component without changing the functionality of
  1686. // the menu component.
  1687. // 
  1688. DEF_ENDLIST
  1689. DEF_METHOD
  1690. public Font getFont()
  1691. //    Gets the font used for this MenuItem.
  1692. //   
  1693. //      Returns:
  1694. //      the font if one is used; null otherwise.
  1695. //   
  1696. // 
  1697. DEF_ENDLIST
  1698. DEF_METHOD
  1699. public void setFont(Font f)
  1700. //    Sets the font to be used for this MenuItem to the specified font.
  1701. //   
  1702. //      Parameters:
  1703. //      f - the font to be set
  1704. //   
  1705. // 
  1706. DEF_ENDLIST
  1707. DEF_METHOD
  1708. public void removeNotify()
  1709. //    Removes the menu component's peer.  The peer allows us to modify the
  1710. // appearance of the menu component without changing the functionality of
  1711. // the menu component.
  1712. // 
  1713. DEF_ENDLIST
  1714. DEF_METHOD
  1715. protected String paramString()
  1716. //    Returns the String parameter of this MenuComponent.
  1717. // 
  1718. DEF_ENDLIST
  1719. DEF_METHOD
  1720. public String toString()
  1721. //    Returns the String representation of this MenuComponent's values.
  1722. //   
  1723. //      Overrides:
  1724. //      toString in class Object
  1725. //   
  1726. // 
  1727. DEF_ENDLIST
  1728. DEF_ENDCOMPONENT
  1729. DEF_COMPONENTNAME
  1730. MenuItem
  1731. DEF_SUPERCLASS
  1732. MenuComponent
  1733. DEF_SUPERCOMPONENT
  1734.  
  1735. DEF_PACKAGE
  1736. java
  1737. awt
  1738. DEF_ENDLIST
  1739. DEF_SUBCOMPONENTLIST
  1740. DEF_ENDLIST
  1741. DEF_SUBCOMPONENTCLASSLIST
  1742. DEF_ENDLIST
  1743. DEF_CATEGORY
  1744.  
  1745. DEF_BITMAP
  1746.  
  1747. DEF_THUMBNAIL_UP
  1748.  
  1749. DEF_THUMBNAIL_DOWN
  1750.  
  1751. DEF_BASE
  1752. DEF_IMPORTS
  1753. DEF_ENDLIST
  1754. DEF_REQUIRES
  1755. DEF_ENDLIST
  1756. DEF_IMPLEMENTS
  1757. DEF_ENDLIST
  1758. DEF_DECLARATION
  1759. // A String item that represents a choice in a menu.
  1760. DEF_ENDLIST
  1761. DEF_METHOD
  1762. public MenuItem(String label)
  1763. //    Constructs a new MenuItem with the specified label.
  1764. //   
  1765. //      Parameters:
  1766. //      label - the label for this menu item. Note that "-" is
  1767. // reserved to mean a separator between menu items.
  1768. //   
  1769. // 
  1770. DEF_ENDLIST
  1771. DEF_METHOD
  1772. public synchronized void addNotify()
  1773. //    Creates the menu item's peer.  The peer allows us to modify the 
  1774. // appearance of the menu item without changing its functionality.
  1775. // 
  1776. DEF_ENDLIST
  1777. DEF_METHOD
  1778. public String getLabel()
  1779. //    Gets the label for this menu item.
  1780. // 
  1781. DEF_ENDLIST
  1782. DEF_METHOD
  1783. public void setLabel(String label)
  1784. //    Sets the label to be the specified label.
  1785. //   
  1786. //      Parameters:
  1787. //      label - the label for this menu item
  1788. //   
  1789. // 
  1790. DEF_ENDLIST
  1791. DEF_METHOD
  1792. public boolean isEnabled()
  1793. //    Checks whether the menu item is enabled.
  1794. // 
  1795. DEF_ENDLIST
  1796. DEF_METHOD
  1797. public void enable()
  1798. //    Makes this menu item selectable by the user.
  1799. // 
  1800. DEF_ENDLIST
  1801. DEF_METHOD
  1802. public void enable(boolean cond)
  1803. //    Conditionally enables a component.
  1804. //   
  1805. //      Parameters:
  1806. //      cond - enabled if true; disabled otherwise.
  1807. //      See Also:
  1808. //      enable, disable
  1809. //   
  1810. // 
  1811. DEF_ENDLIST
  1812. DEF_METHOD
  1813. public void disable()
  1814. //    Makes this menu item unselectable by the user.
  1815. // 
  1816. DEF_ENDLIST
  1817. DEF_METHOD
  1818. public String paramString()
  1819. //    Returns the String parameter of the menu item.
  1820. //   
  1821. //      Overrides:
  1822. //      paramString in class MenuComponent
  1823. //   
  1824. // 
  1825. DEF_ENDLIST
  1826. DEF_ENDCOMPONENT
  1827. DEF_COMPONENTNAME
  1828. Point
  1829. DEF_SUPERCLASS
  1830. Object
  1831. DEF_SUPERCOMPONENT
  1832.  
  1833. DEF_PACKAGE
  1834. java
  1835. awt
  1836. DEF_ENDLIST
  1837. DEF_SUBCOMPONENTLIST
  1838. DEF_ENDLIST
  1839. DEF_SUBCOMPONENTCLASSLIST
  1840. DEF_ENDLIST
  1841. DEF_CATEGORY
  1842.  
  1843. DEF_BITMAP
  1844.  
  1845. DEF_THUMBNAIL_UP
  1846.  
  1847. DEF_THUMBNAIL_DOWN
  1848.  
  1849. DEF_BASE
  1850. DEF_IMPORTS
  1851. DEF_ENDLIST
  1852. DEF_REQUIRES
  1853. DEF_ENDLIST
  1854. DEF_IMPLEMENTS
  1855. DEF_ENDLIST
  1856. DEF_DECLARATION
  1857. // An x,y coordinate.
  1858. DEF_ENDLIST
  1859. DEF_METHOD
  1860. public Point(int x,
  1861.              int y)
  1862. //    Constructs and initializes a Point from the specified x and y 
  1863. // coordinates.
  1864. //   
  1865. //      Parameters:
  1866. //      x - the x coordinate
  1867. //      y - the y coordinate
  1868. //   
  1869. // 
  1870. DEF_ENDLIST
  1871. DEF_METHOD
  1872. public void move(int x,
  1873.                  int y)
  1874. //    Moves the point.
  1875. // 
  1876. DEF_ENDLIST
  1877. DEF_METHOD
  1878. public void translate(int x,
  1879.                       int y)
  1880. //    Translates the point.
  1881. // 
  1882. DEF_ENDLIST
  1883. DEF_METHOD
  1884. public int hashCode()
  1885. //    Returns the hashcode for this Point.
  1886. //   
  1887. //      Overrides:
  1888. //      hashCode in class Object
  1889. //   
  1890. // 
  1891. DEF_ENDLIST
  1892. DEF_METHOD
  1893. public boolean equals(Object obj)
  1894. //    Checks whether two pointers are equal.
  1895. //   
  1896. //      Overrides:
  1897. //      equals in class Object
  1898. //   
  1899. // 
  1900. DEF_ENDLIST
  1901. DEF_METHOD
  1902. public String toString()
  1903. //    Returns the String representation of this Point's coordinates.
  1904. //   
  1905. //      Overrides:
  1906. //      toString in class Object
  1907. //   
  1908. // 
  1909. DEF_ENDLIST
  1910. DEF_ENDCOMPONENT
  1911. DEF_COMPONENTNAME
  1912. Polygon
  1913. DEF_SUPERCLASS
  1914. Object
  1915. DEF_SUPERCOMPONENT
  1916.  
  1917. DEF_PACKAGE
  1918. java
  1919. awt
  1920. DEF_ENDLIST
  1921. DEF_SUBCOMPONENTLIST
  1922. DEF_ENDLIST
  1923. DEF_SUBCOMPONENTCLASSLIST
  1924. DEF_ENDLIST
  1925. DEF_CATEGORY
  1926.  
  1927. DEF_BITMAP
  1928.  
  1929. DEF_THUMBNAIL_UP
  1930.  
  1931. DEF_THUMBNAIL_DOWN
  1932.  
  1933. DEF_BASE
  1934. DEF_IMPORTS
  1935. DEF_ENDLIST
  1936. DEF_REQUIRES
  1937. DEF_ENDLIST
  1938. DEF_IMPLEMENTS
  1939. DEF_ENDLIST
  1940. DEF_DECLARATION
  1941. // A polygon consists of a list of x and y coordinates.
  1942. DEF_ENDLIST
  1943. DEF_METHOD
  1944. public Polygon()
  1945. //    Creates an empty polygon.
  1946. // 
  1947. DEF_ENDLIST
  1948. DEF_METHOD
  1949. public Polygon(int xpoints[],
  1950.                int ypoints[],
  1951.                int npoints)
  1952. //    Constructs and initializes a Polygon from the specified parameters.
  1953. //   
  1954. //      Parameters:
  1955. //      xpoints - the array of x coordinates
  1956. //      ypoints - the array of y coordinates
  1957. //      npoints - the total number of points in the Polygon
  1958. //   
  1959. // 
  1960. DEF_ENDLIST
  1961. DEF_METHOD
  1962. public void addPoint(int x,
  1963.                      int y)
  1964. //    Appends a point to a polygon.  If inside(x, y) or another
  1965. // operation that calculates the bounding box has already been
  1966. // performed, this method updates the bounds accordingly.
  1967. //   
  1968. //      Parameters:
  1969. //      x - the x coordinate of the point
  1970. //      y - the y coordinate of the point
  1971. //   
  1972. // 
  1973. DEF_ENDLIST
  1974. DEF_METHOD
  1975. public Rectangle getBoundingBox()
  1976. //    Determines the area spanned by this Polygon.
  1977. //   
  1978. //      Returns:
  1979. //      a Rectangle defining the bounds of the Polygon.
  1980. //   
  1981. // 
  1982. DEF_ENDLIST
  1983. DEF_METHOD
  1984. public boolean inside(int x,
  1985.                       int y)
  1986. //    Determines whether the point (x,y) is inside the Polygon. Uses
  1987. // an even-odd insideness rule (also known as an alternating
  1988. // rule).
  1989. //   
  1990. //      Parameters:
  1991. //      x - the X coordinate of the point to be tested
  1992. //      y - the Y coordinate of the point to be tested
  1993. // Based on code by Hanpeter van Vliet .
  1994. //   
  1995. // 
  1996. DEF_ENDLIST
  1997. DEF_ENDCOMPONENT
  1998. DEF_COMPONENTNAME
  1999. Rectangle
  2000. DEF_SUPERCLASS
  2001. Object
  2002. DEF_SUPERCOMPONENT
  2003.  
  2004. DEF_PACKAGE
  2005. java
  2006. awt
  2007. DEF_ENDLIST
  2008. DEF_SUBCOMPONENTLIST
  2009. DEF_ENDLIST
  2010. DEF_SUBCOMPONENTCLASSLIST
  2011. DEF_ENDLIST
  2012. DEF_CATEGORY
  2013.  
  2014. DEF_BITMAP
  2015.  
  2016. DEF_THUMBNAIL_UP
  2017.  
  2018. DEF_THUMBNAIL_DOWN
  2019.  
  2020. DEF_BASE
  2021. DEF_IMPORTS
  2022. DEF_ENDLIST
  2023. DEF_REQUIRES
  2024. DEF_ENDLIST
  2025. DEF_IMPLEMENTS
  2026. DEF_ENDLIST
  2027. DEF_DECLARATION
  2028. // A rectangle defined by x, y, width and height.
  2029. DEF_ENDLIST
  2030. DEF_METHOD
  2031. public Rectangle()
  2032. //    Constructs a new rectangle.
  2033. // 
  2034. DEF_ENDLIST
  2035. DEF_METHOD
  2036. public Rectangle(int x,
  2037.                  int y,
  2038.                  int width,
  2039.                  int height)
  2040. //    Constructs and initializes a rectangle with the specified parameters.
  2041. //   
  2042. //      Parameters:
  2043. //      x - the x coordinate
  2044. //      y - the y coordinate
  2045. //      width - the width of the rectangle
  2046. //      height - the height of the rectangle
  2047. //   
  2048. // 
  2049. DEF_ENDLIST
  2050. DEF_METHOD
  2051. public Rectangle(int width,
  2052.                  int height)
  2053. //    Constructs a rectangle and initializes it with the specified width and 
  2054. // height parameters.
  2055. //   
  2056. //      Parameters:
  2057. //      width - the width of the rectangle
  2058. //      height - the height of the rectangle
  2059. //   
  2060. // 
  2061. DEF_ENDLIST
  2062. DEF_METHOD
  2063. public Rectangle(Point p,
  2064.                  Dimension d)
  2065. //    Constructs a rectangle and initializes it to a specified point and  
  2066. // dimension.
  2067. //   
  2068. //      Parameters:
  2069. //      p - the point
  2070. //      d - dimension
  2071. //   
  2072. // 
  2073. DEF_ENDLIST
  2074. DEF_METHOD
  2075. public Rectangle(Point p)
  2076. //    Constructs a rectangle and initializes it to the specified point.
  2077. //   
  2078. //      Parameters:
  2079. //      p - the value of the x and y coordinate
  2080. //   
  2081. // 
  2082. DEF_ENDLIST
  2083. DEF_METHOD
  2084. public Rectangle(Dimension d)
  2085. //    Constructs a rectangle and initializes it to the specified width and 
  2086. // height.
  2087. //   
  2088. //      Parameters:
  2089. //      d - the value of the width and height
  2090. //   
  2091. // 
  2092. DEF_ENDLIST
  2093. DEF_METHOD
  2094. public void reshape(int x,
  2095.                     int y,
  2096.                     int width,
  2097.                     int height)
  2098. //    Reshapes the rectangle.
  2099. // 
  2100. DEF_ENDLIST
  2101. DEF_METHOD
  2102. public void move(int x,
  2103.                  int y)
  2104. //    Moves the rectangle.
  2105. // 
  2106. DEF_ENDLIST
  2107. DEF_METHOD
  2108. public void translate(int x,
  2109.                       int y)
  2110. //    Translates the rectangle.
  2111. // 
  2112. DEF_ENDLIST
  2113. DEF_METHOD
  2114. public void resize(int width,
  2115.                    int height)
  2116. //    Resizes the rectangle.
  2117. // 
  2118. DEF_ENDLIST
  2119. DEF_METHOD
  2120. public boolean inside(int x,
  2121.                       int y)
  2122. //    Checks if the specified point lies inside a rectangle.
  2123. //   
  2124. //      Parameters:
  2125. //      x - the x coordinate
  2126. //      y - the y coordinate
  2127. //   
  2128. // 
  2129. DEF_ENDLIST
  2130. DEF_METHOD
  2131. public boolean intersects(Rectangle r)
  2132. //    Checks if two rectangles intersect.
  2133. // 
  2134. DEF_ENDLIST
  2135. DEF_METHOD
  2136. public Rectangle intersection(Rectangle r)
  2137. //    Computes the intersection of two rectangles.
  2138. // 
  2139. DEF_ENDLIST
  2140. DEF_METHOD
  2141. public Rectangle union(Rectangle r)
  2142. //    Computes the union of two rectangles.
  2143. // 
  2144. DEF_ENDLIST
  2145. DEF_METHOD
  2146. public void add(int newx,
  2147.                 int newy)
  2148. //    Adds a point to a rectangle. This results in the smallest
  2149. // rectangle that contains both the rectangle and the point.
  2150. // 
  2151. DEF_ENDLIST
  2152. DEF_METHOD
  2153. public void add(Point pt)
  2154. //    Adds a point to a rectangle. This results in the smallest
  2155. // rectangle that contains both the rectangle and the point.
  2156. // 
  2157. DEF_ENDLIST
  2158. DEF_METHOD
  2159. public void add(Rectangle r)
  2160. //    Adds a rectangle to a rectangle. This results in the union
  2161. // of the two rectangles.
  2162. // 
  2163. DEF_ENDLIST
  2164. DEF_METHOD
  2165. public void grow(int h,
  2166.                  int v)
  2167. //    Grows the rectangle horizontally and vertically.
  2168. // 
  2169. DEF_ENDLIST
  2170. DEF_METHOD
  2171. public boolean isEmpty()
  2172. //    Determines whether the rectangle is empty.
  2173. // 
  2174. DEF_ENDLIST
  2175. DEF_METHOD
  2176. public int hashCode()
  2177. //    Returns the hashcode for this Rectangle.
  2178. //   
  2179. //      Overrides:
  2180. //      hashCode in class Object
  2181. //   
  2182. // 
  2183. DEF_ENDLIST
  2184. DEF_METHOD
  2185. public boolean equals(Object obj)
  2186. //    Checks whether two rectangles are equal.
  2187. //   
  2188. //      Overrides:
  2189. //      equals in class Object
  2190. //   
  2191. // 
  2192. DEF_ENDLIST
  2193. DEF_METHOD
  2194. public String toString()
  2195. //    Returns the String representation of this Rectangle's values.
  2196. //   
  2197. //      Overrides:
  2198. //      toString in class Object
  2199. //   
  2200. // 
  2201. DEF_ENDLIST
  2202. DEF_ENDCOMPONENT
  2203. DEF_COMPONENTNAME
  2204. InterruptedIOException
  2205. DEF_SUPERCLASS
  2206. IOException
  2207. DEF_SUPERCOMPONENT
  2208.  
  2209. DEF_PACKAGE
  2210. java
  2211. io
  2212. DEF_ENDLIST
  2213. DEF_SUBCOMPONENTLIST
  2214. DEF_ENDLIST
  2215. DEF_SUBCOMPONENTCLASSLIST
  2216. DEF_ENDLIST
  2217. DEF_CATEGORY
  2218.  
  2219. DEF_BITMAP
  2220.  
  2221. DEF_THUMBNAIL_UP
  2222.  
  2223. DEF_THUMBNAIL_DOWN
  2224.  
  2225. DEF_BASE
  2226. DEF_IMPORTS
  2227. java.io.InterruptedIOException
  2228. DEF_ENDLIST
  2229. DEF_REQUIRES
  2230. DEF_ENDLIST
  2231. DEF_IMPLEMENTS
  2232. DEF_ENDLIST
  2233. DEF_DECLARATION
  2234. // Signals that an I/O operation has been interrupted.
  2235. // 
  2236. //      See Also:
  2237. //      InputStream, OutputStream
  2238. // 
  2239. DEF_ENDLIST
  2240. DEF_METHOD
  2241. public InterruptedIOException()
  2242. //    Constructs an IOException with no detail message.
  2243. // A detail message is a String that describes this particular exception.
  2244. // 
  2245. DEF_ENDLIST
  2246. DEF_METHOD
  2247. public InterruptedIOException(String s)
  2248. //    Constructs an IOException with the specified detail message.
  2249. // A detail message is a String that describes this particular exception.
  2250. //   
  2251. //      Parameters:
  2252. //      s - the detail message
  2253. //   
  2254. // 
  2255. DEF_ENDLIST
  2256. DEF_ENDCOMPONENT
  2257. DEF_COMPONENTNAME
  2258. LineNumberInputStream
  2259. DEF_SUPERCLASS
  2260. FilterInputStream
  2261. DEF_SUPERCOMPONENT
  2262.  
  2263. DEF_PACKAGE
  2264. java
  2265. io
  2266. DEF_ENDLIST
  2267. DEF_SUBCOMPONENTLIST
  2268. DEF_ENDLIST
  2269. DEF_SUBCOMPONENTCLASSLIST
  2270. DEF_ENDLIST
  2271. DEF_CATEGORY
  2272.  
  2273. DEF_BITMAP
  2274.  
  2275. DEF_THUMBNAIL_UP
  2276.  
  2277. DEF_THUMBNAIL_DOWN
  2278.  
  2279. DEF_BASE
  2280. DEF_IMPORTS
  2281. java.io.LineNumberInputStream
  2282. DEF_ENDLIST
  2283. DEF_REQUIRES
  2284. DEF_ENDLIST
  2285. DEF_IMPLEMENTS
  2286. DEF_ENDLIST
  2287. DEF_DECLARATION
  2288. // An input stream that keeps track of line numbers.
  2289. DEF_ENDLIST
  2290. DEF_METHOD
  2291. public LineNumberInputStream(InputStream in)
  2292. //    Constructs a new LineNumberInputStream initialized with
  2293. // the specified input stream.
  2294. //   
  2295. //      Parameters:
  2296. //      in - the input stream
  2297. //   
  2298. // 
  2299. DEF_ENDLIST
  2300. DEF_METHOD
  2301. public int read() throws IOException
  2302. //    Reads a byte of data. The method will block if no input is 
  2303. // available.
  2304. //   
  2305. //      Returns:
  2306. //      the byte read, or -1 if the end of the
  2307. //         stream is reached.
  2308. //      Throws: IOException
  2309. //      If an I/O error has occurred.
  2310. //      Overrides:
  2311. //      read in class FilterInputStream
  2312. //   
  2313. // 
  2314. DEF_ENDLIST
  2315. DEF_METHOD
  2316. public int read(byte b[],
  2317.                 int off,
  2318.                 int len) throws IOException
  2319. //    Reads into an array of bytes.  This method will
  2320. // blocks until some input is available.
  2321. //   
  2322. //      Parameters:
  2323. //      b - the buffer into which the data is read
  2324. //      off - the start offset of the data
  2325. //      len - the maximum number of bytes read
  2326. //      Returns:
  2327. //      the actual number of bytes read, -1 is
  2328. //         returned when the end of the stream is reached.
  2329. //      Throws: IOException
  2330. //      If an I/O error has occurred.
  2331. //      Overrides:
  2332. //      read in class FilterInputStream
  2333. //   
  2334. // 
  2335. DEF_ENDLIST
  2336. DEF_METHOD
  2337. public void setLineNumber(int lineNumber)
  2338. //    Sets the current line number.
  2339. //   
  2340. //      Parameters:
  2341. //      lineNumber - the line number to be set
  2342. //   
  2343. // 
  2344. DEF_ENDLIST
  2345. DEF_METHOD
  2346. public int getLineNumber()
  2347. //    Returns the current line number.
  2348. // 
  2349. DEF_ENDLIST
  2350. DEF_METHOD
  2351. public long skip(long n) throws IOException
  2352. //    Skips n bytes of input.
  2353. //   
  2354. //      Parameters:
  2355. //      n - the number of bytes to be skipped
  2356. //      Returns:
  2357. //      the actual number of bytes skipped.
  2358. //      Throws: IOException
  2359. //      If an I/O error has occurred.
  2360. //      Overrides:
  2361. //      skip in class FilterInputStream
  2362. //   
  2363. // 
  2364. DEF_ENDLIST
  2365. DEF_METHOD
  2366. public int available() throws IOException
  2367. //    Returns the number of bytes that can be read 
  2368. // without blocking.
  2369. //   
  2370. //      Returns:
  2371. //      the number of available bytes
  2372. //      Overrides:
  2373. //      available in class FilterInputStream
  2374. //   
  2375. // 
  2376. DEF_ENDLIST
  2377. DEF_METHOD
  2378. public void mark(int readlimit)
  2379. //    Marks the current position in the input stream.  A subsequent
  2380. // call to reset() will reposition the stream at the last
  2381. // marked position so that subsequent reads will re-read
  2382. // the same bytes.  The stream promises to allow readlimit bytes
  2383. // to be read before the mark position gets invalidated.
  2384. //   
  2385. //      Parameters:
  2386. //      readlimit - the maximum limit of bytes allowed to be read
  2387. // before the mark position becomes invalid.
  2388. //      Overrides:
  2389. //      mark in class FilterInputStream
  2390. //   
  2391. // 
  2392. DEF_ENDLIST
  2393. DEF_METHOD
  2394. public void reset() throws IOException
  2395. //    Repositions the stream to the last marked position.  If the
  2396. // stream has not been marked, or if the mark has been invalidated,
  2397. // an IOException is thrown.  Stream marks are intended to be used in
  2398. // situations where you need to read ahead a little to see what's in
  2399. // the stream.  Often this is most easily done by invoking some
  2400. // general parser.  If the stream is of the type handled by the
  2401. // parser, it just chugs along happily.  If the stream is not of
  2402. // that type, the parser should toss an exception when it fails,
  2403. // which, if it happens within readlimit bytes, allows the outer
  2404. // code to reset the stream and try another parser.
  2405. //   
  2406. //      Overrides:
  2407. //      reset in class FilterInputStream
  2408. //   
  2409. // 
  2410. DEF_ENDLIST
  2411. DEF_ENDCOMPONENT
  2412. DEF_COMPONENTNAME
  2413. OutputStream
  2414. DEF_SUPERCLASS
  2415. Object
  2416. DEF_SUPERCOMPONENT
  2417.  
  2418. DEF_PACKAGE
  2419. java
  2420. io
  2421. DEF_ENDLIST
  2422. DEF_SUBCOMPONENTLIST
  2423. DEF_ENDLIST
  2424. DEF_SUBCOMPONENTCLASSLIST
  2425. DEF_ENDLIST
  2426. DEF_CATEGORY
  2427.  
  2428. DEF_BITMAP
  2429.  
  2430. DEF_THUMBNAIL_UP
  2431.  
  2432. DEF_THUMBNAIL_DOWN
  2433.  
  2434. DEF_BASE
  2435. DEF_IMPORTS
  2436. java.io.OutputStream
  2437. DEF_ENDLIST
  2438. DEF_REQUIRES
  2439. DEF_ENDLIST
  2440. DEF_IMPLEMENTS
  2441. DEF_ENDLIST
  2442. DEF_DECLARATION
  2443. // Abstract class representing an output stream of bytes.
  2444. // All OutputStreams are based on this class.
  2445. // 
  2446. //      See Also:
  2447. //      InputStream, FilterOutputStream, BufferedOutputStream, DataOutputStream, ByteArrayOutputStream
  2448. // 
  2449. DEF_ENDLIST
  2450. DEF_METHOD
  2451. public OutputStream()
  2452. //    Writes a byte. This method will block until the byte is actually
  2453. // written.
  2454. //   
  2455. //      Parameters:
  2456. //      b - the byte
  2457. //      Throws: IOException
  2458. //      If an I/O error has occurred.
  2459. //   
  2460. // 
  2461. DEF_ENDLIST
  2462. DEF_METHOD
  2463. public void write(byte b[]) throws IOException
  2464. //    Writes an array of bytes. This method will block until the bytes
  2465. // are actually written.
  2466. //   
  2467. //      Parameters:
  2468. //      b - the data to be written
  2469. //      Throws: IOException
  2470. //      If an I/O error has occurred.
  2471. //   
  2472. // 
  2473. DEF_ENDLIST
  2474. DEF_METHOD
  2475. public void write(byte b[],
  2476.                   int off,
  2477.                   int len) throws IOException
  2478. //    Writes a sub array of bytes.
  2479. //   
  2480. //      Parameters:
  2481. //      b - the data to be written
  2482. //      off - the start offset in the data
  2483. //      len - the number of bytes that are written
  2484. //      Throws: IOException
  2485. //      If an I/O error has occurred.
  2486. //   
  2487. // 
  2488. DEF_ENDLIST
  2489. DEF_METHOD
  2490. public void flush() throws IOException
  2491. //    Flushes the stream. This will write any buffered
  2492. // output bytes.
  2493. //   
  2494. //      Throws: IOException
  2495. //      If an I/O error has occurred.
  2496. //   
  2497. // 
  2498. DEF_ENDLIST
  2499. DEF_METHOD
  2500. public void close() throws IOException
  2501. //    Closes the stream. This method must be called
  2502. // to release any resources associated with the
  2503. // stream.
  2504. //   
  2505. //      Throws: IOException
  2506. //      If an I/O error has occurred.
  2507. //   
  2508. // 
  2509. DEF_ENDLIST
  2510. DEF_ENDCOMPONENT
  2511. DEF_COMPONENTNAME
  2512. PipedInputStream
  2513. DEF_SUPERCLASS
  2514. InputStream
  2515. DEF_SUPERCOMPONENT
  2516.  
  2517. DEF_PACKAGE
  2518. java
  2519. io
  2520. DEF_ENDLIST
  2521. DEF_SUBCOMPONENTLIST
  2522. DEF_ENDLIST
  2523. DEF_SUBCOMPONENTCLASSLIST
  2524. DEF_ENDLIST
  2525. DEF_CATEGORY
  2526.  
  2527. DEF_BITMAP
  2528.  
  2529. DEF_THUMBNAIL_UP
  2530.  
  2531. DEF_THUMBNAIL_DOWN
  2532.  
  2533. DEF_BASE
  2534. DEF_IMPORTS
  2535. java.io.PipedInputStream
  2536. DEF_ENDLIST
  2537. DEF_REQUIRES
  2538. DEF_ENDLIST
  2539. DEF_IMPLEMENTS
  2540. DEF_ENDLIST
  2541. DEF_DECLARATION
  2542. // PipedInputStream must be connected to a PipedOutputStream
  2543. // to be useful.  A thread reading from a PipedInputStream recieves data from
  2544. // a thread writing to the PipedOutputStream it is connected to.
  2545. // 
  2546. //      See Also:
  2547. //      PipedOutputStream
  2548. // 
  2549. DEF_ENDLIST
  2550. DEF_METHOD
  2551. public PipedInputStream(PipedOutputStream src) throws IOException
  2552. //    Creates an input file from the specified PiledOutputStream.
  2553. //   
  2554. //      Parameters:
  2555. //      src - the stream to connect to.
  2556. //   
  2557. // 
  2558. DEF_ENDLIST
  2559. DEF_METHOD
  2560. public PipedInputStream()
  2561. //    Creates an input file that isn't connected to anything (yet).
  2562. // It must be connected to a PipedOutputStream before being used.
  2563. // 
  2564. DEF_ENDLIST
  2565. DEF_METHOD
  2566. public void connect(PipedOutputStream src) throws IOException
  2567. //    Connects this input stream to a sender.
  2568. //   
  2569. //      Parameters:
  2570. //      src - The OutputStream to connect to.
  2571. //   
  2572. // 
  2573. DEF_ENDLIST
  2574. DEF_METHOD
  2575. public synchronized int read() throws IOException
  2576. //    Reads a byte of data. This method will block if no input is available.
  2577. //   
  2578. //      Returns:
  2579. //      the byte read, or -1 if the end of the stream is reached.
  2580. //      Throws: IOException
  2581. //      If the pipe is broken.
  2582. //      Overrides:
  2583. //      read in class InputStream
  2584. //   
  2585. // 
  2586. DEF_ENDLIST
  2587. DEF_METHOD
  2588. public synchronized int read(byte b[],
  2589.                              int off,
  2590.                              int len) throws IOException
  2591. //    Reads into an array of bytes.
  2592. // Blocks until some input is available.
  2593. //   
  2594. //      Parameters:
  2595. //      b - the buffer into which the data is read
  2596. //      off - the start offset of the data
  2597. //      len - the maximum number of bytes read
  2598. //      Returns:
  2599. //      the actual number of bytes read, -1 is
  2600. //         returned when the end of the stream is reached.
  2601. //      Throws: IOException
  2602. //      If an I/O error has occurred.
  2603. //      Overrides:
  2604. //      read in class InputStream
  2605. //   
  2606. // 
  2607. DEF_ENDLIST
  2608. DEF_METHOD
  2609. public void close() throws IOException
  2610. //    Closes the input stream. Must be called
  2611. // to release any resources associated with
  2612. // the stream.
  2613. //   
  2614. //      Throws: IOException
  2615. //      If an I/O error has occurred.
  2616. //      Overrides:
  2617. //      close in class InputStream
  2618. //   
  2619. // 
  2620. DEF_ENDLIST
  2621. DEF_ENDCOMPONENT
  2622. DEF_COMPONENTNAME
  2623. PipedOutputStream
  2624. DEF_SUPERCLASS
  2625. OutputStream
  2626. DEF_SUPERCOMPONENT
  2627.  
  2628. DEF_PACKAGE
  2629. java
  2630. io
  2631. DEF_ENDLIST
  2632. DEF_SUBCOMPONENTLIST
  2633. DEF_ENDLIST
  2634. DEF_SUBCOMPONENTCLASSLIST
  2635. DEF_ENDLIST
  2636. DEF_CATEGORY
  2637.  
  2638. DEF_BITMAP
  2639.  
  2640. DEF_THUMBNAIL_UP
  2641.  
  2642. DEF_THUMBNAIL_DOWN
  2643.  
  2644. DEF_BASE
  2645. DEF_IMPORTS
  2646. java.io.PipedOutputStream
  2647. DEF_ENDLIST
  2648. DEF_REQUIRES
  2649. DEF_ENDLIST
  2650. DEF_IMPLEMENTS
  2651. DEF_ENDLIST
  2652. DEF_DECLARATION
  2653. // Piped output stream, must be connected to a PipedInputStream.
  2654. // A thread reading from a PipedInputStream receives data from
  2655. // a thread writing to the PipedOutputStream it is connected to.
  2656. // 
  2657. //      See Also:
  2658. //      PipedInputStream
  2659. // 
  2660. DEF_ENDLIST
  2661. DEF_METHOD
  2662. public PipedOutputStream(PipedInputStream snk) throws IOException
  2663. //    Creates an output file connected to the specified 
  2664. // PipedInputStream.
  2665. //   
  2666. //      Parameters:
  2667. //      snk - The InputStream to connect to.
  2668. //   
  2669. // 
  2670. DEF_ENDLIST
  2671. DEF_METHOD
  2672. public PipedOutputStream()
  2673. //    Creates an output file that isn't connected to anything (yet).
  2674. // It must be connected before being used.
  2675. // 
  2676. DEF_ENDLIST
  2677. DEF_METHOD
  2678. public void connect(PipedInputStream snk) throws IOException
  2679. //    Connect this output stream to a receiver.
  2680. //   
  2681. //      Parameters:
  2682. //      snk - The InputStream to connect to.
  2683. //   
  2684. // 
  2685. DEF_ENDLIST
  2686. DEF_METHOD
  2687. public void write(int b) throws IOException
  2688. //    Write a byte. This method will block until the byte is actually
  2689. // written.
  2690. //   
  2691. //      Parameters:
  2692. //      b - the byte to be written
  2693. //      Throws: IOException
  2694. //      If an I/O error has occurred.
  2695. //      Overrides:
  2696. //      write in class OutputStream
  2697. //   
  2698. // 
  2699. DEF_ENDLIST
  2700. DEF_METHOD
  2701. public void write(byte b[],
  2702.                   int off,
  2703.                   int len) throws IOException
  2704. //    Writes a sub array of bytes.
  2705. //   
  2706. //      Parameters:
  2707. //      b - the data to be written
  2708. //      off - the start offset in the data
  2709. //      len - the number of bytes that are written
  2710. //      Throws: IOException
  2711. //      If an I/O error has occurred.
  2712. //      Overrides:
  2713. //      write in class OutputStream
  2714. //   
  2715. // 
  2716. DEF_ENDLIST
  2717. DEF_METHOD
  2718. public void close() throws IOException
  2719. //    Closes the stream. This method must be called
  2720. // to release any resources associated with the
  2721. // stream.
  2722. //   
  2723. //      Throws: IOException
  2724. //      If an I/O error has occurred.
  2725. //      Overrides:
  2726. //      close in class OutputStream
  2727. //   
  2728. // 
  2729. DEF_ENDLIST
  2730. DEF_ENDCOMPONENT
  2731. DEF_COMPONENTNAME
  2732. PrintStream
  2733. DEF_SUPERCLASS
  2734. FilterOutputStream
  2735. DEF_SUPERCOMPONENT
  2736.  
  2737. DEF_PACKAGE
  2738. java
  2739. io
  2740. DEF_ENDLIST
  2741. DEF_SUBCOMPONENTLIST
  2742. DEF_ENDLIST
  2743. DEF_SUBCOMPONENTCLASSLIST
  2744. DEF_ENDLIST
  2745. DEF_CATEGORY
  2746.  
  2747. DEF_BITMAP
  2748.  
  2749. DEF_THUMBNAIL_UP
  2750.  
  2751. DEF_THUMBNAIL_DOWN
  2752.  
  2753. DEF_BASE
  2754. DEF_IMPORTS
  2755. java.io.PrintStream
  2756. DEF_ENDLIST
  2757. DEF_REQUIRES
  2758. DEF_ENDLIST
  2759. DEF_IMPLEMENTS
  2760. DEF_ENDLIST
  2761. DEF_DECLARATION
  2762. // This class implements an output stream that has
  2763. // additional methods for printing. You can specify
  2764. // that the stream should be flushed every time a
  2765. // newline character is written.
  2766. // The top byte of 16 bit characters is discarded.
  2767. // Example:
  2768. // 
  2769. //     System.out.println("Hello world!");
  2770. //     System.out.print("x = ");
  2771. //     System.out.println(x);
  2772. //     System.out.println("y = " + y);
  2773. // 
  2774. DEF_ENDLIST
  2775. DEF_METHOD
  2776. public PrintStream(OutputStream out)
  2777. //    Creates a new PrintStream.
  2778. //   
  2779. //      Parameters:
  2780. //      out - the output stream
  2781. //   
  2782. // 
  2783. DEF_ENDLIST
  2784. DEF_METHOD
  2785. public PrintStream(OutputStream out,
  2786.                    boolean autoflush)
  2787. //    Creates a new PrintStream, with auto flushing.
  2788. //   
  2789. //      Parameters:
  2790. //      out - the output stream
  2791. //      autoflush - if true the stream automatically flushes
  2792. //         its output when a newline character is printed
  2793. //   
  2794. // 
  2795. DEF_ENDLIST
  2796. DEF_METHOD
  2797. public void write(int b)
  2798. //    Writes a byte. This method will block until the byte is actually
  2799. // written.
  2800. //   
  2801. //      Parameters:
  2802. //      b - the byte
  2803. //      Throws: IOException
  2804. //      If an I/O error has occurred.
  2805. //      Overrides:
  2806. //      write in class FilterOutputStream
  2807. //   
  2808. // 
  2809. DEF_ENDLIST
  2810. DEF_METHOD
  2811. public void write(byte b[],
  2812.                   int off,
  2813.                   int len)
  2814. //    Writes a sub array of bytes.
  2815. //   
  2816. //      Parameters:
  2817. //      b - the data to be written
  2818. //      off - the start offset in the data
  2819. //      len - the number of bytes that are written
  2820. //      Throws: IOException
  2821. //      If an I/O error has occurred.
  2822. //      Overrides:
  2823. //      write in class FilterOutputStream
  2824. //   
  2825. // 
  2826. DEF_ENDLIST
  2827. DEF_METHOD
  2828. public void flush()
  2829. //    Flushes the stream. This will write any buffered
  2830. // output bytes.
  2831. //   
  2832. //      Overrides:
  2833. //      flush in class FilterOutputStream
  2834. //   
  2835. // 
  2836. DEF_ENDLIST
  2837. DEF_METHOD
  2838. public void close()
  2839. //    Closes the stream.
  2840. //   
  2841. //      Overrides:
  2842. //      close in class FilterOutputStream
  2843. //   
  2844. // 
  2845. DEF_ENDLIST
  2846. DEF_METHOD
  2847. public boolean checkError()
  2848. //    Flushes the print stream and returns whether or not there was
  2849. // an error on the output stream.  Errors are cumulative; once the
  2850. // print stream encounters an error this routine will continue to
  2851. // return true on all successive calls.
  2852. //   
  2853. //      Returns:
  2854. //      true if the print stream has ever encountered an error
  2855. // on the output stream.
  2856. //   
  2857. // 
  2858. DEF_ENDLIST
  2859. DEF_METHOD
  2860. public void print(Object obj)
  2861. //    Prints an object.
  2862. //   
  2863. //      Parameters:
  2864. //      obj - the object to be printed
  2865. //   
  2866. // 
  2867. DEF_ENDLIST
  2868. DEF_METHOD
  2869. public synchronized void print(String s)
  2870. //    Prints a String.
  2871. //   
  2872. //      Parameters:
  2873. //      s - the String to be printed
  2874. //   
  2875. // 
  2876. DEF_ENDLIST
  2877. DEF_METHOD
  2878. public synchronized void print(char s[])
  2879. //    Prints an array of characters.
  2880. //   
  2881. //      Parameters:
  2882. //      s - the array of chars to be printed
  2883. //   
  2884. // 
  2885. DEF_ENDLIST
  2886. DEF_METHOD
  2887. public void print(char c)
  2888. //    Prints an character.
  2889. //   
  2890. //      Parameters:
  2891. //      c - the character to be printed
  2892. //   
  2893. // 
  2894. DEF_ENDLIST
  2895. DEF_METHOD
  2896. public void print(int i)
  2897. //    Prints an integer.
  2898. //   
  2899. //      Parameters:
  2900. //      i - the integer to be printed
  2901. //   
  2902. // 
  2903. DEF_ENDLIST
  2904. DEF_METHOD
  2905. public void print(long l)
  2906. //    Prints a long.
  2907. //   
  2908. //      Parameters:
  2909. //      l - the long to be printed.
  2910. //   
  2911. // 
  2912. DEF_ENDLIST
  2913. DEF_METHOD
  2914. public void print(float f)
  2915. //    Prints a float.
  2916. //   
  2917. //      Parameters:
  2918. //      f - the float to be printed
  2919. //   
  2920. // 
  2921. DEF_ENDLIST
  2922. DEF_METHOD
  2923. public void print(double d)
  2924. //    Prints a double.
  2925. //   
  2926. //      Parameters:
  2927. //      d - the double to be printed
  2928. //   
  2929. // 
  2930. DEF_ENDLIST
  2931. DEF_METHOD
  2932. public void print(boolean b)
  2933. //    Prints a boolean.
  2934. //   
  2935. //      Parameters:
  2936. //      b - the boolean to be printed
  2937. //   
  2938. // 
  2939. DEF_ENDLIST
  2940. DEF_METHOD
  2941. public void println()
  2942. //    Prints a newline.
  2943. // 
  2944. DEF_ENDLIST
  2945. DEF_METHOD
  2946. public synchronized void println(Object obj)
  2947. //    Prints an object followed by a newline.
  2948. //   
  2949. //      Parameters:
  2950. //      obj - the object to be printed
  2951. //   
  2952. // 
  2953. DEF_ENDLIST
  2954. DEF_METHOD
  2955. public synchronized void println(String s)
  2956. //    Prints a string followed by a newline.
  2957. //   
  2958. //      Parameters:
  2959. //      s - the String to be printed
  2960. //   
  2961. // 
  2962. DEF_ENDLIST
  2963. DEF_METHOD
  2964. public synchronized void println(char s[])
  2965. //    Prints an array of characters followed by a newline.
  2966. //   
  2967. //      Parameters:
  2968. //      s - the array of characters to be printed
  2969. //   
  2970. // 
  2971. DEF_ENDLIST
  2972. DEF_METHOD
  2973. public synchronized void println(char c)
  2974. //    Prints a character followed by a newline.
  2975. //   
  2976. //      Parameters:
  2977. //      c - the character to be printed
  2978. //   
  2979. // 
  2980. DEF_ENDLIST
  2981. DEF_METHOD
  2982. public synchronized void println(int i)
  2983. //    Prints an integer followed by a newline.
  2984. //   
  2985. //      Parameters:
  2986. //      i - the integer to be printed
  2987. //   
  2988. // 
  2989. DEF_ENDLIST
  2990. DEF_METHOD
  2991. public synchronized void println(long l)
  2992. //    Prints a long followed by a newline.
  2993. //   
  2994. //      Parameters:
  2995. //      l - the long to be printed
  2996. //   
  2997. // 
  2998. DEF_ENDLIST
  2999. DEF_METHOD
  3000. public synchronized void println(float f)
  3001. //    Prints a float followed by a newline.
  3002. //   
  3003. //      Parameters:
  3004. //      f - the float to be printed
  3005. //   
  3006. // 
  3007. DEF_ENDLIST
  3008. DEF_METHOD
  3009. public synchronized void println(double d)
  3010. //    Prints a double followed by a newline.
  3011. //   
  3012. //      Parameters:
  3013. //      d - the double to be printed
  3014. //   
  3015. // 
  3016. DEF_ENDLIST
  3017. DEF_METHOD
  3018. public synchronized void println(boolean b)
  3019. //    Prints a boolean followed by a newline.
  3020. //   
  3021. //      Parameters:
  3022. //      b - the boolean to be printed
  3023. //   
  3024. // 
  3025. DEF_ENDLIST
  3026. DEF_ENDCOMPONENT
  3027. DEF_COMPONENTNAME
  3028. PushbackInputStream
  3029. DEF_SUPERCLASS
  3030. FilterInputStream
  3031. DEF_SUPERCOMPONENT
  3032.  
  3033. DEF_PACKAGE
  3034. java
  3035. io
  3036. DEF_ENDLIST
  3037. DEF_SUBCOMPONENTLIST
  3038. DEF_ENDLIST
  3039. DEF_SUBCOMPONENTCLASSLIST
  3040. DEF_ENDLIST
  3041. DEF_CATEGORY
  3042.  
  3043. DEF_BITMAP
  3044.  
  3045. DEF_THUMBNAIL_UP
  3046.  
  3047. DEF_THUMBNAIL_DOWN
  3048.  
  3049. DEF_BASE
  3050. DEF_IMPORTS
  3051. java.io.PushbackInputStream
  3052. DEF_ENDLIST
  3053. DEF_REQUIRES
  3054. DEF_ENDLIST
  3055. DEF_IMPLEMENTS
  3056. DEF_ENDLIST
  3057. DEF_DECLARATION
  3058. // An input stream that has a 1 byte push back buffer.
  3059. DEF_ENDLIST
  3060. DEF_METHOD
  3061. public PushbackInputStream(InputStream in)
  3062. //    Creates a PushbackInputStream.
  3063. //   
  3064. //      Parameters:
  3065. //      in - the input stream
  3066. //   
  3067. // 
  3068. DEF_ENDLIST
  3069. DEF_METHOD
  3070. public int read() throws IOException
  3071. //    Reads a byte of data. This method will block if no input is 
  3072. // available.
  3073. //   
  3074. //      Returns:
  3075. //      the byte read, or -1 if the end of the
  3076. //         stream is reached.
  3077. //      Throws: IOException
  3078. //      If an I/O error has occurred.
  3079. //      Overrides:
  3080. //      read in class FilterInputStream
  3081. //   
  3082. // 
  3083. DEF_ENDLIST
  3084. DEF_METHOD
  3085. public int read(byte bytes[],
  3086.                 int offset,
  3087.                 int length) throws IOException
  3088. //    Reads into an array of bytes.  This method 
  3089. // blocks until some input is available.
  3090. //   
  3091. //      Parameters:
  3092. //      b - the buffer into which the data is read
  3093. //      off - the start offset of the data
  3094. //      len - the maximum number of bytes read
  3095. //      Returns:
  3096. //      the actual number of bytes read, -1 is
  3097. //         returned when the end of the stream is reached.
  3098. //      Throws: IOException
  3099. //      If an I/O error has occurred.
  3100. //      Overrides:
  3101. //      read in class FilterInputStream
  3102. //   
  3103. // 
  3104. DEF_ENDLIST
  3105. DEF_METHOD
  3106. public void unread(int ch) throws IOException
  3107. //    Pushes back a character.
  3108. //   
  3109. //      Parameters:
  3110. //      ch - the character to push back.
  3111. //      Throws: IOException
  3112. //      If an attempt to push back more than one 
  3113. // character is made.
  3114. //   
  3115. // 
  3116. DEF_ENDLIST
  3117. DEF_METHOD
  3118. public int available() throws IOException
  3119. //    Returns the number of bytes that can be read.
  3120. // without blocking.
  3121. //   
  3122. //      Overrides:
  3123. //      available in class FilterInputStream
  3124. //   
  3125. // 
  3126. DEF_ENDLIST
  3127. DEF_METHOD
  3128. public boolean markSupported()
  3129. //    Returns true if this stream type supports mark/reset.
  3130. //   
  3131. //      Overrides:
  3132. //      markSupported in class FilterInputStream
  3133. //   
  3134. // 
  3135. DEF_ENDLIST
  3136. DEF_ENDCOMPONENT
  3137. DEF_COMPONENTNAME
  3138. RandomAccessFile
  3139. DEF_SUPERCLASS
  3140. Object
  3141. DEF_SUPERCOMPONENT
  3142.  
  3143. DEF_PACKAGE
  3144. java
  3145. io
  3146. DEF_ENDLIST
  3147. DEF_SUBCOMPONENTLIST
  3148. DEF_ENDLIST
  3149. DEF_SUBCOMPONENTCLASSLIST
  3150. DEF_ENDLIST
  3151. DEF_CATEGORY
  3152.  
  3153. DEF_BITMAP
  3154.  
  3155. DEF_THUMBNAIL_UP
  3156.  
  3157. DEF_THUMBNAIL_DOWN
  3158.  
  3159. DEF_BASE
  3160. DEF_IMPORTS
  3161. java.io.RandomAccessFile
  3162. DEF_ENDLIST
  3163. DEF_REQUIRES
  3164. DEF_ENDLIST
  3165. DEF_IMPLEMENTS
  3166. DataOutput
  3167. DataInput
  3168. DEF_ENDLIST
  3169. DEF_DECLARATION
  3170. // Random access files can be constructed from file descriptors, file 
  3171. // names, or file objects.  This class provides a sense of security
  3172. // by offering methods that allow specified mode accesses of 
  3173. // read-only or read-write to files.
  3174. DEF_ENDLIST
  3175. DEF_METHOD
  3176. public RandomAccessFile(String name,
  3177.                         String mode) throws IOException
  3178. //    Creates a RandomAccessFile with the specified system dependent 
  3179. // file name and the specified mode.
  3180. // Mode "r" is for read-only and mode "rw" is for read+write.
  3181. //   
  3182. //      Parameters:
  3183. //      name - the system dependent file name
  3184. //      mode - the access mode
  3185. //      Throws: IOException
  3186. //      If an I/O error has occurred.
  3187. //   
  3188. // 
  3189. DEF_ENDLIST
  3190. DEF_METHOD
  3191. public RandomAccessFile(File file,
  3192.                         String mode) throws IOException
  3193. //    Creates a RandomAccessFile from a specified File object
  3194. // and mode ("r" or "rw").
  3195. //   
  3196. //      Parameters:
  3197. //      file - the file object
  3198. //      mode - the access mode
  3199. //   
  3200. // 
  3201. DEF_ENDLIST
  3202. DEF_METHOD
  3203. public final FileDescriptor getFD() throws IOException
  3204. //    Returns the opaque file descriptor object.
  3205. //   
  3206. //      Returns:
  3207. //      the file descriptor.
  3208. //   
  3209. // 
  3210. DEF_ENDLIST
  3211. DEF_METHOD
  3212. public int read() throws IOException
  3213. //    Reads a byte of data. This method will block if no input is
  3214. // available.
  3215. //   
  3216. //      Returns:
  3217. //      the byte read, or -1 if the end of the
  3218. //          stream is reached.
  3219. //      Throws: IOException
  3220. //      If an I/O error has occurred.
  3221. //   
  3222. // 
  3223. DEF_ENDLIST
  3224. DEF_METHOD
  3225. public int read(byte b[],
  3226.                 int off,
  3227.                 int len) throws IOException
  3228. //    Reads a sub array as a sequence of bytes.
  3229. //   
  3230. //      Parameters:
  3231. //      b - the data to be written
  3232. //      off - the start offset in the data
  3233. //      len - the number of bytes that are written
  3234. //      Throws: IOException
  3235. //      If an I/O error has occurred.
  3236. //   
  3237. // 
  3238. DEF_ENDLIST
  3239. DEF_METHOD
  3240. public int read(byte b[]) throws IOException
  3241. //    Reads data into an array of bytes.  This method blocks
  3242. // until some input is available.
  3243. //   
  3244. //      Returns:
  3245. //      the actual number of bytes read, -1 is
  3246. //          returned when the end of the stream is reached.
  3247. //      Throws: IOException
  3248. //      If an I/O error has occurred.
  3249. //   
  3250. // 
  3251. DEF_ENDLIST
  3252. DEF_METHOD
  3253. public final void readFully(byte b[]) throws IOException
  3254. //    Reads bytes, blocking until all bytes are read.
  3255. //   
  3256. //      Parameters:
  3257. //      b - the buffer into which the data is read
  3258. //      Returns:
  3259. //      the actual number of bytes read, -1 is
  3260. //         returned when the end of the stream is reached.
  3261. //      Throws: IOException
  3262. //      If an I/O error has occurred.
  3263. //   
  3264. // 
  3265. DEF_ENDLIST
  3266. DEF_METHOD
  3267. public final void readFully(byte b[],
  3268.                             int off,
  3269.                             int len) throws IOException
  3270. //    Reads bytes, blocking until all bytes are read.
  3271. //   
  3272. //      Parameters:
  3273. //      b - the buffer into which the data is read
  3274. //      off - the start offset of the data
  3275. //      len - the maximum number of bytes read
  3276. //      Returns:
  3277. //      the actual number of bytes read, -1 is
  3278. //         returned when the end of the stream is reached.
  3279. //      Throws: IOException
  3280. //      If an I/O error has occurred.
  3281. //   
  3282. // 
  3283. DEF_ENDLIST
  3284. DEF_METHOD
  3285. public int skipBytes(int n) throws IOException
  3286. //    Writes a byte of data. This method will block until the byte
  3287. // is actually written.
  3288. //   
  3289. //      Parameters:
  3290. //      b - the byte to be written
  3291. //      Throws: IOException
  3292. //      If an I/O error has occurred.
  3293. //   
  3294. // 
  3295. DEF_ENDLIST
  3296. DEF_METHOD
  3297. public void write(byte b[]) throws IOException
  3298. //    Writes an array of bytes. Will block until the bytes
  3299. // are actually written.
  3300. //   
  3301. //      Parameters:
  3302. //      b - the data to be written
  3303. //      Throws: IOException
  3304. //      If an I/O error has occurred.
  3305. //   
  3306. // 
  3307. DEF_ENDLIST
  3308. DEF_METHOD
  3309. public void write(byte b[],
  3310.                   int off,
  3311.                   int len) throws IOException
  3312. //    Wrotes a sub array of bytes.
  3313. //   
  3314. //      Parameters:
  3315. //      b - the data to be written
  3316. //      off - the start offset in the data
  3317. //      len - the number of bytes that are written
  3318. //      Throws: IOException
  3319. //      If an I/O error has occurred.
  3320. //   
  3321. // 
  3322. DEF_ENDLIST
  3323. DEF_METHOD
  3324. public long getFilePointer() throws IOException
  3325. //    Returns the current location of the file pointer.
  3326. // 
  3327. DEF_ENDLIST
  3328. DEF_METHOD
  3329. public void seek(long pos) throws IOException
  3330. //    Sets the file pointer to the specified absolute position.
  3331. //   
  3332. //      Parameters:
  3333. //      pos - the absolute position
  3334. //   
  3335. // 
  3336. DEF_ENDLIST
  3337. DEF_METHOD
  3338. public long length() throws IOException
  3339. //    Returns the length of the file.
  3340. // 
  3341. DEF_ENDLIST
  3342. DEF_METHOD
  3343. public void close() throws IOException
  3344. //    Closes the file.
  3345. //   
  3346. //      Throws: IOException
  3347. //      If an I/O error has occurred.
  3348. //   
  3349. // 
  3350. DEF_ENDLIST
  3351. DEF_METHOD
  3352. public final boolean readBoolean() throws IOException
  3353. //    Reads a boolean.
  3354. // 
  3355. DEF_ENDLIST
  3356. DEF_METHOD
  3357. public final byte readByte() throws IOException
  3358. //    Reads a byte.
  3359. // 
  3360. DEF_ENDLIST
  3361. DEF_METHOD
  3362. public final int readUnsignedByte() throws IOException
  3363. //    Reads an unsigned 8 bit byte.
  3364. //   
  3365. //      Returns:
  3366. //      the 8 bit byte read.
  3367. //   
  3368. // 
  3369. DEF_ENDLIST
  3370. DEF_METHOD
  3371. public final short readShort() throws IOException
  3372. //    Reads 16 bit short.
  3373. //   
  3374. //      Returns:
  3375. //      the read 16 bit short.
  3376. //   
  3377. // 
  3378. DEF_ENDLIST
  3379. DEF_METHOD
  3380. public final int readUnsignedShort() throws IOException
  3381. //    Reads 16 bit short.
  3382. //   
  3383. //      Returns:
  3384. //      the read 16 bit short.
  3385. //   
  3386. // 
  3387. DEF_ENDLIST
  3388. DEF_METHOD
  3389. public final char readChar() throws IOException
  3390. //    Reads a 16 bit char.
  3391. //   
  3392. //      Returns:
  3393. //      the read 16 bit char.
  3394. //   
  3395. // 
  3396. DEF_ENDLIST
  3397. DEF_METHOD
  3398. public final int readInt() throws IOException
  3399. //    Reads a 32 bit int.
  3400. //   
  3401. //      Returns:
  3402. //      the read 32 bit integer.
  3403. //   
  3404. // 
  3405. DEF_ENDLIST
  3406. DEF_METHOD
  3407. public final long readLong() throws IOException
  3408. //    Reads a 64 bit long.
  3409. //   
  3410. //      Returns:
  3411. //      the read 64 bit long.
  3412. //   
  3413. // 
  3414. DEF_ENDLIST
  3415. DEF_METHOD
  3416. public final float readFloat() throws IOException
  3417. //    Reads a 32 bit float.
  3418. //   
  3419. //      Returns:
  3420. //      the read 32 bit float.
  3421. //   
  3422. // 
  3423. DEF_ENDLIST
  3424. DEF_METHOD
  3425. public final double readDouble() throws IOException
  3426. //    Reads a 64 bit double.
  3427. //   
  3428. //      Returns:
  3429. //      the read 64 bit double.
  3430. //   
  3431. // 
  3432. DEF_ENDLIST
  3433. DEF_METHOD
  3434. public final String readLine() throws IOException
  3435. //    Reads a line terminated by a '\n' or EOF.
  3436. // 
  3437. DEF_ENDLIST
  3438. DEF_METHOD
  3439. public final String readUTF() throws IOException
  3440. //    Reads a UTF formatted String.
  3441. // 
  3442. DEF_ENDLIST
  3443. DEF_METHOD
  3444. public final void writeBoolean(boolean v) throws IOException
  3445. //    Writes a boolean.
  3446. //   
  3447. //      Parameters:
  3448. //      v - the boolean value
  3449. //   
  3450. // 
  3451. DEF_ENDLIST
  3452. DEF_METHOD
  3453. public final void writeByte(int v) throws IOException
  3454. //    Writes a byte.
  3455. //   
  3456. //      Parameters:
  3457. //      v - the byte
  3458. //   
  3459. // 
  3460. DEF_ENDLIST
  3461. DEF_METHOD
  3462. public final void writeShort(int v) throws IOException
  3463. //    Writes a short.
  3464. //   
  3465. //      Parameters:
  3466. //      v - the short
  3467. //   
  3468. // 
  3469. DEF_ENDLIST
  3470. DEF_METHOD
  3471. public final void writeChar(int v) throws IOException
  3472. //    Writes a character.
  3473. //   
  3474. //      Parameters:
  3475. //      v - the char
  3476. //   
  3477. // 
  3478. DEF_ENDLIST
  3479. DEF_METHOD
  3480. public final void writeInt(int v) throws IOException
  3481. //    Writes an integer.
  3482. //   
  3483. //      Parameters:
  3484. //      v - the integer
  3485. //   
  3486. // 
  3487. DEF_ENDLIST
  3488. DEF_METHOD
  3489. public final void writeLong(long v) throws IOException
  3490. //    Writes a long.
  3491. //   
  3492. //      Parameters:
  3493. //      v - the long
  3494. //   
  3495. // 
  3496. DEF_ENDLIST
  3497. DEF_METHOD
  3498. public final void writeFloat(float v) throws IOException
  3499. //    Writes a String as a sequence of bytes.
  3500. //   
  3501. //      Parameters:
  3502. //      s - the String
  3503. //   
  3504. // 
  3505. DEF_ENDLIST
  3506. DEF_METHOD
  3507. public final void writeChars(String s) throws IOException
  3508. //    Writes a String as a sequence of chars.
  3509. //   
  3510. //      Parameters:
  3511. //      s - the String
  3512. //   
  3513. // 
  3514. DEF_ENDLIST
  3515. DEF_METHOD
  3516. public final void writeUTF(String str) throws IOException
  3517. //    Writes a String in UTF format.
  3518. //   
  3519. //      Parameters:
  3520. //      str - the String
  3521. //   
  3522. // 
  3523. DEF_ENDLIST
  3524. DEF_ENDCOMPONENT
  3525. DEF_COMPONENTNAME
  3526. Integer
  3527. DEF_SUPERCLASS
  3528. Number
  3529. DEF_SUPERCOMPONENT
  3530.  
  3531. DEF_PACKAGE
  3532. java
  3533. lang
  3534. DEF_ENDLIST
  3535. DEF_SUBCOMPONENTLIST
  3536. DEF_ENDLIST
  3537. DEF_SUBCOMPONENTCLASSLIST
  3538. DEF_ENDLIST
  3539. DEF_CATEGORY
  3540.  
  3541. DEF_BITMAP
  3542.  
  3543. DEF_THUMBNAIL_UP
  3544.  
  3545. DEF_THUMBNAIL_DOWN
  3546.  
  3547. DEF_BASE
  3548. DEF_IMPORTS
  3549. DEF_ENDLIST
  3550. DEF_REQUIRES
  3551. DEF_ENDLIST
  3552. DEF_IMPLEMENTS
  3553. DEF_ENDLIST
  3554. DEF_DECLARATION
  3555. // The Integer class is a wrapper for integer values.  In Java, integers are not 
  3556. // objects and most of the Java utility classes require the use of objects.  Thus, 
  3557. // if you needed to store an integer in a hashtable, you would have to "wrap" an 
  3558. // Integer instance around it.
  3559. DEF_ENDLIST
  3560. DEF_METHOD
  3561. public Integer(int value)
  3562. //    Constructs an Integer object initialized to the specified int value.
  3563. //   
  3564. //      Parameters:
  3565. //      value - the initial value of the Integer
  3566. //   
  3567. // 
  3568. DEF_ENDLIST
  3569. DEF_METHOD
  3570. public Integer(String s) throws NumberFormatException
  3571. //    Constructs an Integer object initialized to the value specified by the
  3572. // String parameter.  The radix is assumed to be 10.
  3573. //   
  3574. //      Parameters:
  3575. //      s - the String to be converted to an Integer
  3576. //      Throws: NumberFormatException
  3577. //      If the String does not contain a parsable 
  3578. //                                        integer.
  3579. //   
  3580. // 
  3581. DEF_ENDLIST
  3582. DEF_METHOD
  3583. public static String toString(int i,
  3584.                               int radix)
  3585. //    Returns a new String object representing the specified integer in
  3586. // the specified radix.
  3587. //   
  3588. //      Parameters:
  3589. //      i - the integer to be converted
  3590. //      radix - the radix
  3591. //      See Also:
  3592. //      MIN_RADIX, MAX_RADIX
  3593. //   
  3594. // 
  3595. DEF_ENDLIST
  3596. DEF_METHOD
  3597. public static String toString(int i)
  3598. //    Returns a new String object representing the specified integer. The radix
  3599. // is assumed to be 10.
  3600. //   
  3601. //      Parameters:
  3602. //      i - the integer to be converted
  3603. //   
  3604. // 
  3605. DEF_ENDLIST
  3606. DEF_METHOD
  3607. public static int parseInt(String s,
  3608.                            int radix) throws NumberFormatException
  3609. //    Assuming the specified String represents an integer, returns that integer's
  3610. // value. Throws an exception if the String cannot be parsed as an int.
  3611. //   
  3612. //      Parameters:
  3613. //      s - the String containing the integer
  3614. //      radix - the radix to be used
  3615. //      Throws: NumberFormatException
  3616. //      If the String does not contain a parsable 
  3617. //                                        integer.
  3618. //   
  3619. // 
  3620. DEF_ENDLIST
  3621. DEF_METHOD
  3622. public static int parseInt(String s) throws NumberFormatException
  3623. //    Assuming the specified String represents an integer, returns that integer's
  3624. // value. Throws an exception if the String cannot be parsed as an int.
  3625. // The radix is assumed to be 10.
  3626. //   
  3627. //      Parameters:
  3628. //      s - the String containing the integer
  3629. //      Throws: NumberFormatException
  3630. //      If the string does not contain a parsable 
  3631. //                                        integer.
  3632. //   
  3633. // 
  3634. DEF_ENDLIST
  3635. DEF_METHOD
  3636. public static Integer valueOf(String s,
  3637.                               int radix) throws NumberFormatException
  3638. //    Assuming the specified String represents an integer, returns a new Integer
  3639. // object initialized to that value. Throws an exception if the String cannot be
  3640. // parsed as an int.
  3641. //   
  3642. //      Parameters:
  3643. //      s - the String containing the integer
  3644. //      radix - the radix to be used
  3645. //      Throws: NumberFormatException
  3646. //      If the String does not contain a parsable 
  3647. //                                        integer.
  3648. //   
  3649. // 
  3650. DEF_ENDLIST
  3651. DEF_METHOD
  3652. public static Integer valueOf(String s) throws NumberFormatException
  3653. //    Assuming the specified String represents an integer, returns a new Integer
  3654. // object initialized to that value. Throws an exception if the String cannot be
  3655. // parsed as an int. The radix is assumed to be 10.
  3656. //   
  3657. //      Parameters:
  3658. //      s - the String containing the integer
  3659. //      Throws: NumberFormatException
  3660. //      If the String does not contain a parsable 
  3661. //                                        integer.
  3662. //   
  3663. // 
  3664. DEF_ENDLIST
  3665. DEF_METHOD
  3666. public int intValue()
  3667. //    Returns the value of this Integer as an int.
  3668. //   
  3669. //      Overrides:
  3670. //      intValue in class Number
  3671. //   
  3672. // 
  3673. DEF_ENDLIST
  3674. DEF_METHOD
  3675. public long longValue()
  3676. //    Returns the value of this Integer as a long.
  3677. //   
  3678. //      Overrides:
  3679. //      longValue in class Number
  3680. //   
  3681. // 
  3682. DEF_ENDLIST
  3683. DEF_METHOD
  3684. public float floatValue()
  3685. //    Returns the value of this Integer as a float.
  3686. //   
  3687. //      Overrides:
  3688. //      floatValue in class Number
  3689. //   
  3690. // 
  3691. DEF_ENDLIST
  3692. DEF_METHOD
  3693. public double doubleValue()
  3694. //    Returns the value of this Integer as a double.
  3695. //   
  3696. //      Overrides:
  3697. //      doubleValue in class Number
  3698. //   
  3699. // 
  3700. DEF_ENDLIST
  3701. DEF_METHOD
  3702. public String toString()
  3703. //    Returns a String object representing this Integer's value.
  3704. //   
  3705. //      Overrides:
  3706. //      toString in class Object
  3707. //   
  3708. // 
  3709. DEF_ENDLIST
  3710. DEF_METHOD
  3711. public int hashCode()
  3712. //    Returns a hashcode for this Integer.
  3713. //   
  3714. //      Overrides:
  3715. //      hashCode in class Object
  3716. //   
  3717. // 
  3718. DEF_ENDLIST
  3719. DEF_METHOD
  3720. public boolean equals(Object obj)
  3721. //    Compares this object to the specified object.
  3722. //   
  3723. //      Parameters:
  3724. //      obj - the object to compare with
  3725. //      Returns:
  3726. //      true if the objects are the same; false otherwise.
  3727. //      Overrides:
  3728. //      equals in class Object
  3729. //   
  3730. // 
  3731. DEF_ENDLIST
  3732. DEF_METHOD
  3733. public static Integer getInteger(String nm)
  3734. //    Gets an Integer property. If the property does not
  3735. // exist, it will return 0.
  3736. //   
  3737. //      Parameters:
  3738. //      nm - the property name
  3739. //   
  3740. // 
  3741. DEF_ENDLIST
  3742. DEF_METHOD
  3743. public static Integer getInteger(String nm,
  3744.                                  int val)
  3745. //    Gets an Integer property. If the property does not
  3746. // exist, it will return val. Deals with Hexadecimal
  3747. // and octal numbers.
  3748. //   
  3749. //      Parameters:
  3750. //      nm - the String name
  3751. //      val - the Integer value
  3752. //   
  3753. // 
  3754. DEF_ENDLIST
  3755. DEF_METHOD
  3756. public static Integer getInteger(String nm,
  3757.                                  Integer val)
  3758. //    Gets an Integer property. If the property does not
  3759. // exist, it will return val. Deals with Hexadecimal
  3760. // and octal numbers.
  3761. //   
  3762. //      Parameters:
  3763. //      nm - the property name
  3764. //      val - the integer value
  3765. //   
  3766. // 
  3767. DEF_ENDLIST
  3768. DEF_ENDCOMPONENT
  3769. DEF_COMPONENTNAME
  3770. InternalError
  3771. DEF_SUPERCLASS
  3772. VirtualMachineError
  3773. DEF_SUPERCOMPONENT
  3774.  
  3775. DEF_PACKAGE
  3776. java
  3777. lang
  3778. DEF_ENDLIST
  3779. DEF_SUBCOMPONENTLIST
  3780. DEF_ENDLIST
  3781. DEF_SUBCOMPONENTCLASSLIST
  3782. DEF_ENDLIST
  3783. DEF_CATEGORY
  3784.  
  3785. DEF_BITMAP
  3786.  
  3787. DEF_THUMBNAIL_UP
  3788.  
  3789. DEF_THUMBNAIL_DOWN
  3790.  
  3791. DEF_BASE
  3792. DEF_IMPORTS
  3793. DEF_ENDLIST
  3794. DEF_REQUIRES
  3795. DEF_ENDLIST
  3796. DEF_IMPLEMENTS
  3797. DEF_ENDLIST
  3798. DEF_DECLARATION
  3799. // Signals that an internal error has occurred.
  3800. DEF_ENDLIST
  3801. DEF_METHOD
  3802. public InternalError()
  3803. //    Constructs an InternalError with no detail message.
  3804. // A detail message is a String that describes this particular exception.
  3805. // 
  3806. DEF_ENDLIST
  3807. DEF_METHOD
  3808. public InternalError(String s)
  3809. //    Constructs an InternalError with the specified detail message.
  3810. // A detail message is a String that describes this particular exception.
  3811. //   
  3812. //      Parameters:
  3813. //      s - the detail message
  3814. //   
  3815. // 
  3816. DEF_ENDLIST
  3817. DEF_ENDCOMPONENT
  3818. DEF_COMPONENTNAME
  3819. InterruptedException
  3820. DEF_SUPERCLASS
  3821. Exception
  3822. DEF_SUPERCOMPONENT
  3823.  
  3824. DEF_PACKAGE
  3825. java
  3826. lang
  3827. DEF_ENDLIST
  3828. DEF_SUBCOMPONENTLIST
  3829. DEF_ENDLIST
  3830. DEF_SUBCOMPONENTCLASSLIST
  3831. DEF_ENDLIST
  3832. DEF_CATEGORY
  3833.  
  3834. DEF_BITMAP
  3835.  
  3836. DEF_THUMBNAIL_UP
  3837.  
  3838. DEF_THUMBNAIL_DOWN
  3839.  
  3840. DEF_BASE
  3841. DEF_IMPORTS
  3842. DEF_ENDLIST
  3843. DEF_REQUIRES
  3844. DEF_ENDLIST
  3845. DEF_IMPLEMENTS
  3846. DEF_ENDLIST
  3847. DEF_DECLARATION
  3848. // An exception indicated that some thread has interrupted this thread.
  3849. // 
  3850. // 
  3851. //      See Also:
  3852. //      interrupt, interrupted
  3853. // 
  3854. DEF_ENDLIST
  3855. DEF_METHOD
  3856. public InterruptedException()
  3857. //    Constructs an InterruptedException with no detail message.
  3858. // A detail message is a String that describes this particular exception.
  3859. // 
  3860. DEF_ENDLIST
  3861. DEF_METHOD
  3862. public InterruptedException(String s)
  3863. //    Constructs an InterruptedException with the specified detail message.
  3864. // A detail message is a String that describes this particular exception.
  3865. //   
  3866. //      Parameters:
  3867. //      s - the detail message
  3868. //   
  3869. // 
  3870. DEF_ENDLIST
  3871. DEF_ENDCOMPONENT
  3872. DEF_COMPONENTNAME
  3873. LinkageError
  3874. DEF_SUPERCLASS
  3875. Error
  3876. DEF_SUPERCOMPONENT
  3877.  
  3878. DEF_PACKAGE
  3879. java
  3880. lang
  3881. DEF_ENDLIST
  3882. DEF_SUBCOMPONENTLIST
  3883. DEF_ENDLIST
  3884. DEF_SUBCOMPONENTCLASSLIST
  3885. DEF_ENDLIST
  3886. DEF_CATEGORY
  3887.  
  3888. DEF_BITMAP
  3889.  
  3890. DEF_THUMBNAIL_UP
  3891.  
  3892. DEF_THUMBNAIL_DOWN
  3893.  
  3894. DEF_BASE
  3895. DEF_IMPORTS
  3896. DEF_ENDLIST
  3897. DEF_REQUIRES
  3898. DEF_ENDLIST
  3899. DEF_IMPLEMENTS
  3900. DEF_ENDLIST
  3901. DEF_DECLARATION
  3902. // LinkageError and its subclasses indicate that a class has some 
  3903. // dependency on another class; however the  latter class has incompatibly 
  3904. // changed after the compilation of the former class.
  3905. DEF_ENDLIST
  3906. DEF_METHOD
  3907. public LinkageError()
  3908. //    Constructs a LinkageError with no detail message.
  3909. // A detail message is a String that describes this particular exception.
  3910. // 
  3911. DEF_ENDLIST
  3912. DEF_METHOD
  3913. public LinkageError(String s)
  3914. //    Constructs a LinkageError with the specified detail message.
  3915. // A detail message is a String that describes this particular exception.
  3916. //   
  3917. //      Parameters:
  3918. //      s - the detail message
  3919. //   
  3920. // 
  3921. DEF_ENDLIST
  3922. DEF_ENDCOMPONENT
  3923. DEF_COMPONENTNAME
  3924. Long
  3925. DEF_SUPERCLASS
  3926. Number
  3927. DEF_SUPERCOMPONENT
  3928.  
  3929. DEF_PACKAGE
  3930. java
  3931. lang
  3932. DEF_ENDLIST
  3933. DEF_SUBCOMPONENTLIST
  3934. DEF_ENDLIST
  3935. DEF_SUBCOMPONENTCLASSLIST
  3936. DEF_ENDLIST
  3937. DEF_CATEGORY
  3938.  
  3939. DEF_BITMAP
  3940.  
  3941. DEF_THUMBNAIL_UP
  3942.  
  3943. DEF_THUMBNAIL_DOWN
  3944.  
  3945. DEF_BASE
  3946. DEF_IMPORTS
  3947. DEF_ENDLIST
  3948. DEF_REQUIRES
  3949. DEF_ENDLIST
  3950. DEF_IMPLEMENTS
  3951. DEF_ENDLIST
  3952. DEF_DECLARATION
  3953. // The Long class provides an object wrapper for Long data values and serves as 
  3954. // a place for long-oriented operations.  A wrapper is useful because most of Java's
  3955. // utility classes require the use of objects.  Since longs are not objects in Java,
  3956. // they need to be "wrapped" in a Long instance.
  3957. DEF_ENDLIST
  3958. DEF_METHOD
  3959. public Long(long value)
  3960. //    Constructs a Long object initialized to the specified value.
  3961. //   
  3962. //      Parameters:
  3963. //      value - the initial value of the Long
  3964. //   
  3965. // 
  3966. DEF_ENDLIST
  3967. DEF_METHOD
  3968. public Long(String s) throws NumberFormatException
  3969. //    Constructs a Long object initialized to the value specified by the
  3970. // String parameter.  The radix is assumed to be 10.
  3971. //   
  3972. //      Parameters:
  3973. //      s - the String to be converted to a Long
  3974. //      Throws: NumberFormatException
  3975. //      If the String does not contain a parsable 
  3976. //                                        long.
  3977. //   
  3978. // 
  3979. DEF_ENDLIST
  3980. DEF_METHOD
  3981. public static String toString(long i,
  3982.                               int radix)
  3983. //    Returns a new String object representing the specified long in
  3984. // the specified radix.
  3985. //   
  3986. //      Parameters:
  3987. //      i - the long to be converted
  3988. //      radix - the radix
  3989. //      See Also:
  3990. //      MIN_RADIX, MAX_RADIX
  3991. //   
  3992. // 
  3993. DEF_ENDLIST
  3994. DEF_METHOD
  3995. public static String toString(long i)
  3996. //    Returns a new String object representing the specified integer. The radix
  3997. // is assumed to be 10.
  3998. //   
  3999. //      Parameters:
  4000. //      i - the long to be converted
  4001. //   
  4002. // 
  4003. DEF_ENDLIST
  4004. DEF_METHOD
  4005. public static long parseLong(String s,
  4006.                              int radix) throws NumberFormatException
  4007. //    Assuming the specified String represents a long, returns that long's
  4008. // value. Throws an exception if the String cannot be parsed as a long.
  4009. //   
  4010. //      Parameters:
  4011. //      s - the String containing the integer
  4012. //      radix - the radix to be used
  4013. //      Throws: NumberFormatException
  4014. //      If the String does not 
  4015. //                  contain a parsable integer.
  4016. //   
  4017. // 
  4018. DEF_ENDLIST
  4019. DEF_METHOD
  4020. public static long parseLong(String s) throws NumberFormatException
  4021. //    Assuming the specified String represents a long, return that long's
  4022. // value. Throws an exception if the String cannot be parsed as a long.
  4023. // The radix is assumed to be 10.
  4024. //   
  4025. //      Parameters:
  4026. //      s - the String containing the long
  4027. //      Throws: NumberFormatException
  4028. //      If the string does not contain
  4029. //                   a parsable long.
  4030. //   
  4031. // 
  4032. DEF_ENDLIST
  4033. DEF_METHOD
  4034. public static Long valueOf(String s,
  4035.                            int radix) throws NumberFormatException
  4036. //    Assuming the specified String represents a long, returns a new Long
  4037. // object initialized to that value. Throws an exception if the String cannot be
  4038. // parsed as a long.
  4039. //   
  4040. //      Parameters:
  4041. //      s - the String containing the long.
  4042. //      radix - the radix to be used
  4043. //      Throws: NumberFormatException
  4044. //      If the String does not contain a parsable 
  4045. //                                        long.
  4046. //   
  4047. // 
  4048. DEF_ENDLIST
  4049. DEF_METHOD
  4050. public static Long valueOf(String s) throws NumberFormatException
  4051. //    Assuming the specified String represents a long, returns a new Long
  4052. // object initialized to that value. Throws an exception if the String cannot be
  4053. // parsed as a long. The radix is assumed to be 10.
  4054. //   
  4055. //      Parameters:
  4056. //      s - the String containing the long
  4057. //      Throws: NumberFormatException
  4058. //      If the String does not contain a parsable 
  4059. //                                        long.
  4060. //   
  4061. // 
  4062. DEF_ENDLIST
  4063. DEF_METHOD
  4064. public int intValue()
  4065. //    Returns the value of this Long as an int.
  4066. //   
  4067. //      Overrides:
  4068. //      intValue in class Number
  4069. //   
  4070. // 
  4071. DEF_ENDLIST
  4072. DEF_METHOD
  4073. public long longValue()
  4074. //    Returns the value of this Long as a long.
  4075. //   
  4076. //      Overrides:
  4077. //      longValue in class Number
  4078. //   
  4079. // 
  4080. DEF_ENDLIST
  4081. DEF_METHOD
  4082. public float floatValue()
  4083. //    Returns the value of this Long as a float.
  4084. //   
  4085. //      Overrides:
  4086. //      floatValue in class Number
  4087. //   
  4088. // 
  4089. DEF_ENDLIST
  4090. DEF_METHOD
  4091. public double doubleValue()
  4092. //    Returns the value of this Long as a double.
  4093. //   
  4094. //      Overrides:
  4095. //      doubleValue in class Number
  4096. //   
  4097. // 
  4098. DEF_ENDLIST
  4099. DEF_METHOD
  4100. public String toString()
  4101. //    Returns a String object representing this Long's value.
  4102. //   
  4103. //      Overrides:
  4104. //      toString in class Object
  4105. //   
  4106. // 
  4107. DEF_ENDLIST
  4108. DEF_METHOD
  4109. public int hashCode()
  4110. //    Computes a hashcode for this Long.
  4111. //   
  4112. //      Overrides:
  4113. //      hashCode in class Object
  4114. //   
  4115. // 
  4116. DEF_ENDLIST
  4117. DEF_METHOD
  4118. public boolean equals(Object obj)
  4119. //    Compares this object against the specified object.
  4120. //   
  4121. //      Parameters:
  4122. //      obj - the object to compare with
  4123. //      Returns:
  4124. //      true if the objects are the same; false otherwise.
  4125. //      Overrides:
  4126. //      equals in class Object
  4127. //   
  4128. // 
  4129. DEF_ENDLIST
  4130. DEF_METHOD
  4131. public static Long getLong(String nm)
  4132. //    Get a Long property. If the property does not
  4133. // exist, it will return 0.
  4134. //   
  4135. //      Parameters:
  4136. //      nm - the property name
  4137. //   
  4138. // 
  4139. DEF_ENDLIST
  4140. DEF_METHOD
  4141. public static Long getLong(String nm,
  4142.                            long val)
  4143. //    Get a Long property. If the property does not
  4144. // exist, it will return val. Deals with Hexadecimal and octal numbers.
  4145. //   
  4146. //      Parameters:
  4147. //      nm - the String name
  4148. //      val - the Long value
  4149. //   
  4150. // 
  4151. DEF_ENDLIST
  4152. DEF_METHOD
  4153. public static Long getLong(String nm,
  4154.                            Long val)
  4155. //    Get a Long property. If the property does not
  4156. // exist, it will return val. Deals with Hexadecimal and octal numbers.
  4157. //   
  4158. //      Parameters:
  4159. //      nm - the property name
  4160. //      val - the Long value
  4161. //   
  4162. // 
  4163. DEF_ENDLIST
  4164. DEF_ENDCOMPONENT
  4165. DEF_COMPONENTNAME
  4166. Math
  4167. DEF_SUPERCLASS
  4168. Object
  4169. DEF_SUPERCOMPONENT
  4170.  
  4171. DEF_PACKAGE
  4172. java
  4173. lang
  4174. DEF_ENDLIST
  4175. DEF_SUBCOMPONENTLIST
  4176. DEF_ENDLIST
  4177. DEF_SUBCOMPONENTCLASSLIST
  4178. DEF_ENDLIST
  4179. DEF_CATEGORY
  4180.  
  4181. DEF_BITMAP
  4182.  
  4183. DEF_THUMBNAIL_UP
  4184.  
  4185. DEF_THUMBNAIL_DOWN
  4186.  
  4187. DEF_BASE
  4188. DEF_IMPORTS
  4189. DEF_ENDLIST
  4190. DEF_REQUIRES
  4191. DEF_ENDLIST
  4192. DEF_IMPLEMENTS
  4193. DEF_ENDLIST
  4194. DEF_DECLARATION
  4195. // The standard Math library.  For the methods in this Class, error handling 
  4196. // for out-of-range or immeasurable results are platform dependent.  
  4197. // This class cannot be subclassed or instantiated because all methods and variables
  4198. // are static.
  4199. DEF_ENDLIST
  4200. DEF_METHOD
  4201. public static double sin(double a)
  4202. //    Returns the trigonometric sine of an angle.
  4203. //   
  4204. //      Parameters:
  4205. //      a - an assigned angle that is measured in radians
  4206. //   
  4207. // 
  4208. DEF_ENDLIST
  4209. DEF_METHOD
  4210. public static double cos(double a)
  4211. //    Returns the trigonometric cosine of an angle.
  4212. //   
  4213. //      Parameters:
  4214. //      a - an assigned angle that is measured in radians
  4215. //   
  4216. // 
  4217. DEF_ENDLIST
  4218. DEF_METHOD
  4219. public static double tan(double a)
  4220. //    Returns the trigonometric tangent of an angle.
  4221. //   
  4222. //      Parameters:
  4223. //      a - an assigned angle that is measured in radians
  4224. //   
  4225. // 
  4226. DEF_ENDLIST
  4227. DEF_METHOD
  4228. public static double asin(double a)
  4229. //    Returns the arc sine of a, in the range of -Pi/2 through Pi/2.
  4230. //   
  4231. //      Parameters:
  4232. //      a - (-1.0) <= a <= 1.0
  4233. //   
  4234. // 
  4235. DEF_ENDLIST
  4236. DEF_METHOD
  4237. public static double acos(double a)
  4238. //    Returns the arc cosine of a, in the range of 0.0 through Pi.
  4239. //   
  4240. //      Parameters:
  4241. //      a - (-1.0) <= a <= 1.0
  4242. //   
  4243. // 
  4244. DEF_ENDLIST
  4245. DEF_METHOD
  4246. public static double atan(double a)
  4247. //    Returns the arc tangent of a, in the range of -Pi/2 through Pi/2.
  4248. //   
  4249. //      Parameters:
  4250. //      a - an assigned value
  4251. //      Returns:
  4252. //      the arc tangent of a.
  4253. //   
  4254. // 
  4255. DEF_ENDLIST
  4256. DEF_METHOD
  4257. public static double exp(double a)
  4258. //    Returns the exponential number e(2.718...) raised to the power of a.
  4259. //   
  4260. //      Parameters:
  4261. //      a - an assigned value
  4262. //   
  4263. // 
  4264. DEF_ENDLIST
  4265. DEF_METHOD
  4266. public static double log(double a) throws ArithmeticException
  4267. //    Returns the natural logarithm (base e) of a.
  4268. //   
  4269. //      Parameters:
  4270. //      a - a is a number greater than  0.0
  4271. //      Throws: ArithmeticException
  4272. //      If a is less than 0.0 .
  4273. //   
  4274. // 
  4275. DEF_ENDLIST
  4276. DEF_METHOD
  4277. public static double sqrt(double a) throws ArithmeticException
  4278. //    Returns the square root of a.
  4279. //   
  4280. //      Parameters:
  4281. //      a - a is a number greater than or equal to 0.0
  4282. //      Throws: ArithmeticException
  4283. //      If a is a value less than 0.0 .
  4284. //   
  4285. // 
  4286. DEF_ENDLIST
  4287. DEF_METHOD
  4288. public static double IEEEremainder(double f1,
  4289.                                    double f2)
  4290. //    Returns the remainder of f1 divided by f2 as defined by IEEE 754.
  4291. //   
  4292. //      Parameters:
  4293. //      f1 - the dividend
  4294. //      f2 - the divisor
  4295. //   
  4296. // 
  4297. DEF_ENDLIST
  4298. DEF_METHOD
  4299. public static double ceil(double a)
  4300. //    Returns the "ceiling" or smallest whole number greater than or equal to a.
  4301. //   
  4302. //      Parameters:
  4303. //      a - an assigned value
  4304. //   
  4305. // 
  4306. DEF_ENDLIST
  4307. DEF_METHOD
  4308. public static double floor(double a)
  4309. //    Returns the "floor" or largest whole number less than or equal to a.
  4310. //   
  4311. //      Parameters:
  4312. //      a - an assigned value
  4313. //   
  4314. // 
  4315. DEF_ENDLIST
  4316. DEF_METHOD
  4317. public static double rint(double a)
  4318. //    Converts a double value into an integral value in double format.
  4319. //   
  4320. //      Parameters:
  4321. //      a - an assigned double value
  4322. //   
  4323. // 
  4324. DEF_ENDLIST
  4325. DEF_METHOD
  4326. public static double atan2(double a,
  4327.                            double b)
  4328. //    Converts rectangular coordinates (a, b) to polar (r, theta).  This method
  4329. // computes the phase theta by computing an arc tangent of b/a in
  4330. // the range of -Pi to Pi.
  4331. //   
  4332. //      Parameters:
  4333. //      a - an assigned value
  4334. //      b - an assigned value
  4335. //      Returns:
  4336. //      the polar coordinates (r, theta).
  4337. //   
  4338. // 
  4339. DEF_ENDLIST
  4340. DEF_METHOD
  4341. public static double pow(double a,
  4342.                          double b) throws ArithmeticException
  4343. //    Returns the number a raised to the power of b.  If (a == 0.0), then b 
  4344. // must be greater than 0.0; otherwise you will throw an exception. 
  4345. // An exception will also occur if (a <= 0.0) and b is not equal to a  
  4346. // whole number.
  4347. //   
  4348. //      Parameters:
  4349. //      a - an assigned value with the exceptions: (a == 0.0) -> (b > 0.0)
  4350. // && (a  (b == a whole number)
  4351. //      b - an assigned value with the exceptions: (a == 0.0) -> (b > 0.0)
  4352. // && (a  (b == a whole number)
  4353. //      Throws: ArithmeticException
  4354. //      If (a == 0.0) and (b <= 0.0) .
  4355. //      Throws: ArithmeticException
  4356. //      If (a <= 0.0) and b is not equal to 
  4357. // a whole number.
  4358. //   
  4359. // 
  4360. DEF_ENDLIST
  4361. DEF_METHOD
  4362. public static int round(float a)
  4363. //    Rounds off a float value by first adding 0.5 to it and then returning the
  4364. // largest integer that is less than or equal to this new value.
  4365. //   
  4366. //      Parameters:
  4367. //      a - the value to be rounded off
  4368. //   
  4369. // 
  4370. DEF_ENDLIST
  4371. DEF_METHOD
  4372. public static long round(double a)
  4373. //    Rounds off a double value by first adding 0.5 to it and then returning the
  4374. // largest integer that is less than or equal to this new value.
  4375. //   
  4376. //      Parameters:
  4377. //      a - the value to be rounded off
  4378. //   
  4379. // 
  4380. DEF_ENDLIST
  4381. DEF_METHOD
  4382. public static synchronized double random()
  4383. //    Generates a random number between 0.0 and 1.0. 
  4384. // Random number generators are often referred to as pseudorandom number 
  4385. // generators because the numbers produced tend to repeat themselves after
  4386. // a period of time.
  4387. //   
  4388. //      Returns:
  4389. //      a pseudorandom double between 0.0 and 1.0.
  4390. //   
  4391. // 
  4392. DEF_ENDLIST
  4393. DEF_METHOD
  4394. public static int abs(int a)
  4395. //    Returns the absolute integer value of a.
  4396. //   
  4397. //      Parameters:
  4398. //      a - an assigned integer value
  4399. //   
  4400. // 
  4401. DEF_ENDLIST
  4402. DEF_METHOD
  4403. public static long abs(long a)
  4404. //    Returns the absolute long value of a.
  4405. //   
  4406. //      Parameters:
  4407. //      a - an assigned long value.
  4408. //   
  4409. // 
  4410. DEF_ENDLIST
  4411. DEF_METHOD
  4412. public static float abs(float a)
  4413. //    Returns the absolute float value of a.
  4414. //   
  4415. //      Parameters:
  4416. //      a - an assigned float value
  4417. //   
  4418. // 
  4419. DEF_ENDLIST
  4420. DEF_METHOD
  4421. public static double abs(double a)
  4422. //    Returns the absolute double value of a.
  4423. //   
  4424. //      Parameters:
  4425. //      a - an assigned double value
  4426. //   
  4427. // 
  4428. DEF_ENDLIST
  4429. DEF_METHOD
  4430. public static int max(int a,
  4431.                       int b)
  4432. //    Takes two int values, a and b, and returns the greater number of the two.
  4433. //   
  4434. //      Parameters:
  4435. //      a - an integer value to be compared
  4436. //      b - an integer value to be compared
  4437. //   
  4438. // 
  4439. DEF_ENDLIST
  4440. DEF_METHOD
  4441. public static long max(long a,
  4442.                        long b)
  4443. //    Takes two long values, a and b, and returns the greater number of the two.
  4444. //   
  4445. //      Parameters:
  4446. //      a - a long value to be compared
  4447. //      b - a long value to be compared
  4448. //   
  4449. // 
  4450. DEF_ENDLIST
  4451. DEF_METHOD
  4452. public static float max(float a,
  4453.                         float b)
  4454. //    Takes two float values, a and b, and returns the greater number of the two.
  4455. //   
  4456. //      Parameters:
  4457. //      a - a float value to be compared
  4458. //      b - a float value to be compared
  4459. //   
  4460. // 
  4461. DEF_ENDLIST
  4462. DEF_METHOD
  4463. public static double max(double a,
  4464.                          double b)
  4465. //    Takes two double values, a and b, and returns the greater number of the two.
  4466. //   
  4467. //      Parameters:
  4468. //      a - a double value to be compared
  4469. //      b - a double value to be compared
  4470. //   
  4471. // 
  4472. DEF_ENDLIST
  4473. DEF_METHOD
  4474. public static int min(int a,
  4475.                       int b)
  4476. //    Takes two integer values, a and b, and returns the smallest number of the two.
  4477. //   
  4478. //      Parameters:
  4479. //      a - an integer value to be compared
  4480. //      b - an integer value to be compared
  4481. //   
  4482. // 
  4483. DEF_ENDLIST
  4484. DEF_METHOD
  4485. public static long min(long a,
  4486.                        long b)
  4487. //    Takes two long values, a and b, and returns the smallest number of the two.
  4488. //   
  4489. //      Parameters:
  4490. //      a - a long value to be compared
  4491. //      b - a long value to be compared
  4492. //   
  4493. // 
  4494. DEF_ENDLIST
  4495. DEF_METHOD
  4496. public static float min(float a,
  4497.                         float b)
  4498. //    Takes two float values, a and b, and returns the smallest number of the two.
  4499. //   
  4500. //      Parameters:
  4501. //      a - a float value to be compared
  4502. //      b - a float value to be compared
  4503. //   
  4504. // 
  4505. DEF_ENDLIST
  4506. DEF_METHOD
  4507. public static double min(double a,
  4508.                          double b)
  4509. //    Takes two double values, a and b, and returns the smallest number of the two.
  4510. //   
  4511. //      Parameters:
  4512. //      a - a double value to be compared
  4513. //      b - a double value to be compared
  4514. //   
  4515. // 
  4516. DEF_ENDLIST
  4517. DEF_ENDCOMPONENT
  4518. DEF_COMPONENTNAME
  4519. NegativeArraySizeException
  4520. DEF_SUPERCLASS
  4521. RuntimeException
  4522. DEF_SUPERCOMPONENT
  4523.  
  4524. DEF_PACKAGE
  4525. java
  4526. lang
  4527. DEF_ENDLIST
  4528. DEF_SUBCOMPONENTLIST
  4529. DEF_ENDLIST
  4530. DEF_SUBCOMPONENTCLASSLIST
  4531. DEF_ENDLIST
  4532. DEF_CATEGORY
  4533.  
  4534. DEF_BITMAP
  4535.  
  4536. DEF_THUMBNAIL_UP
  4537.  
  4538. DEF_THUMBNAIL_DOWN
  4539.  
  4540. DEF_BASE
  4541. DEF_IMPORTS
  4542. DEF_ENDLIST
  4543. DEF_REQUIRES
  4544. DEF_ENDLIST
  4545. DEF_IMPLEMENTS
  4546. DEF_ENDLIST
  4547. DEF_DECLARATION
  4548. // Signals that an attempt has been made to create an array with negative size.
  4549. DEF_ENDLIST
  4550. DEF_METHOD
  4551. public NegativeArraySizeException()
  4552. //    Constructs a NegativeArraySizeException with no detail message.
  4553. // A detail message is a String that describes this particular exception.
  4554. // 
  4555. DEF_ENDLIST
  4556. DEF_METHOD
  4557. public NegativeArraySizeException(String s)
  4558. //    Constructs a NegativeArraySizeException with the specified detail message.
  4559. // A detail message is a String that describes this particular exception.
  4560. //   
  4561. //      Parameters:
  4562. //      s - the detail message
  4563. //   
  4564. // 
  4565. DEF_ENDLIST
  4566. DEF_ENDCOMPONENT
  4567. DEF_COMPONENTNAME
  4568. NoClassDefFoundError
  4569. DEF_SUPERCLASS
  4570. LinkageError
  4571. DEF_SUPERCOMPONENT
  4572.  
  4573. DEF_PACKAGE
  4574. java
  4575. lang
  4576. DEF_ENDLIST
  4577. DEF_SUBCOMPONENTLIST
  4578. DEF_ENDLIST
  4579. DEF_SUBCOMPONENTCLASSLIST
  4580. DEF_ENDLIST
  4581. DEF_CATEGORY
  4582.  
  4583. DEF_BITMAP
  4584.  
  4585. DEF_THUMBNAIL_UP
  4586.  
  4587. DEF_THUMBNAIL_DOWN
  4588.  
  4589. DEF_BASE
  4590. DEF_IMPORTS
  4591. DEF_ENDLIST
  4592. DEF_REQUIRES
  4593. DEF_ENDLIST
  4594. DEF_IMPLEMENTS
  4595. DEF_ENDLIST
  4596. DEF_DECLARATION
  4597. // Signals that a class could not be found.
  4598. DEF_ENDLIST
  4599. DEF_METHOD
  4600. public NoClassDefFoundError()
  4601. //    Constructs a NoClassDefFoundError with no detail message.
  4602. // A detail message is a String that describes this particular exception.
  4603. // 
  4604. DEF_ENDLIST
  4605. DEF_METHOD
  4606. public NoClassDefFoundError(String s)
  4607. //    Constructs a NoClassDefFoundError with the specified detail message.
  4608. // A detail message is a String that describes this particular exception.
  4609. //   
  4610. //      Parameters:
  4611. //      s - the detail message
  4612. //   
  4613. // 
  4614. DEF_ENDLIST
  4615. DEF_ENDCOMPONENT
  4616. DEF_COMPONENTNAME
  4617. NoSuchElementException
  4618. DEF_SUPERCLASS
  4619. RuntimeException
  4620. DEF_SUPERCOMPONENT
  4621.  
  4622. DEF_PACKAGE
  4623. java
  4624. lang
  4625. DEF_ENDLIST
  4626. DEF_SUBCOMPONENTLIST
  4627. DEF_ENDLIST
  4628. DEF_SUBCOMPONENTCLASSLIST
  4629. DEF_ENDLIST
  4630. DEF_CATEGORY
  4631.  
  4632. DEF_BITMAP
  4633.  
  4634. DEF_THUMBNAIL_UP
  4635.  
  4636. DEF_THUMBNAIL_DOWN
  4637.  
  4638. DEF_BASE
  4639. DEF_IMPORTS
  4640. DEF_ENDLIST
  4641. DEF_REQUIRES
  4642. DEF_ENDLIST
  4643. DEF_IMPLEMENTS
  4644. DEF_ENDLIST
  4645. DEF_DECLARATION
  4646. // Signals that an enumeration is empty.
  4647. // 
  4648. //      See Also:
  4649. //      Enumeration
  4650. // 
  4651. DEF_ENDLIST
  4652. DEF_METHOD
  4653. public NoSuchElementException()
  4654. //    Constructs a NoSuchElementException with no detail message.
  4655. // A detail message is a String that describes this particular exception.
  4656. // 
  4657. DEF_ENDLIST
  4658. DEF_METHOD
  4659. public NoSuchElementException(String s)
  4660. //    Constructs a NoSuchElementException with the specified detail message.
  4661. // A detail message is a String that describes this particular exception.
  4662. //   
  4663. //      Parameters:
  4664. //      s - the detail message
  4665. //   
  4666. // 
  4667. DEF_ENDLIST
  4668. DEF_ENDCOMPONENT
  4669. DEF_COMPONENTNAME
  4670. NoSuchFieldError
  4671. DEF_SUPERCLASS
  4672. IncompatibleClassChangeError
  4673. DEF_SUPERCOMPONENT
  4674.  
  4675. DEF_PACKAGE
  4676. java
  4677. lang
  4678. DEF_ENDLIST
  4679. DEF_SUBCOMPONENTLIST
  4680. DEF_ENDLIST
  4681. DEF_SUBCOMPONENTCLASSLIST
  4682. DEF_ENDLIST
  4683. DEF_CATEGORY
  4684.  
  4685. DEF_BITMAP
  4686.  
  4687. DEF_THUMBNAIL_UP
  4688.  
  4689. DEF_THUMBNAIL_DOWN
  4690.  
  4691. DEF_BASE
  4692. DEF_IMPORTS
  4693. DEF_ENDLIST
  4694. DEF_REQUIRES
  4695. DEF_ENDLIST
  4696. DEF_IMPLEMENTS
  4697. DEF_ENDLIST
  4698. DEF_DECLARATION
  4699. // Signals that a particular field could not be found.
  4700. DEF_ENDLIST
  4701. DEF_METHOD
  4702. public NoSuchFieldError()
  4703. //    Constructs a NoSuchFieldException without a detail message.
  4704. // A detail message is a String that describes this particular exception.
  4705. // 
  4706. DEF_ENDLIST
  4707. DEF_METHOD
  4708. public NoSuchFieldError(String s)
  4709. //    Constructs a NoSuchFieldException with a detail message.
  4710. // A detail message is a String that describes this particular exception.
  4711. //   
  4712. //      Parameters:
  4713. //      s - the detail message
  4714. //   
  4715. // 
  4716. DEF_ENDLIST
  4717. DEF_ENDCOMPONENT
  4718. DEF_COMPONENTNAME
  4719. NoSuchMethodError
  4720. DEF_SUPERCLASS
  4721. IncompatibleClassChangeError
  4722. DEF_SUPERCOMPONENT
  4723.  
  4724. DEF_PACKAGE
  4725. java
  4726. lang
  4727. DEF_ENDLIST
  4728. DEF_SUBCOMPONENTLIST
  4729. DEF_ENDLIST
  4730. DEF_SUBCOMPONENTCLASSLIST
  4731. DEF_ENDLIST
  4732. DEF_CATEGORY
  4733.  
  4734. DEF_BITMAP
  4735.  
  4736. DEF_THUMBNAIL_UP
  4737.  
  4738. DEF_THUMBNAIL_DOWN
  4739.  
  4740. DEF_BASE
  4741. DEF_IMPORTS
  4742. DEF_ENDLIST
  4743. DEF_REQUIRES
  4744. DEF_ENDLIST
  4745. DEF_IMPLEMENTS
  4746. DEF_ENDLIST
  4747. DEF_DECLARATION
  4748. // Signals that a particular method could not be found.
  4749. DEF_ENDLIST
  4750. DEF_METHOD
  4751. public NoSuchMethodError()
  4752. //    Constructs a NoSuchMethodException with a detail message.
  4753. // A detail message is a String that describes this particular exception.
  4754. //   
  4755. //      Parameters:
  4756. //      s - the detail message
  4757. //   
  4758. // 
  4759. DEF_ENDLIST
  4760. DEF_ENDCOMPONENT
  4761. DEF_COMPONENTNAME
  4762. NoSuchMethodException
  4763. DEF_SUPERCLASS
  4764. Exception
  4765. DEF_SUPERCOMPONENT
  4766.  
  4767. DEF_PACKAGE
  4768. java
  4769. lang
  4770. DEF_ENDLIST
  4771. DEF_SUBCOMPONENTLIST
  4772. DEF_ENDLIST
  4773. DEF_SUBCOMPONENTCLASSLIST
  4774. DEF_ENDLIST
  4775. DEF_CATEGORY
  4776.  
  4777. DEF_BITMAP
  4778.  
  4779. DEF_THUMBNAIL_UP
  4780.  
  4781. DEF_THUMBNAIL_DOWN
  4782.  
  4783. DEF_BASE
  4784. DEF_IMPORTS
  4785. DEF_ENDLIST
  4786. DEF_REQUIRES
  4787. DEF_ENDLIST
  4788. DEF_IMPLEMENTS
  4789. DEF_ENDLIST
  4790. DEF_DECLARATION
  4791. // Signals that a particular method could not be found.
  4792. DEF_ENDLIST
  4793. DEF_METHOD
  4794. public NoSuchMethodException()
  4795. //    Constructs a NoSuchMethodException without a detail message.
  4796. // A detail message is a String that describes this particular exception.
  4797. // 
  4798. DEF_ENDLIST
  4799. DEF_METHOD
  4800. public NoSuchMethodException(String s)
  4801. //    Constructs a NoSuchMethodException with a detail message.
  4802. // A detail message is a String that describes this particular exception.
  4803. //   
  4804. //      Parameters:
  4805. //      s - the detail message
  4806. //   
  4807. // 
  4808. DEF_ENDLIST
  4809. DEF_ENDCOMPONENT
  4810. DEF_COMPONENTNAME
  4811. NullPointerException
  4812. DEF_SUPERCLASS
  4813. RuntimeException
  4814. DEF_SUPERCOMPONENT
  4815.  
  4816. DEF_PACKAGE
  4817. java
  4818. lang
  4819. DEF_ENDLIST
  4820. DEF_SUBCOMPONENTLIST
  4821. DEF_ENDLIST
  4822. DEF_SUBCOMPONENTCLASSLIST
  4823. DEF_ENDLIST
  4824. DEF_CATEGORY
  4825.  
  4826. DEF_BITMAP
  4827.  
  4828. DEF_THUMBNAIL_UP
  4829.  
  4830. DEF_THUMBNAIL_DOWN
  4831.  
  4832. DEF_BASE
  4833. DEF_IMPORTS
  4834. DEF_ENDLIST
  4835. DEF_REQUIRES
  4836. DEF_ENDLIST
  4837. DEF_IMPLEMENTS
  4838. DEF_ENDLIST
  4839. DEF_DECLARATION
  4840. // Signals the illegal use of a null pointer.
  4841. DEF_ENDLIST
  4842. DEF_METHOD
  4843. public NullPointerException()
  4844. //    Constructs a NullPointerException with no detail message.
  4845. // A detail message is a String that describes this particular exception.
  4846. // 
  4847. DEF_ENDLIST
  4848. DEF_METHOD
  4849. public NullPointerException(String s)
  4850. //    Constructs a NullPointerException with the specified detail message.
  4851. // A detail message is a String that describes this particular exception.
  4852. //   
  4853. //      Parameters:
  4854. //      s - the detail message
  4855. //   
  4856. // 
  4857. DEF_ENDLIST
  4858. DEF_ENDCOMPONENT
  4859. DEF_COMPONENTNAME
  4860. Number
  4861. DEF_SUPERCLASS
  4862. Object
  4863. DEF_SUPERCOMPONENT
  4864.  
  4865. DEF_PACKAGE
  4866. java
  4867. lang
  4868. DEF_ENDLIST
  4869. DEF_SUBCOMPONENTLIST
  4870. DEF_ENDLIST
  4871. DEF_SUBCOMPONENTCLASSLIST
  4872. DEF_ENDLIST
  4873. DEF_CATEGORY
  4874.  
  4875. DEF_BITMAP
  4876.  
  4877. DEF_THUMBNAIL_UP
  4878.  
  4879. DEF_THUMBNAIL_DOWN
  4880.  
  4881. DEF_BASE
  4882. DEF_IMPORTS
  4883. DEF_ENDLIST
  4884. DEF_REQUIRES
  4885. DEF_ENDLIST
  4886. DEF_IMPLEMENTS
  4887. DEF_ENDLIST
  4888. DEF_DECLARATION
  4889. // Number is an abstract superclass for numeric scalar types.
  4890. // Integer, Long, Float and Double are subclasses of Number that bind
  4891. // to a particular numeric representation.
  4892. // 
  4893. //      See Also:
  4894. //      Integer, Long, Float, Double
  4895. // 
  4896. DEF_ENDLIST
  4897. DEF_METHOD
  4898. public Number()
  4899. //    Returns the value of the number as an int.
  4900. // This may involve rounding if the number is not already an integer.
  4901. // 
  4902. DEF_ENDLIST
  4903. DEF_METHOD
  4904. public abstract long longValue()
  4905. //    Returns the value of the number as a long.  This may involve rounding
  4906. // if the number is not already a long.
  4907. // 
  4908. DEF_ENDLIST
  4909. DEF_METHOD
  4910. public abstract float floatValue()
  4911. //    Returns the value of the number as a float.  This may involve rounding
  4912. // if the number is not already a float.
  4913. // 
  4914. DEF_ENDLIST
  4915. DEF_METHOD
  4916. public abstract double doubleValue()
  4917. //    Returns the value of the number as a double.  This may involve rounding
  4918. // if the number is not already a double.
  4919. // 
  4920. DEF_ENDLIST
  4921. DEF_ENDCOMPONENT
  4922. DEF_COMPONENTNAME
  4923. NumberFormatException
  4924. DEF_SUPERCLASS
  4925. IllegalArgumentException
  4926. DEF_SUPERCOMPONENT
  4927.  
  4928. DEF_PACKAGE
  4929. java
  4930. lang
  4931. DEF_ENDLIST
  4932. DEF_SUBCOMPONENTLIST
  4933. DEF_ENDLIST
  4934. DEF_SUBCOMPONENTCLASSLIST
  4935. DEF_ENDLIST
  4936. DEF_CATEGORY
  4937.  
  4938. DEF_BITMAP
  4939.  
  4940. DEF_THUMBNAIL_UP
  4941.  
  4942. DEF_THUMBNAIL_DOWN
  4943.  
  4944. DEF_BASE
  4945. DEF_IMPORTS
  4946. DEF_ENDLIST
  4947. DEF_REQUIRES
  4948. DEF_ENDLIST
  4949. DEF_IMPLEMENTS
  4950. DEF_ENDLIST
  4951. DEF_DECLARATION
  4952. // Signals that an invalid number format has occurred.
  4953. // 
  4954. //      See Also:
  4955. //      toString
  4956. // 
  4957. DEF_ENDLIST
  4958. DEF_METHOD
  4959. public NumberFormatException()
  4960. //    Constructs a NumberFormatException with no detail message.
  4961. // A detail message is a String that describes this particular exception.
  4962. // 
  4963. DEF_ENDLIST
  4964. DEF_METHOD
  4965. public NumberFormatException(String s)
  4966. //    Constructs a NumberFormatException with the specified detail message.
  4967. // A detail message is a String that describes this particular exception.
  4968. //   
  4969. //      Parameters:
  4970. //      s - the detail message
  4971. //   
  4972. // 
  4973. DEF_ENDLIST
  4974. DEF_ENDCOMPONENT
  4975. DEF_COMPONENTNAME
  4976. Object
  4977. DEF_SUPERCLASS
  4978.  
  4979. DEF_SUPERCOMPONENT
  4980.  
  4981. DEF_PACKAGE
  4982. java
  4983. lang
  4984. DEF_ENDLIST
  4985. DEF_SUBCOMPONENTLIST
  4986. DEF_ENDLIST
  4987. DEF_SUBCOMPONENTCLASSLIST
  4988. DEF_ENDLIST
  4989. DEF_CATEGORY
  4990.  
  4991. DEF_BITMAP
  4992.  
  4993. DEF_THUMBNAIL_UP
  4994.  
  4995. DEF_THUMBNAIL_DOWN
  4996.  
  4997. DEF_BASE
  4998. DEF_IMPORTS
  4999. DEF_ENDLIST
  5000. DEF_REQUIRES
  5001. DEF_ENDLIST
  5002. DEF_IMPLEMENTS
  5003. DEF_ENDLIST
  5004. DEF_DECLARATION
  5005. // The root of the Class hierarchy.  Every Class in the system
  5006. // has Object as its ultimate parent.  Every variable and method
  5007. // defined here is available in every Object.
  5008. // 
  5009. //      See Also:
  5010. //      Class
  5011. // 
  5012. DEF_ENDLIST
  5013. DEF_METHOD
  5014. void initialize()
  5015. // Default initialization for all objects.  Called after all
  5016. // initial property values are set in the constructor.
  5017. DEF_ENDLIST
  5018. DEF_METHOD
  5019. public Object()
  5020. //    Returns the Class of this Object. Java has a runtime
  5021. // representation for classes- a descriptor of type Class- 
  5022. // which the method getClass() returns for any Object.
  5023. // 
  5024. DEF_ENDLIST
  5025. DEF_METHOD
  5026. public int hashCode()
  5027. //    Returns a hashcode for this Object.
  5028. // Each Object in the Java system has a hashcode. The hashcode
  5029. // is a number that is usually different for different Objects.
  5030. // It is used when storing Objects in hashtables.
  5031. // Note: hashcodes can be negative as well as positive.
  5032. //   
  5033. //      See Also:
  5034. //      Hashtable
  5035. //   
  5036. // 
  5037. DEF_ENDLIST
  5038. DEF_METHOD
  5039. public boolean equals(Object obj)
  5040. //    Compares two Objects for equality.
  5041. // Returns a boolean that indicates whether this Object is equivalent 
  5042. // to the specified Object. This method is used when an Object is stored
  5043. // in a hashtable.
  5044. //   
  5045. //      Parameters:
  5046. //      obj - the Object to compare with
  5047. //      Returns:
  5048. //      true if these Objects are equal; false otherwise.
  5049. //      See Also:
  5050. //      Hashtable
  5051. //   
  5052. // 
  5053. DEF_ENDLIST
  5054. DEF_METHOD
  5055. protected Object clone() throws CloneNotSupportedException
  5056. //    Creates a clone of the object. A new instance is allocated and a 
  5057. // bitwise clone of the current object is place in the new object.
  5058. //   
  5059. //      Returns:
  5060. //      a clone of this Object.
  5061. //      Throws: OutOfMemoryError
  5062. //      If there is not enough memory.
  5063. //      Throws: CloneNotSupportedException
  5064. //      Object explicitly does not
  5065. //                      want to be cloned, or it does not support the
  5066. //                      Cloneable interface.
  5067. //   
  5068. // 
  5069. DEF_ENDLIST
  5070. DEF_METHOD
  5071. public String toString()
  5072. //    Returns a String that represents the value of this Object.  It is recommended
  5073. // that all subclasses override this method.
  5074. // 
  5075. DEF_ENDLIST
  5076. DEF_METHOD
  5077. public final void notify()
  5078. //    Notifies a single waiting thread on a change in condition of another thread. 
  5079. // The thread effecting the change notifies the waiting thread
  5080. // using notify(). Threads that want to wait for a condition to 
  5081. // change before proceeding can call wait(). 
  5082. // The method notify() can only be called from within a synchronized method.
  5083. //   
  5084. //      Throws: IllegalMonitorStateException
  5085. //      If the current thread
  5086. //                 is not the owner of the Object's monitor.
  5087. //      See Also:
  5088. //      wait, notifyAll
  5089. //   
  5090. // 
  5091. DEF_ENDLIST
  5092. DEF_METHOD
  5093. public final void notifyAll()
  5094. //    Notifies all of the threads waiting for a condition to change.
  5095. // Threads that are waiting are generally waiting for another thread to 
  5096. // change some condition. Thus, the thread effecting a change that more 
  5097. // than one thread is waiting for notifies all the waiting threads using
  5098. // the method notifyAll(). Threads that want to wait for a condition to 
  5099. // change before proceeding can call wait(). 
  5100. // The method notifyAll() can only be called from within a synchronized method.
  5101. //   
  5102. //      Throws: IllegalMonitorStateException
  5103. //      If the current thread
  5104. //                 is not the owner of the Object's monitor.
  5105. //      See Also:
  5106. //      wait, notify
  5107. //   
  5108. // 
  5109. DEF_ENDLIST
  5110. DEF_METHOD
  5111. public final void wait(long timeout) throws InterruptedException
  5112. //    Causes a thread to wait until it is notified or the specified timeout
  5113. // expires. 
  5114. // The method wait() can only be called from within a synchronized method.
  5115. //   
  5116. //      Parameters:
  5117. //      timeout - the maximum time to wait in milliseconds
  5118. //      Throws: IllegalMonitorStateException
  5119. //      If the current thread
  5120. //                 is not the owner of the Object's monitor.
  5121. //      Throws: InterruptedException
  5122. //      Another thread has interrupted
  5123. //                 this thread.
  5124. //   
  5125. // 
  5126. DEF_ENDLIST
  5127. DEF_METHOD
  5128. public final void wait(long timeout,
  5129.                        int nanos) throws InterruptedException
  5130. //    More accurate wait.
  5131. // The method wait() can only be called from within a synchronized method.
  5132. //   
  5133. //      Parameters:
  5134. //      timeout - the maximum time to wait in milliseconds
  5135. //      nano - additional time, in nanoseconds range 0-999999
  5136. //      Throws: IllegalMonitorStateException
  5137. //      If the current thread
  5138. //                 is not the owner of the Object's monitor.
  5139. //      Throws: InterruptedException
  5140. //      Another thread has interrupted
  5141. //                 this thread.
  5142. //   
  5143. // 
  5144. DEF_ENDLIST
  5145. DEF_METHOD
  5146. public final void wait() throws InterruptedException
  5147. //    Causes a thread to wait forever until it is notified. 
  5148. // The method wait() can only be called from within a synchronized method
  5149. //   
  5150. //      Throws: IllegalMonitorStateException
  5151. //      If the current thread
  5152. //                 is not the owner of the Object's monitor.
  5153. //      Throws: InterruptedException
  5154. //      Another thread has interrupted
  5155. //                 this thread.
  5156. //   
  5157. // 
  5158. DEF_ENDLIST
  5159. DEF_METHOD
  5160. protected void finalize() throws Throwable
  5161. //    Code to perform when this object is garbage collected.  
  5162. // The default is that nothing needs to be performed.
  5163. // Any exception thrown by a finalize method causes the finalization to
  5164. // halt.  But otherwise, it is ignored.
  5165. // 
  5166. DEF_ENDLIST
  5167. DEF_ENDCOMPONENT
  5168. DEF_COMPONENTNAME
  5169. OutOfMemoryError
  5170. DEF_SUPERCLASS
  5171. VirtualMachineError
  5172. DEF_SUPERCOMPONENT
  5173.  
  5174. DEF_PACKAGE
  5175. java
  5176. lang
  5177. DEF_ENDLIST
  5178. DEF_SUBCOMPONENTLIST
  5179. DEF_ENDLIST
  5180. DEF_SUBCOMPONENTCLASSLIST
  5181. DEF_ENDLIST
  5182. DEF_CATEGORY
  5183.  
  5184. DEF_BITMAP
  5185.  
  5186. DEF_THUMBNAIL_UP
  5187.  
  5188. DEF_THUMBNAIL_DOWN
  5189.  
  5190. DEF_BASE
  5191. DEF_IMPORTS
  5192. DEF_ENDLIST
  5193. DEF_REQUIRES
  5194. DEF_ENDLIST
  5195. DEF_IMPLEMENTS
  5196. DEF_ENDLIST
  5197. DEF_DECLARATION
  5198. // Signals that you are out of memory.
  5199. DEF_ENDLIST
  5200. DEF_METHOD
  5201. public OutOfMemoryError()
  5202. //    Constructs an OutOfMemoryError with no detail message.
  5203. // A detail message is a String that describes this particular exception.
  5204. // 
  5205. DEF_ENDLIST
  5206. DEF_METHOD
  5207. public OutOfMemoryError(String s)
  5208. //    Constructs an OutOfMemoryError with the specified detail message.
  5209. // A detail message is a String that describes this particular exception.
  5210. //   
  5211. //      Parameters:
  5212. //      s - the detail message
  5213. //   
  5214. // 
  5215. DEF_ENDLIST
  5216. DEF_ENDCOMPONENT
  5217. DEF_COMPONENTNAME
  5218. Process
  5219. DEF_SUPERCLASS
  5220. Object
  5221. DEF_SUPERCOMPONENT
  5222.  
  5223. DEF_PACKAGE
  5224. java
  5225. lang
  5226. DEF_ENDLIST
  5227. DEF_SUBCOMPONENTLIST
  5228. DEF_ENDLIST
  5229. DEF_SUBCOMPONENTCLASSLIST
  5230. DEF_ENDLIST
  5231. DEF_CATEGORY
  5232.  
  5233. DEF_BITMAP
  5234.  
  5235. DEF_THUMBNAIL_UP
  5236.  
  5237. DEF_THUMBNAIL_DOWN
  5238.  
  5239. DEF_BASE
  5240. DEF_IMPORTS
  5241. DEF_ENDLIST
  5242. DEF_REQUIRES
  5243. DEF_ENDLIST
  5244. DEF_IMPLEMENTS
  5245. DEF_ENDLIST
  5246. DEF_DECLARATION
  5247. // An instance of class Process is returned by variants of the exec ()
  5248. // method in class System.  From the Process instance, it is
  5249. // possible to: get the standin and/or standout of the subprocess,
  5250. // kill the subprocess, wait for it to terminate, and to
  5251. // retrieve the final exit value of the process.
  5252. // 
  5253. // Dropping the last reference to a Process instance does not
  5254. // kill the subprocess.  There is no requirement that the
  5255. // subprocess execute asynchronously with the existing Java process.
  5256. DEF_ENDLIST
  5257. DEF_METHOD
  5258. public Process()
  5259. //    Returns a Stream connected to the input of the child process. 
  5260. // This stream is traditionally buffered.
  5261. // 
  5262. DEF_ENDLIST
  5263. DEF_METHOD
  5264. public abstract InputStream getInputStream()
  5265. //    Returns a Stream connected to the output of the child process. 
  5266. // This stream is traditionally buffered.
  5267. // 
  5268. DEF_ENDLIST
  5269. DEF_METHOD
  5270. public abstract InputStream getErrorStream()
  5271. //    Returns the an InputStream connected to the error stream of the child process. 
  5272. // This stream is traditionally unbuffered.
  5273. // 
  5274. DEF_ENDLIST
  5275. DEF_METHOD
  5276. public abstract int waitFor() throws InterruptedException
  5277. //    Waits for the subprocess to complete.  If the subprocess has
  5278. // already terminated, the exit value is simply returned.  If the
  5279. // subprocess has not yet terminated the calling thread will be
  5280. // blocked until the subprocess exits.
  5281. //   
  5282. //      Throws: InterruptedException
  5283. //      Another thread has interrupted this thread.
  5284. //   
  5285. // 
  5286. DEF_ENDLIST
  5287. DEF_METHOD
  5288. public abstract int exitValue()
  5289. //    Returns the exit value for the subprocess.
  5290. //   
  5291. //      Throws: IllegalThreadStateException
  5292. //      If the subprocess has not yet
  5293. // terminated.
  5294. //   
  5295. // 
  5296. DEF_ENDLIST
  5297. DEF_METHOD
  5298. public abstract void destroy()
  5299. //    Kills the subprocess.
  5300. // 
  5301. DEF_ENDLIST
  5302. DEF_ENDCOMPONENT
  5303. DEF_COMPONENTNAME
  5304. MalformedURLException
  5305. DEF_SUPERCLASS
  5306. IOException
  5307. DEF_SUPERCOMPONENT
  5308.  
  5309. DEF_PACKAGE
  5310. java
  5311. net
  5312. DEF_ENDLIST
  5313. DEF_SUBCOMPONENTLIST
  5314. DEF_ENDLIST
  5315. DEF_SUBCOMPONENTCLASSLIST
  5316. DEF_ENDLIST
  5317. DEF_CATEGORY
  5318.  
  5319. DEF_BITMAP
  5320.  
  5321. DEF_THUMBNAIL_UP
  5322.  
  5323. DEF_THUMBNAIL_DOWN
  5324.  
  5325. DEF_BASE
  5326. DEF_IMPORTS
  5327. java.net.MalformedURLException
  5328. DEF_ENDLIST
  5329. DEF_REQUIRES
  5330. DEF_ENDLIST
  5331. DEF_IMPLEMENTS
  5332. DEF_ENDLIST
  5333. DEF_DECLARATION
  5334. // Signals that a malformed URL has occurred.
  5335. DEF_ENDLIST
  5336. DEF_METHOD
  5337. public MalformedURLException()
  5338. //    Constructs a MalformedURLException with no detail message.  A
  5339. // detail message is a String that describes this particular 
  5340. // exception.
  5341. // 
  5342. DEF_ENDLIST
  5343. DEF_METHOD
  5344. public MalformedURLException(String msg)
  5345. //    Constructs a MalformedURLException with the specified detail 
  5346. // message.  A detail message is a String that describes this 
  5347. // particular exception.
  5348. //   
  5349. //      Parameters:
  5350. //      msg - the detail message
  5351. //   
  5352. // 
  5353. DEF_ENDLIST
  5354. DEF_ENDCOMPONENT
  5355. DEF_COMPONENTNAME
  5356. ProtocolException
  5357. DEF_SUPERCLASS
  5358. IOException
  5359. DEF_SUPERCOMPONENT
  5360.  
  5361. DEF_PACKAGE
  5362. java
  5363. net
  5364. DEF_ENDLIST
  5365. DEF_SUBCOMPONENTLIST
  5366. DEF_ENDLIST
  5367. DEF_SUBCOMPONENTCLASSLIST
  5368. DEF_ENDLIST
  5369. DEF_CATEGORY
  5370.  
  5371. DEF_BITMAP
  5372.  
  5373. DEF_THUMBNAIL_UP
  5374.  
  5375. DEF_THUMBNAIL_DOWN
  5376.  
  5377. DEF_BASE
  5378. DEF_IMPORTS
  5379. java.net.ProtocolException
  5380. DEF_ENDLIST
  5381. DEF_REQUIRES
  5382. DEF_ENDLIST
  5383. DEF_IMPLEMENTS
  5384. DEF_ENDLIST
  5385. DEF_DECLARATION
  5386. // Signals when connect gets an EPROTO.  This exception is specifically
  5387. // caught in class Socket.
  5388. DEF_ENDLIST
  5389. DEF_METHOD
  5390. public ProtocolException(String host)
  5391. //    Constructs a new ProtocolException with the specified detail 
  5392. // message.
  5393. // A detail message is a String that gives a specific description
  5394. // of this error.
  5395. //   
  5396. //      Parameters:
  5397. //      host - the detail message
  5398. //   
  5399. // 
  5400. DEF_ENDLIST
  5401. DEF_METHOD
  5402. public ProtocolException()
  5403. //    Constructs a new ProtocolException with no detail message.
  5404. // A detail message is a String that gives a specific description
  5405. // of this error.
  5406. // 
  5407. DEF_ENDLIST
  5408. DEF_ENDCOMPONENT
  5409. DEF_COMPONENTNAME
  5410. Observable
  5411. DEF_SUPERCLASS
  5412. Object
  5413. DEF_SUPERCOMPONENT
  5414.  
  5415. DEF_PACKAGE
  5416. java
  5417. util
  5418. DEF_ENDLIST
  5419. DEF_SUBCOMPONENTLIST
  5420. DEF_ENDLIST
  5421. DEF_SUBCOMPONENTCLASSLIST
  5422. DEF_ENDLIST
  5423. DEF_CATEGORY
  5424.  
  5425. DEF_BITMAP
  5426.  
  5427. DEF_THUMBNAIL_UP
  5428.  
  5429. DEF_THUMBNAIL_DOWN
  5430.  
  5431. DEF_BASE
  5432. DEF_IMPORTS
  5433. java.util.Observable
  5434. DEF_ENDLIST
  5435. DEF_REQUIRES
  5436. DEF_ENDLIST
  5437. DEF_IMPLEMENTS
  5438. DEF_ENDLIST
  5439. DEF_DECLARATION
  5440. // This class should be subclassed by observable object, or "data"
  5441. // in the Model-View paradigm.  An Observable object may have any
  5442. // number of Observers.  Whenever the Observable instance changes, it
  5443. // notifies all of its observers.  Notification is done by calling
  5444. // the update() method on all observers.
  5445. DEF_ENDLIST
  5446. DEF_METHOD
  5447. public Observable()
  5448. //    Adds an observer to the observer list.
  5449. //   
  5450. //      Parameters:
  5451. //      o - the observer to be added
  5452. //   
  5453. // 
  5454. DEF_ENDLIST
  5455. DEF_METHOD
  5456. public synchronized void deleteObserver(Observer o)
  5457. //    Deletes an observer from the observer list.
  5458. //   
  5459. //      Parameters:
  5460. //      o - the observer to be deleted
  5461. //   
  5462. // 
  5463. DEF_ENDLIST
  5464. DEF_METHOD
  5465. public void notifyObservers()
  5466. //    Notifies all observers if an observable change occurs.
  5467. // 
  5468. DEF_ENDLIST
  5469. DEF_METHOD
  5470. public synchronized void notifyObservers(Object arg)
  5471. //    Notifies all observers of the specified observable change
  5472. // which occurred.
  5473. //   
  5474. //      Parameters:
  5475. //      arg - what is being notified
  5476. //   
  5477. // 
  5478. DEF_ENDLIST
  5479. DEF_METHOD
  5480. public synchronized void deleteObservers()
  5481. //    Deletes observers from the observer list.
  5482. // 
  5483. DEF_ENDLIST
  5484. DEF_METHOD
  5485. protected synchronized void setChanged()
  5486. //    Sets a flag to note an observable change.
  5487. // 
  5488. DEF_ENDLIST
  5489. DEF_METHOD
  5490. protected synchronized void clearChanged()
  5491. //    Clears an observable change.
  5492. // 
  5493. DEF_ENDLIST
  5494. DEF_METHOD
  5495. public synchronized boolean hasChanged()
  5496. //    Returns a true boolean if an observable change has occurred.
  5497. // 
  5498. DEF_ENDLIST
  5499. DEF_METHOD
  5500. public synchronized int countObservers()
  5501. //    Counts the number of observers.
  5502. // 
  5503. DEF_ENDLIST
  5504. DEF_ENDCOMPONENT
  5505. DEF_COMPONENTNAME
  5506. Properties
  5507. DEF_SUPERCLASS
  5508. Hashtable
  5509. DEF_SUPERCOMPONENT
  5510.  
  5511. DEF_PACKAGE
  5512. java
  5513. util
  5514. DEF_ENDLIST
  5515. DEF_SUBCOMPONENTLIST
  5516. DEF_ENDLIST
  5517. DEF_SUBCOMPONENTCLASSLIST
  5518. DEF_ENDLIST
  5519. DEF_CATEGORY
  5520.  
  5521. DEF_BITMAP
  5522.  
  5523. DEF_THUMBNAIL_UP
  5524.  
  5525. DEF_THUMBNAIL_DOWN
  5526.  
  5527. DEF_BASE
  5528. DEF_IMPORTS
  5529. java.util.Properties
  5530. DEF_ENDLIST
  5531. DEF_REQUIRES
  5532. DEF_ENDLIST
  5533. DEF_IMPLEMENTS
  5534. DEF_ENDLIST
  5535. DEF_DECLARATION
  5536. // Persistent properties class. This class is basically a hashtable 
  5537. // that can be saved/loaded from a stream. If a property is not found,
  5538. // a property list containing defaults is searched. This allows
  5539. // arbitrary nesting.
  5540. DEF_ENDLIST
  5541. DEF_METHOD
  5542. public synchronized void load(InputStream in) throws IOException
  5543. //    Loads properties from an InputStream.
  5544. //   
  5545. //      Parameters:
  5546. //      in - the input stream
  5547. //      Throws: IOException
  5548. //      Error when reading from input stream.
  5549. //   
  5550. // 
  5551. DEF_ENDLIST
  5552. DEF_METHOD
  5553. public synchronized void save(OutputStream out,
  5554.                               String header)
  5555. //    Save properties to an OutputStream. Use the header as
  5556. // a comment at the top of the file.
  5557. // 
  5558. DEF_ENDLIST
  5559. DEF_METHOD
  5560. public String getProperty(String key)
  5561. //    Gets a property with the specified key. If the key is not 
  5562. // found in this property list, tries the defaults. This method 
  5563. // returns null if the property is not found.
  5564. //   
  5565. //      Parameters:
  5566. //      key - the hashtable key
  5567. //   
  5568. // 
  5569. DEF_ENDLIST
  5570. DEF_METHOD
  5571. public String getProperty(String key,
  5572.                           String defaultValue)
  5573. //    Gets a property with the specified key and default. If the 
  5574. // key is not found in this property list, tries the defaults. 
  5575. // This method returns defaultValue if the property is not found.
  5576. // 
  5577. DEF_ENDLIST
  5578. DEF_METHOD
  5579. public Enumeration propertyNames()
  5580. //    Enumerates all the keys.
  5581. // 
  5582. DEF_ENDLIST
  5583. DEF_METHOD
  5584. public void list(PrintStream out)
  5585. //    List properties, for debugging
  5586. // 
  5587. DEF_ENDLIST
  5588. DEF_ENDCOMPONENT
  5589. DEF_COMPONENTNAME
  5590. Random
  5591. DEF_SUPERCLASS
  5592. Object
  5593. DEF_SUPERCOMPONENT
  5594.  
  5595. DEF_PACKAGE
  5596. java
  5597. util
  5598. DEF_ENDLIST
  5599. DEF_SUBCOMPONENTLIST
  5600. DEF_ENDLIST
  5601. DEF_SUBCOMPONENTCLASSLIST
  5602. DEF_ENDLIST
  5603. DEF_CATEGORY
  5604.  
  5605. DEF_BITMAP
  5606.  
  5607. DEF_THUMBNAIL_UP
  5608.  
  5609. DEF_THUMBNAIL_DOWN
  5610.  
  5611. DEF_BASE
  5612. DEF_IMPORTS
  5613. java.util.Random
  5614. DEF_ENDLIST
  5615. DEF_REQUIRES
  5616. DEF_ENDLIST
  5617. DEF_IMPLEMENTS
  5618. DEF_ENDLIST
  5619. DEF_DECLARATION
  5620. // A Random class generates a stream of pseudo-random numbers.
  5621. // To create a new random number generator, use one of the following methods:
  5622. // 
  5623. //     new Random()       
  5624. //     new Random(long seed)
  5625. // 
  5626. // The form new Random() initializes the generator
  5627. // to a value based on the current time.  The form 
  5628. // new Random(long seed) seeds the random number generator with
  5629. // a specific initial value;  use this if an application requires a repeatable
  5630. // stream of pseudo-random numbers. 
  5631. // The random number generator uses a 48-bit seed, which is modified using
  5632. // a linear congruential formula. See Donald Knuth, The Art of Computer 
  5633. // Programming, Volume 2, Section 3.2.1.
  5634. // The generator's seed can be reset with the following method:
  5635. // 
  5636. //    setSeed(long seed)
  5637. //  
  5638. // To create a pseudo-random number, use one of the following functions:
  5639. // 
  5640. //    nextInt()
  5641. //    nextLong()
  5642. //    nextFloat()
  5643. //    nextDouble()
  5644. //    nextGaussian()
  5645. // 
  5646. // 
  5647. //      See Also:
  5648. //      random
  5649. // 
  5650. DEF_ENDLIST
  5651. DEF_METHOD
  5652. public Random()
  5653. //    Creates a new random number generator.  Its seed will be 
  5654. // initialized to a value based on the current time.
  5655. // 
  5656. DEF_ENDLIST
  5657. DEF_METHOD
  5658. public Random(long seed)
  5659. //    Creates a new random number generator using a single 
  5660. // long seed.
  5661. //   
  5662. //      Parameters:
  5663. //      seed - the initial seed
  5664. //      See Also:
  5665. //      setSeed
  5666. //   
  5667. // 
  5668. DEF_ENDLIST
  5669. DEF_METHOD
  5670. public synchronized void setSeed(long seed)
  5671. //    Sets the seed of the random number generator using a single 
  5672. // long seed.
  5673. //   
  5674. //      Parameters:
  5675. //      seed - the initial seed
  5676. //   
  5677. // 
  5678. DEF_ENDLIST
  5679. DEF_METHOD
  5680. public int nextInt()
  5681. //    Generates a pseudorandom uniformally distributed 
  5682. // int value.
  5683. //   
  5684. //      Returns:
  5685. //      an integer value.
  5686. //   
  5687. // 
  5688. DEF_ENDLIST
  5689. DEF_METHOD
  5690. public long nextLong()
  5691. //    Generate a pseudorandom uniformally distributed long value.
  5692. //   
  5693. //      Returns:
  5694. //      A long integer value
  5695. //   
  5696. // 
  5697. DEF_ENDLIST
  5698. DEF_METHOD
  5699. public float nextFloat()
  5700. //    Generates a pseudorandom uniformally distributed 
  5701. // float value between 0.0 and 1.0.
  5702. //   
  5703. //      Returns:
  5704. //      a float between 0.0 and 1.0 .
  5705. //   
  5706. // 
  5707. DEF_ENDLIST
  5708. DEF_METHOD
  5709. public double nextDouble()
  5710. //    Generates a pseudorandom uniformally distributed 
  5711. // double value between 0.0 and 1.0.
  5712. //   
  5713. //      Returns:
  5714. //      a float between 0.0 and 1.0 .
  5715. //   
  5716. // 
  5717. DEF_ENDLIST
  5718. DEF_METHOD
  5719. public synchronized double nextGaussian()
  5720. //    Generates a pseudorandom Gaussian distributed 
  5721. // double value with mean 0.0 and standard 
  5722. // deviation 1.0.
  5723. //   
  5724. //      Returns:
  5725. //      a Gaussian distributed double.
  5726. //   
  5727. // 
  5728. DEF_ENDLIST
  5729. DEF_ENDCOMPONENT
  5730.