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 / java3.def < prev    next >
Encoding:
Text File  |  1996-07-02  |  119.4 KB  |  5,546 lines

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