1. /*
  2. * @(#)SynthPainter.java 1.10 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing.plaf.synth;
  8. import java.awt.*;
  9. import javax.swing.*;
  10. /**
  11. * <code>SynthPainter</code> is used for painting portions of
  12. * <code>JComponent</code>s. At a minimum each <code>JComponent</code>
  13. * has two paint methods: one for the border and one for the background. Some
  14. * <code>JComponent</code>s have more than one <code>Region</code>, and as
  15. * a consequence more paint methods.
  16. * <p>
  17. * Instances of <code>SynthPainter</code> are obtained from the
  18. * {@link javax.swing.plaf.synth.SynthStyle#getPainter} method.
  19. * <p>
  20. * You typically supply a <code>SynthPainter</code> by way of Synth's
  21. * <a href="doc-files/synthFileFormat.html">file</a> format. The following
  22. * example registers a painter for all <code>JButton</code>s that will
  23. * render the image <code>myImage.png</code>:
  24. * <pre>
  25. * <style id="buttonStyle">
  26. * <imagePainter path="myImage.png" sourceInsets="2 2 2 2"
  27. * paintCenter="true" stretch="true"/>
  28. * <insets top="2" bottom="2" left="2" right="2"/>
  29. * </style>
  30. * <bind style="buttonStyle" type="REGION" key="button"/>
  31. *</pre>
  32. * <p>
  33. * <code>SynthPainter</code> is abstract in so far as it does no painting,
  34. * all the methods
  35. * are empty. While none of these methods are typed to throw an exception,
  36. * subclasses can assume that valid arguments are passed in, and if not
  37. * they can throw a <code>NullPointerException</code> or
  38. * <code>IllegalArgumentException</code> in response to invalid arguments.
  39. *
  40. * @version 1.10, 12/19/03
  41. * @since 1.5
  42. * @author Scott Violet
  43. */
  44. public abstract class SynthPainter {
  45. /**
  46. * Used to avoid null painter checks everywhere.
  47. */
  48. static SynthPainter NULL_PAINTER = new SynthPainter() {};
  49. /**
  50. * Paints the background of an arrow button. Arrow buttons are created by
  51. * some components, such as <code>JScrollBar</code>.
  52. *
  53. * @param context SynthContext identifying the <code>JComponent</code> and
  54. * <code>Region</code> to paint to
  55. * @param g <code>Graphics</code> to paint to
  56. * @param x X coordinate of the area to paint to
  57. * @param y Y coordinate of the area to paint to
  58. * @param w Width of the area to paint to
  59. * @param h Height of the area to paint to
  60. */
  61. public void paintArrowButtonBackground(SynthContext context,
  62. Graphics g, int x, int y,
  63. int w, int h) {
  64. }
  65. /**
  66. * Paints the border of an arrow button. Arrow buttons are created by
  67. * some components, such as <code>JScrollBar</code>.
  68. *
  69. * @param context SynthContext identifying the <code>JComponent</code> and
  70. * <code>Region</code> to paint to
  71. * @param g <code>Graphics</code> to paint to
  72. * @param x X coordinate of the area to paint to
  73. * @param y Y coordinate of the area to paint to
  74. * @param w Width of the area to paint to
  75. * @param h Height of the area to paint to
  76. */
  77. public void paintArrowButtonBorder(SynthContext context,
  78. Graphics g, int x, int y,
  79. int w, int h) {
  80. }
  81. /**
  82. * Paints the foreground of an arrow button. This method is responsible
  83. * for drawing a graphical representation of a direction, typically
  84. * an arrow. Arrow buttons are created by
  85. * some components, such as <code>JScrollBar</code>
  86. *
  87. * @param context SynthContext identifying the <code>JComponent</code> and
  88. * <code>Region</code> to paint to
  89. * @param g <code>Graphics</code> to paint to
  90. * @param x X coordinate of the area to paint to
  91. * @param y Y coordinate of the area to paint to
  92. * @param w Width of the area to paint to
  93. * @param h Height of the area to paint to
  94. * @param direction One of SwingConstants.NORTH, SwingConstants.SOUTH
  95. * SwingConstants.EAST or SwingConstants.WEST
  96. */
  97. public void paintArrowButtonForeground(SynthContext context,
  98. Graphics g, int x, int y,
  99. int w, int h,
  100. int direction) {
  101. }
  102. /**
  103. * Paints the background of a button.
  104. *
  105. * @param context SynthContext identifying the <code>JComponent</code> and
  106. * <code>Region</code> to paint to
  107. * @param g <code>Graphics</code> to paint to
  108. * @param x X coordinate of the area to paint to
  109. * @param y Y coordinate of the area to paint to
  110. * @param w Width of the area to paint to
  111. * @param h Height of the area to paint to
  112. */
  113. public void paintButtonBackground(SynthContext context,
  114. Graphics g, int x, int y,
  115. int w, int h) {
  116. }
  117. /**
  118. * Paints the border of a button.
  119. *
  120. * @param context SynthContext identifying the <code>JComponent</code> and
  121. * <code>Region</code> to paint to
  122. * @param g <code>Graphics</code> to paint to
  123. * @param x X coordinate of the area to paint to
  124. * @param y Y coordinate of the area to paint to
  125. * @param w Width of the area to paint to
  126. * @param h Height of the area to paint to
  127. */
  128. public void paintButtonBorder(SynthContext context,
  129. Graphics g, int x, int y,
  130. int w, int h) {
  131. }
  132. /**
  133. * Paints the background of a check box menu item.
  134. *
  135. * @param context SynthContext identifying the <code>JComponent</code> and
  136. * <code>Region</code> to paint to
  137. * @param g <code>Graphics</code> to paint to
  138. * @param x X coordinate of the area to paint to
  139. * @param y Y coordinate of the area to paint to
  140. * @param w Width of the area to paint to
  141. * @param h Height of the area to paint to
  142. */
  143. public void paintCheckBoxMenuItemBackground(SynthContext context,
  144. Graphics g, int x, int y,
  145. int w, int h) {
  146. }
  147. /**
  148. * Paints the border of a check box menu item.
  149. *
  150. * @param context SynthContext identifying the <code>JComponent</code> and
  151. * <code>Region</code> to paint to
  152. * @param g <code>Graphics</code> to paint to
  153. * @param x X coordinate of the area to paint to
  154. * @param y Y coordinate of the area to paint to
  155. * @param w Width of the area to paint to
  156. * @param h Height of the area to paint to
  157. */
  158. public void paintCheckBoxMenuItemBorder(SynthContext context,
  159. Graphics g, int x, int y,
  160. int w, int h) {
  161. }
  162. /**
  163. * Paints the background of a check box.
  164. *
  165. * @param context SynthContext identifying the <code>JComponent</code> and
  166. * <code>Region</code> to paint to
  167. * @param g <code>Graphics</code> to paint to
  168. * @param x X coordinate of the area to paint to
  169. * @param y Y coordinate of the area to paint to
  170. * @param w Width of the area to paint to
  171. * @param h Height of the area to paint to
  172. */
  173. public void paintCheckBoxBackground(SynthContext context,
  174. Graphics g, int x, int y,
  175. int w, int h) {
  176. }
  177. /**
  178. * Paints the border of a check box.
  179. *
  180. * @param context SynthContext identifying the <code>JComponent</code> and
  181. * <code>Region</code> to paint to
  182. * @param g <code>Graphics</code> to paint to
  183. * @param x X coordinate of the area to paint to
  184. * @param y Y coordinate of the area to paint to
  185. * @param w Width of the area to paint to
  186. * @param h Height of the area to paint to
  187. */
  188. public void paintCheckBoxBorder(SynthContext context,
  189. Graphics g, int x, int y,
  190. int w, int h) {
  191. }
  192. /**
  193. * Paints the background of a color chooser.
  194. *
  195. * @param context SynthContext identifying the <code>JComponent</code> and
  196. * <code>Region</code> to paint to
  197. * @param g <code>Graphics</code> to paint to
  198. * @param x X coordinate of the area to paint to
  199. * @param y Y coordinate of the area to paint to
  200. * @param w Width of the area to paint to
  201. * @param h Height of the area to paint to
  202. */
  203. public void paintColorChooserBackground(SynthContext context,
  204. Graphics g, int x, int y,
  205. int w, int h) {
  206. }
  207. /**
  208. * Paints the border of a color chooser.
  209. *
  210. * @param context SynthContext identifying the <code>JComponent</code> and
  211. * <code>Region</code> to paint to
  212. * @param g <code>Graphics</code> to paint to
  213. * @param x X coordinate of the area to paint to
  214. * @param y Y coordinate of the area to paint to
  215. * @param w Width of the area to paint to
  216. * @param h Height of the area to paint to
  217. */
  218. public void paintColorChooserBorder(SynthContext context,
  219. Graphics g, int x, int y,
  220. int w, int h) {
  221. }
  222. /**
  223. * Paints the background of a combo box.
  224. *
  225. * @param context SynthContext identifying the <code>JComponent</code> and
  226. * <code>Region</code> to paint to
  227. * @param g <code>Graphics</code> to paint to
  228. * @param x X coordinate of the area to paint to
  229. * @param y Y coordinate of the area to paint to
  230. * @param w Width of the area to paint to
  231. * @param h Height of the area to paint to
  232. */
  233. public void paintComboBoxBackground(SynthContext context,
  234. Graphics g, int x, int y,
  235. int w, int h) {
  236. }
  237. /**
  238. * Paints the border of a combo box.
  239. *
  240. * @param context SynthContext identifying the <code>JComponent</code> and
  241. * <code>Region</code> to paint to
  242. * @param g <code>Graphics</code> to paint to
  243. * @param x X coordinate of the area to paint to
  244. * @param y Y coordinate of the area to paint to
  245. * @param w Width of the area to paint to
  246. * @param h Height of the area to paint to
  247. */
  248. public void paintComboBoxBorder(SynthContext context,
  249. Graphics g, int x, int y,
  250. int w, int h) {
  251. }
  252. /**
  253. * Paints the background of a desktop icon.
  254. *
  255. * @param context SynthContext identifying the <code>JComponent</code> and
  256. * <code>Region</code> to paint to
  257. * @param g <code>Graphics</code> to paint to
  258. * @param x X coordinate of the area to paint to
  259. * @param y Y coordinate of the area to paint to
  260. * @param w Width of the area to paint to
  261. * @param h Height of the area to paint to
  262. */
  263. public void paintDesktopIconBackground(SynthContext context,
  264. Graphics g, int x, int y,
  265. int w, int h) {
  266. }
  267. /**
  268. * Paints the border of a desktop icon.
  269. *
  270. * @param context SynthContext identifying the <code>JComponent</code> and
  271. * <code>Region</code> to paint to
  272. * @param g <code>Graphics</code> to paint to
  273. * @param x X coordinate of the area to paint to
  274. * @param y Y coordinate of the area to paint to
  275. * @param w Width of the area to paint to
  276. * @param h Height of the area to paint to
  277. */
  278. public void paintDesktopIconBorder(SynthContext context,
  279. Graphics g, int x, int y,
  280. int w, int h) {
  281. }
  282. /**
  283. * Paints the background of a desktop pane.
  284. *
  285. * @param context SynthContext identifying the <code>JComponent</code> and
  286. * <code>Region</code> to paint to
  287. * @param g <code>Graphics</code> to paint to
  288. * @param x X coordinate of the area to paint to
  289. * @param y Y coordinate of the area to paint to
  290. * @param w Width of the area to paint to
  291. * @param h Height of the area to paint to
  292. */
  293. public void paintDesktopPaneBackground(SynthContext context,
  294. Graphics g, int x, int y,
  295. int w, int h) {
  296. }
  297. /**
  298. * Paints the background of a desktop pane.
  299. *
  300. * @param context SynthContext identifying the <code>JComponent</code> and
  301. * <code>Region</code> to paint to
  302. * @param g <code>Graphics</code> to paint to
  303. * @param x X coordinate of the area to paint to
  304. * @param y Y coordinate of the area to paint to
  305. * @param w Width of the area to paint to
  306. * @param h Height of the area to paint to
  307. */
  308. public void paintDesktopPaneBorder(SynthContext context,
  309. Graphics g, int x, int y,
  310. int w, int h) {
  311. }
  312. /**
  313. * Paints the background of an editor pane.
  314. *
  315. * @param context SynthContext identifying the <code>JComponent</code> and
  316. * <code>Region</code> to paint to
  317. * @param g <code>Graphics</code> to paint to
  318. * @param x X coordinate of the area to paint to
  319. * @param y Y coordinate of the area to paint to
  320. * @param w Width of the area to paint to
  321. * @param h Height of the area to paint to
  322. */
  323. public void paintEditorPaneBackground(SynthContext context,
  324. Graphics g, int x, int y,
  325. int w, int h) {
  326. }
  327. /**
  328. * Paints the border of an editor pane.
  329. *
  330. * @param context SynthContext identifying the <code>JComponent</code> and
  331. * <code>Region</code> to paint to
  332. * @param g <code>Graphics</code> to paint to
  333. * @param x X coordinate of the area to paint to
  334. * @param y Y coordinate of the area to paint to
  335. * @param w Width of the area to paint to
  336. * @param h Height of the area to paint to
  337. */
  338. public void paintEditorPaneBorder(SynthContext context,
  339. Graphics g, int x, int y,
  340. int w, int h) {
  341. }
  342. /**
  343. * Paints the background of a file chooser.
  344. *
  345. * @param context SynthContext identifying the <code>JComponent</code> and
  346. * <code>Region</code> to paint to
  347. * @param g <code>Graphics</code> to paint to
  348. * @param x X coordinate of the area to paint to
  349. * @param y Y coordinate of the area to paint to
  350. * @param w Width of the area to paint to
  351. * @param h Height of the area to paint to
  352. */
  353. public void paintFileChooserBackground(SynthContext context,
  354. Graphics g, int x, int y,
  355. int w, int h) {
  356. }
  357. /**
  358. * Paints the border of a file chooser.
  359. *
  360. * @param context SynthContext identifying the <code>JComponent</code> and
  361. * <code>Region</code> to paint to
  362. * @param g <code>Graphics</code> to paint to
  363. * @param x X coordinate of the area to paint to
  364. * @param y Y coordinate of the area to paint to
  365. * @param w Width of the area to paint to
  366. * @param h Height of the area to paint to
  367. */
  368. public void paintFileChooserBorder(SynthContext context,
  369. Graphics g, int x, int y,
  370. int w, int h) {
  371. }
  372. /**
  373. * Paints the background of a formatted text field.
  374. *
  375. * @param context SynthContext identifying the <code>JComponent</code> and
  376. * <code>Region</code> to paint to
  377. * @param g <code>Graphics</code> to paint to
  378. * @param x X coordinate of the area to paint to
  379. * @param y Y coordinate of the area to paint to
  380. * @param w Width of the area to paint to
  381. * @param h Height of the area to paint to
  382. */
  383. public void paintFormattedTextFieldBackground(SynthContext context,
  384. Graphics g, int x, int y,
  385. int w, int h) {
  386. }
  387. /**
  388. * Paints the border of a formatted text field.
  389. *
  390. * @param context SynthContext identifying the <code>JComponent</code> and
  391. * <code>Region</code> to paint to
  392. * @param g <code>Graphics</code> to paint to
  393. * @param x X coordinate of the area to paint to
  394. * @param y Y coordinate of the area to paint to
  395. * @param w Width of the area to paint to
  396. * @param h Height of the area to paint to
  397. */
  398. public void paintFormattedTextFieldBorder(SynthContext context,
  399. Graphics g, int x, int y,
  400. int w, int h) {
  401. }
  402. /**
  403. * Paints the background of an internal frame title pane.
  404. *
  405. * @param context SynthContext identifying the <code>JComponent</code> and
  406. * <code>Region</code> to paint to
  407. * @param g <code>Graphics</code> to paint to
  408. * @param x X coordinate of the area to paint to
  409. * @param y Y coordinate of the area to paint to
  410. * @param w Width of the area to paint to
  411. * @param h Height of the area to paint to
  412. */
  413. public void paintInternalFrameTitlePaneBackground(SynthContext context,
  414. Graphics g, int x, int y,
  415. int w, int h) {
  416. }
  417. /**
  418. * Paints the border of an internal frame title pane.
  419. *
  420. * @param context SynthContext identifying the <code>JComponent</code> and
  421. * <code>Region</code> to paint to
  422. * @param g <code>Graphics</code> to paint to
  423. * @param x X coordinate of the area to paint to
  424. * @param y Y coordinate of the area to paint to
  425. * @param w Width of the area to paint to
  426. * @param h Height of the area to paint to
  427. */
  428. public void paintInternalFrameTitlePaneBorder(SynthContext context,
  429. Graphics g, int x, int y,
  430. int w, int h) {
  431. }
  432. /**
  433. * Paints the background of an internal frame.
  434. *
  435. * @param context SynthContext identifying the <code>JComponent</code> and
  436. * <code>Region</code> to paint to
  437. * @param g <code>Graphics</code> to paint to
  438. * @param x X coordinate of the area to paint to
  439. * @param y Y coordinate of the area to paint to
  440. * @param w Width of the area to paint to
  441. * @param h Height of the area to paint to
  442. */
  443. public void paintInternalFrameBackground(SynthContext context,
  444. Graphics g, int x, int y,
  445. int w, int h) {
  446. }
  447. /**
  448. * Paints the border of an internal frame.
  449. *
  450. * @param context SynthContext identifying the <code>JComponent</code> and
  451. * <code>Region</code> to paint to
  452. * @param g <code>Graphics</code> to paint to
  453. * @param x X coordinate of the area to paint to
  454. * @param y Y coordinate of the area to paint to
  455. * @param w Width of the area to paint to
  456. * @param h Height of the area to paint to
  457. */
  458. public void paintInternalFrameBorder(SynthContext context,
  459. Graphics g, int x, int y,
  460. int w, int h) {
  461. }
  462. /**
  463. * Paints the background of a label.
  464. *
  465. * @param context SynthContext identifying the <code>JComponent</code> and
  466. * <code>Region</code> to paint to
  467. * @param g <code>Graphics</code> to paint to
  468. * @param x X coordinate of the area to paint to
  469. * @param y Y coordinate of the area to paint to
  470. * @param w Width of the area to paint to
  471. * @param h Height of the area to paint to
  472. */
  473. public void paintLabelBackground(SynthContext context,
  474. Graphics g, int x, int y,
  475. int w, int h) {
  476. }
  477. /**
  478. * Paints the border of a label.
  479. *
  480. * @param context SynthContext identifying the <code>JComponent</code> and
  481. * <code>Region</code> to paint to
  482. * @param g <code>Graphics</code> to paint to
  483. * @param x X coordinate of the area to paint to
  484. * @param y Y coordinate of the area to paint to
  485. * @param w Width of the area to paint to
  486. * @param h Height of the area to paint to
  487. */
  488. public void paintLabelBorder(SynthContext context,
  489. Graphics g, int x, int y,
  490. int w, int h) {
  491. }
  492. /**
  493. * Paints the background of a list.
  494. *
  495. * @param context SynthContext identifying the <code>JComponent</code> and
  496. * <code>Region</code> to paint to
  497. * @param g <code>Graphics</code> to paint to
  498. * @param x X coordinate of the area to paint to
  499. * @param y Y coordinate of the area to paint to
  500. * @param w Width of the area to paint to
  501. * @param h Height of the area to paint to
  502. */
  503. public void paintListBackground(SynthContext context,
  504. Graphics g, int x, int y,
  505. int w, int h) {
  506. }
  507. /**
  508. * Paints the border of a list.
  509. *
  510. * @param context SynthContext identifying the <code>JComponent</code> and
  511. * <code>Region</code> to paint to
  512. * @param g <code>Graphics</code> to paint to
  513. * @param x X coordinate of the area to paint to
  514. * @param y Y coordinate of the area to paint to
  515. * @param w Width of the area to paint to
  516. * @param h Height of the area to paint to
  517. */
  518. public void paintListBorder(SynthContext context,
  519. Graphics g, int x, int y,
  520. int w, int h) {
  521. }
  522. /**
  523. * Paints the background of a menu bar.
  524. *
  525. * @param context SynthContext identifying the <code>JComponent</code> and
  526. * <code>Region</code> to paint to
  527. * @param g <code>Graphics</code> to paint to
  528. * @param x X coordinate of the area to paint to
  529. * @param y Y coordinate of the area to paint to
  530. * @param w Width of the area to paint to
  531. * @param h Height of the area to paint to
  532. */
  533. public void paintMenuBarBackground(SynthContext context,
  534. Graphics g, int x, int y,
  535. int w, int h) {
  536. }
  537. /**
  538. * Paints the border of a menu bar.
  539. *
  540. * @param context SynthContext identifying the <code>JComponent</code> and
  541. * <code>Region</code> to paint to
  542. * @param g <code>Graphics</code> to paint to
  543. * @param x X coordinate of the area to paint to
  544. * @param y Y coordinate of the area to paint to
  545. * @param w Width of the area to paint to
  546. * @param h Height of the area to paint to
  547. */
  548. public void paintMenuBarBorder(SynthContext context,
  549. Graphics g, int x, int y,
  550. int w, int h) {
  551. }
  552. /**
  553. * Paints the background of a menu item.
  554. *
  555. * @param context SynthContext identifying the <code>JComponent</code> and
  556. * <code>Region</code> to paint to
  557. * @param g <code>Graphics</code> to paint to
  558. * @param x X coordinate of the area to paint to
  559. * @param y Y coordinate of the area to paint to
  560. * @param w Width of the area to paint to
  561. * @param h Height of the area to paint to
  562. */
  563. public void paintMenuItemBackground(SynthContext context,
  564. Graphics g, int x, int y,
  565. int w, int h) {
  566. }
  567. /**
  568. * Paints the border of a menu item.
  569. *
  570. * @param context SynthContext identifying the <code>JComponent</code> and
  571. * <code>Region</code> to paint to
  572. * @param g <code>Graphics</code> to paint to
  573. * @param x X coordinate of the area to paint to
  574. * @param y Y coordinate of the area to paint to
  575. * @param w Width of the area to paint to
  576. * @param h Height of the area to paint to
  577. */
  578. public void paintMenuItemBorder(SynthContext context,
  579. Graphics g, int x, int y,
  580. int w, int h) {
  581. }
  582. /**
  583. * Paints the background of a menu.
  584. *
  585. * @param context SynthContext identifying the <code>JComponent</code> and
  586. * <code>Region</code> to paint to
  587. * @param g <code>Graphics</code> to paint to
  588. * @param x X coordinate of the area to paint to
  589. * @param y Y coordinate of the area to paint to
  590. * @param w Width of the area to paint to
  591. * @param h Height of the area to paint to
  592. */
  593. public void paintMenuBackground(SynthContext context,
  594. Graphics g, int x, int y,
  595. int w, int h) {
  596. }
  597. /**
  598. * Paints the border of a menu.
  599. *
  600. * @param context SynthContext identifying the <code>JComponent</code> and
  601. * <code>Region</code> to paint to
  602. * @param g <code>Graphics</code> to paint to
  603. * @param x X coordinate of the area to paint to
  604. * @param y Y coordinate of the area to paint to
  605. * @param w Width of the area to paint to
  606. * @param h Height of the area to paint to
  607. */
  608. public void paintMenuBorder(SynthContext context,
  609. Graphics g, int x, int y,
  610. int w, int h) {
  611. }
  612. /**
  613. * Paints the background of an option pane.
  614. *
  615. * @param context SynthContext identifying the <code>JComponent</code> and
  616. * <code>Region</code> to paint to
  617. * @param g <code>Graphics</code> to paint to
  618. * @param x X coordinate of the area to paint to
  619. * @param y Y coordinate of the area to paint to
  620. * @param w Width of the area to paint to
  621. * @param h Height of the area to paint to
  622. */
  623. public void paintOptionPaneBackground(SynthContext context,
  624. Graphics g, int x, int y,
  625. int w, int h) {
  626. }
  627. /**
  628. * Paints the border of an option pane.
  629. *
  630. * @param context SynthContext identifying the <code>JComponent</code> and
  631. * <code>Region</code> to paint to
  632. * @param g <code>Graphics</code> to paint to
  633. * @param x X coordinate of the area to paint to
  634. * @param y Y coordinate of the area to paint to
  635. * @param w Width of the area to paint to
  636. * @param h Height of the area to paint to
  637. */
  638. public void paintOptionPaneBorder(SynthContext context,
  639. Graphics g, int x, int y,
  640. int w, int h) {
  641. }
  642. /**
  643. * Paints the background of a panel.
  644. *
  645. * @param context SynthContext identifying the <code>JComponent</code> and
  646. * <code>Region</code> to paint to
  647. * @param g <code>Graphics</code> to paint to
  648. * @param x X coordinate of the area to paint to
  649. * @param y Y coordinate of the area to paint to
  650. * @param w Width of the area to paint to
  651. * @param h Height of the area to paint to
  652. */
  653. public void paintPanelBackground(SynthContext context,
  654. Graphics g, int x, int y,
  655. int w, int h) {
  656. }
  657. /**
  658. * Paints the border of a panel.
  659. *
  660. * @param context SynthContext identifying the <code>JComponent</code> and
  661. * <code>Region</code> to paint to
  662. * @param g <code>Graphics</code> to paint to
  663. * @param x X coordinate of the area to paint to
  664. * @param y Y coordinate of the area to paint to
  665. * @param w Width of the area to paint to
  666. * @param h Height of the area to paint to
  667. */
  668. public void paintPanelBorder(SynthContext context,
  669. Graphics g, int x, int y,
  670. int w, int h) {
  671. }
  672. /**
  673. * Paints the background of a password field.
  674. *
  675. * @param context SynthContext identifying the <code>JComponent</code> and
  676. * <code>Region</code> to paint to
  677. * @param g <code>Graphics</code> to paint to
  678. * @param x X coordinate of the area to paint to
  679. * @param y Y coordinate of the area to paint to
  680. * @param w Width of the area to paint to
  681. * @param h Height of the area to paint to
  682. */
  683. public void paintPasswordFieldBackground(SynthContext context,
  684. Graphics g, int x, int y,
  685. int w, int h) {
  686. }
  687. /**
  688. * Paints the border of a password field.
  689. *
  690. * @param context SynthContext identifying the <code>JComponent</code> and
  691. * <code>Region</code> to paint to
  692. * @param g <code>Graphics</code> to paint to
  693. * @param x X coordinate of the area to paint to
  694. * @param y Y coordinate of the area to paint to
  695. * @param w Width of the area to paint to
  696. * @param h Height of the area to paint to
  697. */
  698. public void paintPasswordFieldBorder(SynthContext context,
  699. Graphics g, int x, int y,
  700. int w, int h) {
  701. }
  702. /**
  703. * Paints the background of a popup menu.
  704. *
  705. * @param context SynthContext identifying the <code>JComponent</code> and
  706. * <code>Region</code> to paint to
  707. * @param g <code>Graphics</code> to paint to
  708. * @param x X coordinate of the area to paint to
  709. * @param y Y coordinate of the area to paint to
  710. * @param w Width of the area to paint to
  711. * @param h Height of the area to paint to
  712. */
  713. public void paintPopupMenuBackground(SynthContext context,
  714. Graphics g, int x, int y,
  715. int w, int h) {
  716. }
  717. /**
  718. * Paints the border of a popup menu.
  719. *
  720. * @param context SynthContext identifying the <code>JComponent</code> and
  721. * <code>Region</code> to paint to
  722. * @param g <code>Graphics</code> to paint to
  723. * @param x X coordinate of the area to paint to
  724. * @param y Y coordinate of the area to paint to
  725. * @param w Width of the area to paint to
  726. * @param h Height of the area to paint to
  727. */
  728. public void paintPopupMenuBorder(SynthContext context,
  729. Graphics g, int x, int y,
  730. int w, int h) {
  731. }
  732. /**
  733. * Paints the background of a progress bar.
  734. *
  735. * @param context SynthContext identifying the <code>JComponent</code> and
  736. * <code>Region</code> to paint to
  737. * @param g <code>Graphics</code> to paint to
  738. * @param x X coordinate of the area to paint to
  739. * @param y Y coordinate of the area to paint to
  740. * @param w Width of the area to paint to
  741. * @param h Height of the area to paint to
  742. */
  743. public void paintProgressBarBackground(SynthContext context,
  744. Graphics g, int x, int y,
  745. int w, int h) {
  746. }
  747. /**
  748. * Paints the border of a progress bar.
  749. *
  750. * @param context SynthContext identifying the <code>JComponent</code> and
  751. * <code>Region</code> to paint to
  752. * @param g <code>Graphics</code> to paint to
  753. * @param x X coordinate of the area to paint to
  754. * @param y Y coordinate of the area to paint to
  755. * @param w Width of the area to paint to
  756. * @param h Height of the area to paint to
  757. */
  758. public void paintProgressBarBorder(SynthContext context,
  759. Graphics g, int x, int y,
  760. int w, int h) {
  761. }
  762. /**
  763. * Paints the foreground of a progress bar. This is responsible for
  764. * providing an indication of the progress of the progress bar.
  765. *
  766. * @param context SynthContext identifying the <code>JComponent</code> and
  767. * <code>Region</code> to paint to
  768. * @param g <code>Graphics</code> to paint to
  769. * @param x X coordinate of the area to paint to
  770. * @param y Y coordinate of the area to paint to
  771. * @param w Width of the area to paint to
  772. * @param h Height of the area to paint to
  773. * @param orientation one of <code>JProgressBar.HORIZONTAL</code> or
  774. * <code>JProgressBar.VERTICAL</code>
  775. */
  776. public void paintProgressBarForeground(SynthContext context,
  777. Graphics g, int x, int y,
  778. int w, int h, int orientation) {
  779. }
  780. /**
  781. * Paints the background of a radio button menu item.
  782. *
  783. * @param context SynthContext identifying the <code>JComponent</code> and
  784. * <code>Region</code> to paint to
  785. * @param g <code>Graphics</code> to paint to
  786. * @param x X coordinate of the area to paint to
  787. * @param y Y coordinate of the area to paint to
  788. * @param w Width of the area to paint to
  789. * @param h Height of the area to paint to
  790. */
  791. public void paintRadioButtonMenuItemBackground(SynthContext context,
  792. Graphics g, int x, int y,
  793. int w, int h) {
  794. }
  795. /**
  796. * Paints the border of a radio button menu item.
  797. *
  798. * @param context SynthContext identifying the <code>JComponent</code> and
  799. * <code>Region</code> to paint to
  800. * @param g <code>Graphics</code> to paint to
  801. * @param x X coordinate of the area to paint to
  802. * @param y Y coordinate of the area to paint to
  803. * @param w Width of the area to paint to
  804. * @param h Height of the area to paint to
  805. */
  806. public void paintRadioButtonMenuItemBorder(SynthContext context,
  807. Graphics g, int x, int y,
  808. int w, int h) {
  809. }
  810. /**
  811. * Paints the background of a radio button.
  812. *
  813. * @param context SynthContext identifying the <code>JComponent</code> and
  814. * <code>Region</code> to paint to
  815. * @param g <code>Graphics</code> to paint to
  816. * @param x X coordinate of the area to paint to
  817. * @param y Y coordinate of the area to paint to
  818. * @param w Width of the area to paint to
  819. * @param h Height of the area to paint to
  820. */
  821. public void paintRadioButtonBackground(SynthContext context,
  822. Graphics g, int x, int y,
  823. int w, int h) {
  824. }
  825. /**
  826. * Paints the border of a radio button.
  827. *
  828. * @param context SynthContext identifying the <code>JComponent</code> and
  829. * <code>Region</code> to paint to
  830. * @param g <code>Graphics</code> to paint to
  831. * @param x X coordinate of the area to paint to
  832. * @param y Y coordinate of the area to paint to
  833. * @param w Width of the area to paint to
  834. * @param h Height of the area to paint to
  835. */
  836. public void paintRadioButtonBorder(SynthContext context,
  837. Graphics g, int x, int y,
  838. int w, int h) {
  839. }
  840. /**
  841. * Paints the background of a root pane.
  842. *
  843. * @param context SynthContext identifying the <code>JComponent</code> and
  844. * <code>Region</code> to paint to
  845. * @param g <code>Graphics</code> to paint to
  846. * @param x X coordinate of the area to paint to
  847. * @param y Y coordinate of the area to paint to
  848. * @param w Width of the area to paint to
  849. * @param h Height of the area to paint to
  850. */
  851. public void paintRootPaneBackground(SynthContext context,
  852. Graphics g, int x, int y,
  853. int w, int h) {
  854. }
  855. /**
  856. * Paints the border of a root pane.
  857. *
  858. * @param context SynthContext identifying the <code>JComponent</code> and
  859. * <code>Region</code> to paint to
  860. * @param g <code>Graphics</code> to paint to
  861. * @param x X coordinate of the area to paint to
  862. * @param y Y coordinate of the area to paint to
  863. * @param w Width of the area to paint to
  864. * @param h Height of the area to paint to
  865. */
  866. public void paintRootPaneBorder(SynthContext context,
  867. Graphics g, int x, int y,
  868. int w, int h) {
  869. }
  870. /**
  871. * Paints the background of a scrollbar.
  872. *
  873. * @param context SynthContext identifying the <code>JComponent</code> and
  874. * <code>Region</code> to paint to
  875. * @param g <code>Graphics</code> to paint to
  876. * @param x X coordinate of the area to paint to
  877. * @param y Y coordinate of the area to paint to
  878. * @param w Width of the area to paint to
  879. * @param h Height of the area to paint to
  880. */
  881. public void paintScrollBarBackground(SynthContext context,
  882. Graphics g, int x, int y,
  883. int w, int h) {
  884. }
  885. /**
  886. * Paints the border of a scrollbar.
  887. *
  888. * @param context SynthContext identifying the <code>JComponent</code> and
  889. * <code>Region</code> to paint to
  890. * @param g <code>Graphics</code> to paint to
  891. * @param x X coordinate of the area to paint to
  892. * @param y Y coordinate of the area to paint to
  893. * @param w Width of the area to paint to
  894. * @param h Height of the area to paint to
  895. */
  896. public void paintScrollBarBorder(SynthContext context,
  897. Graphics g, int x, int y,
  898. int w, int h) {
  899. }
  900. /**
  901. * Paints the background of the thumb of a scrollbar. The thumb provides
  902. * a graphical indication as to how much of the Component is visible in a
  903. * <code>JScrollPane</code>.
  904. *
  905. * @param context SynthContext identifying the <code>JComponent</code> and
  906. * <code>Region</code> to paint to
  907. * @param g <code>Graphics</code> to paint to
  908. * @param x X coordinate of the area to paint to
  909. * @param y Y coordinate of the area to paint to
  910. * @param w Width of the area to paint to
  911. * @param h Height of the area to paint to
  912. * @param orientation Orientation of the JScrollBar, one of
  913. * <code>JScrollBar.HORIZONTAL</code> or
  914. * <code>JScrollBar.VERTICAL</code>
  915. */
  916. public void paintScrollBarThumbBackground(SynthContext context,
  917. Graphics g, int x, int y,
  918. int w, int h, int orientation) {
  919. }
  920. /**
  921. * Paints the border of the thumb of a scrollbar. The thumb provides
  922. * a graphical indication as to how much of the Component is visible in a
  923. * <code>JScrollPane</code>.
  924. *
  925. * @param context SynthContext identifying the <code>JComponent</code> and
  926. * <code>Region</code> to paint to
  927. * @param g <code>Graphics</code> to paint to
  928. * @param x X coordinate of the area to paint to
  929. * @param y Y coordinate of the area to paint to
  930. * @param w Width of the area to paint to
  931. * @param h Height of the area to paint to
  932. * @param orientation Orientation of the JScrollBar, one of
  933. * <code>JScrollBar.HORIZONTAL</code> or
  934. * <code>JScrollBar.VERTICAL</code>
  935. */
  936. public void paintScrollBarThumbBorder(SynthContext context,
  937. Graphics g, int x, int y,
  938. int w, int h, int orientation) {
  939. }
  940. /**
  941. * Paints the background of the track of a scrollbar. The track contains
  942. * the thumb.
  943. *
  944. * @param context SynthContext identifying the <code>JComponent</code> and
  945. * <code>Region</code> to paint to
  946. * @param g <code>Graphics</code> to paint to
  947. * @param x X coordinate of the area to paint to
  948. * @param y Y coordinate of the area to paint to
  949. * @param w Width of the area to paint to
  950. * @param h Height of the area to paint to
  951. */
  952. public void paintScrollBarTrackBackground(SynthContext context,
  953. Graphics g, int x, int y,
  954. int w, int h) {
  955. }
  956. /**
  957. * Paints the border of the track of a scrollbar. The track contains
  958. * the thumb.
  959. *
  960. * @param context SynthContext identifying the <code>JComponent</code> and
  961. * <code>Region</code> to paint to
  962. * @param g <code>Graphics</code> to paint to
  963. * @param x X coordinate of the area to paint to
  964. * @param y Y coordinate of the area to paint to
  965. * @param w Width of the area to paint to
  966. * @param h Height of the area to paint to
  967. */
  968. public void paintScrollBarTrackBorder(SynthContext context,
  969. Graphics g, int x, int y,
  970. int w, int h) {
  971. }
  972. /**
  973. * Paints the background of a scroll pane.
  974. *
  975. * @param context SynthContext identifying the <code>JComponent</code> and
  976. * <code>Region</code> to paint to
  977. * @param g <code>Graphics</code> to paint to
  978. * @param x X coordinate of the area to paint to
  979. * @param y Y coordinate of the area to paint to
  980. * @param w Width of the area to paint to
  981. * @param h Height of the area to paint to
  982. */
  983. public void paintScrollPaneBackground(SynthContext context,
  984. Graphics g, int x, int y,
  985. int w, int h) {
  986. }
  987. /**
  988. * Paints the border of a scroll pane.
  989. *
  990. * @param context SynthContext identifying the <code>JComponent</code> and
  991. * <code>Region</code> to paint to
  992. * @param g <code>Graphics</code> to paint to
  993. * @param x X coordinate of the area to paint to
  994. * @param y Y coordinate of the area to paint to
  995. * @param w Width of the area to paint to
  996. * @param h Height of the area to paint to
  997. */
  998. public void paintScrollPaneBorder(SynthContext context,
  999. Graphics g, int x, int y,
  1000. int w, int h) {
  1001. }
  1002. /**
  1003. * Paints the background of a separator.
  1004. *
  1005. * @param context SynthContext identifying the <code>JComponent</code> and
  1006. * <code>Region</code> to paint to
  1007. * @param g <code>Graphics</code> to paint to
  1008. * @param x X coordinate of the area to paint to
  1009. * @param y Y coordinate of the area to paint to
  1010. * @param w Width of the area to paint to
  1011. * @param h Height of the area to paint to
  1012. */
  1013. public void paintSeparatorBackground(SynthContext context,
  1014. Graphics g, int x, int y,
  1015. int w, int h) {
  1016. }
  1017. /**
  1018. * Paints the border of a separator.
  1019. *
  1020. * @param context SynthContext identifying the <code>JComponent</code> and
  1021. * <code>Region</code> to paint to
  1022. * @param g <code>Graphics</code> to paint to
  1023. * @param x X coordinate of the area to paint to
  1024. * @param y Y coordinate of the area to paint to
  1025. * @param w Width of the area to paint to
  1026. * @param h Height of the area to paint to
  1027. */
  1028. public void paintSeparatorBorder(SynthContext context,
  1029. Graphics g, int x, int y,
  1030. int w, int h) {
  1031. }
  1032. /**
  1033. * Paints the foreground of a separator.
  1034. *
  1035. * @param context SynthContext identifying the <code>JComponent</code> and
  1036. * <code>Region</code> to paint to
  1037. * @param g <code>Graphics</code> to paint to
  1038. * @param x X coordinate of the area to paint to
  1039. * @param y Y coordinate of the area to paint to
  1040. * @param w Width of the area to paint to
  1041. * @param h Height of the area to paint to
  1042. * @param orientation One of <code>JSeparator.HORIZONTAL</code> or
  1043. * <code>JSeparator.VERTICAL</code>
  1044. */
  1045. public void paintSeparatorForeground(SynthContext context,
  1046. Graphics g, int x, int y,
  1047. int w, int h, int orientation) {
  1048. }
  1049. /**
  1050. * Paints the background of a slider.
  1051. *
  1052. * @param context SynthContext identifying the <code>JComponent</code> and
  1053. * <code>Region</code> to paint to
  1054. * @param g <code>Graphics</code> to paint to
  1055. * @param x X coordinate of the area to paint to
  1056. * @param y Y coordinate of the area to paint to
  1057. * @param w Width of the area to paint to
  1058. * @param h Height of the area to paint to
  1059. */
  1060. public void paintSliderBackground(SynthContext context,
  1061. Graphics g, int x, int y,
  1062. int w, int h) {
  1063. }
  1064. /**
  1065. * Paints the border of a slider.
  1066. *
  1067. * @param context SynthContext identifying the <code>JComponent</code> and
  1068. * <code>Region</code> to paint to
  1069. * @param g <code>Graphics</code> to paint to
  1070. * @param x X coordinate of the area to paint to
  1071. * @param y Y coordinate of the area to paint to
  1072. * @param w Width of the area to paint to
  1073. * @param h Height of the area to paint to
  1074. */
  1075. public void paintSliderBorder(SynthContext context,
  1076. Graphics g, int x, int y,
  1077. int w, int h) {
  1078. }
  1079. /**
  1080. * Paints the background of the thumb of a slider.
  1081. *
  1082. * @param context SynthContext identifying the <code>JComponent</code> and
  1083. * <code>Region</code> to paint to
  1084. * @param g <code>Graphics</code> to paint to
  1085. * @param x X coordinate of the area to paint to
  1086. * @param y Y coordinate of the area to paint to
  1087. * @param w Width of the area to paint to
  1088. * @param h Height of the area to paint to
  1089. * @param orientation One of <code>JSlider.HORIZONTAL</code> or
  1090. * <code>JSlider.VERTICAL</code>
  1091. */
  1092. public void paintSliderThumbBackground(SynthContext context,
  1093. Graphics g, int x, int y,
  1094. int w, int h, int orientation) {
  1095. }
  1096. /**
  1097. * Paints the border of the thumb of a slider.
  1098. *
  1099. * @param context SynthContext identifying the <code>JComponent</code> and
  1100. * <code>Region</code> to paint to
  1101. * @param g <code>Graphics</code> to paint to
  1102. * @param x X coordinate of the area to paint to
  1103. * @param y Y coordinate of the area to paint to
  1104. * @param w Width of the area to paint to
  1105. * @param h Height of the area to paint to
  1106. * @param orientation One of <code>JSlider.HORIZONTAL</code> or
  1107. * <code>JSlider.VERTICAL</code>
  1108. */
  1109. public void paintSliderThumbBorder(SynthContext context,
  1110. Graphics g, int x, int y,
  1111. int w, int h, int orientation) {
  1112. }
  1113. /**
  1114. * Paints the background of the track of a slider.
  1115. *
  1116. * @param context SynthContext identifying the <code>JComponent</code> and
  1117. * <code>Region</code> to paint to
  1118. * @param g <code>Graphics</code> to paint to
  1119. * @param x X coordinate of the area to paint to
  1120. * @param y Y coordinate of the area to paint to
  1121. * @param w Width of the area to paint to
  1122. * @param h Height of the area to paint to
  1123. */
  1124. public void paintSliderTrackBackground(SynthContext context,
  1125. Graphics g, int x, int y,
  1126. int w, int h) {
  1127. }
  1128. /**
  1129. * Paints the border of the track of a slider.
  1130. *
  1131. * @param context SynthContext identifying the <code>JComponent</code> and
  1132. * <code>Region</code> to paint to
  1133. * @param g <code>Graphics</code> to paint to
  1134. * @param x X coordinate of the area to paint to
  1135. * @param y Y coordinate of the area to paint to
  1136. * @param w Width of the area to paint to
  1137. * @param h Height of the area to paint to
  1138. */
  1139. public void paintSliderTrackBorder(SynthContext context,
  1140. Graphics g, int x, int y,
  1141. int w, int h) {
  1142. }
  1143. /**
  1144. * Paints the background of a spinner.
  1145. *
  1146. * @param context SynthContext identifying the <code>JComponent</code> and
  1147. * <code>Region</code> to paint to
  1148. * @param g <code>Graphics</code> to paint to
  1149. * @param x X coordinate of the area to paint to
  1150. * @param y Y coordinate of the area to paint to
  1151. * @param w Width of the area to paint to
  1152. * @param h Height of the area to paint to
  1153. */
  1154. public void paintSpinnerBackground(SynthContext context,
  1155. Graphics g, int x, int y,
  1156. int w, int h) {
  1157. }
  1158. /**
  1159. * Paints the border of a spinner.
  1160. *
  1161. * @param context SynthContext identifying the <code>JComponent</code> and
  1162. * <code>Region</code> to paint to
  1163. * @param g <code>Graphics</code> to paint to
  1164. * @param x X coordinate of the area to paint to
  1165. * @param y Y coordinate of the area to paint to
  1166. * @param w Width of the area to paint to
  1167. * @param h Height of the area to paint to
  1168. */
  1169. public void paintSpinnerBorder(SynthContext context,
  1170. Graphics g, int x, int y,
  1171. int w, int h) {
  1172. }
  1173. /**
  1174. * Paints the background of the divider of a split pane.
  1175. *
  1176. * @param context SynthContext identifying the <code>JComponent</code> and
  1177. * <code>Region</code> to paint to
  1178. * @param g <code>Graphics</code> to paint to
  1179. * @param x X coordinate of the area to paint to
  1180. * @param y Y coordinate of the area to paint to
  1181. * @param w Width of the area to paint to
  1182. * @param h Height of the area to paint to
  1183. */
  1184. public void paintSplitPaneDividerBackground(SynthContext context,
  1185. Graphics g, int x, int y,
  1186. int w, int h) {
  1187. }
  1188. /**
  1189. * Paints the foreground of the divider of a split pane.
  1190. *
  1191. * @param context SynthContext identifying the <code>JComponent</code> and
  1192. * <code>Region</code> to paint to
  1193. * @param g <code>Graphics</code> to paint to
  1194. * @param x X coordinate of the area to paint to
  1195. * @param y Y coordinate of the area to paint to
  1196. * @param w Width of the area to paint to
  1197. * @param h Height of the area to paint to
  1198. * @param orientation One of <code>JSplitPane.HORIZONTAL_SPLIT</code> or
  1199. * <code>JSplitPane.VERTICAL_SPLIT</code>
  1200. */
  1201. public void paintSplitPaneDividerForeground(SynthContext context,
  1202. Graphics g, int x, int y,
  1203. int w, int h, int orientation) {
  1204. }
  1205. /**
  1206. * Paints the divider, when the user is dragging the divider, of a
  1207. * split pane.
  1208. *
  1209. * @param context SynthContext identifying the <code>JComponent</code> and
  1210. * <code>Region</code> to paint to
  1211. * @param g <code>Graphics</code> to paint to
  1212. * @param x X coordinate of the area to paint to
  1213. * @param y Y coordinate of the area to paint to
  1214. * @param w Width of the area to paint to
  1215. * @param h Height of the area to paint to
  1216. * @param orientation One of <code>JSplitPane.HORIZONTAL_SPLIT</code> or
  1217. * <code>JSplitPane.VERTICAL_SPLIT</code>
  1218. */
  1219. public void paintSplitPaneDragDivider(SynthContext context,
  1220. Graphics g, int x, int y,
  1221. int w, int h, int orientation) {
  1222. }
  1223. /**
  1224. * Paints the background of a split pane.
  1225. *
  1226. * @param context SynthContext identifying the <code>JComponent</code> and
  1227. * <code>Region</code> to paint to
  1228. * @param g <code>Graphics</code> to paint to
  1229. * @param x X coordinate of the area to paint to
  1230. * @param y Y coordinate of the area to paint to
  1231. * @param w Width of the area to paint to
  1232. * @param h Height of the area to paint to
  1233. */
  1234. public void paintSplitPaneBackground(SynthContext context,
  1235. Graphics g, int x, int y,
  1236. int w, int h) {
  1237. }
  1238. /**
  1239. * Paints the border of a split pane.
  1240. *
  1241. * @param context SynthContext identifying the <code>JComponent</code> and
  1242. * <code>Region</code> to paint to
  1243. * @param g <code>Graphics</code> to paint to
  1244. * @param x X coordinate of the area to paint to
  1245. * @param y Y coordinate of the area to paint to
  1246. * @param w Width of the area to paint to
  1247. * @param h Height of the area to paint to
  1248. */
  1249. public void paintSplitPaneBorder(SynthContext context,
  1250. Graphics g, int x, int y,
  1251. int w, int h) {
  1252. }
  1253. /**
  1254. * Paints the background of a tabbed pane.
  1255. *
  1256. * @param context SynthContext identifying the <code>JComponent</code> and
  1257. * <code>Region</code> to paint to
  1258. * @param g <code>Graphics</code> to paint to
  1259. * @param x X coordinate of the area to paint to
  1260. * @param y Y coordinate of the area to paint to
  1261. * @param w Width of the area to paint to
  1262. * @param h Height of the area to paint to
  1263. */
  1264. public void paintTabbedPaneBackground(SynthContext context,
  1265. Graphics g, int x, int y,
  1266. int w, int h) {
  1267. }
  1268. /**
  1269. * Paints the border of a tabbed pane.
  1270. *
  1271. * @param context SynthContext identifying the <code>JComponent</code> and
  1272. * <code>Region</code> to paint to
  1273. * @param g <code>Graphics</code> to paint to
  1274. * @param x X coordinate of the area to paint to
  1275. * @param y Y coordinate of the area to paint to
  1276. * @param w Width of the area to paint to
  1277. * @param h Height of the area to paint to
  1278. */
  1279. public void paintTabbedPaneBorder(SynthContext context,
  1280. Graphics g, int x, int y,
  1281. int w, int h) {
  1282. }
  1283. /**
  1284. * Paints the background of the area behind the tabs of a tabbed pane.
  1285. *
  1286. * @param context SynthContext identifying the <code>JComponent</code> and
  1287. * <code>Region</code> to paint to
  1288. * @param g <code>Graphics</code> to paint to
  1289. * @param x X coordinate of the area to paint to
  1290. * @param y Y coordinate of the area to paint to
  1291. * @param w Width of the area to paint to
  1292. * @param h Height of the area to paint to
  1293. */
  1294. public void paintTabbedPaneTabAreaBackground(SynthContext context,
  1295. Graphics g, int x, int y,
  1296. int w, int h) {
  1297. }
  1298. /**
  1299. * Paints the border of the area behind the tabs of a tabbed pane.
  1300. *
  1301. * @param context SynthContext identifying the <code>JComponent</code> and
  1302. * <code>Region</code> to paint to
  1303. * @param g <code>Graphics</code> to paint to
  1304. * @param x X coordinate of the area to paint to
  1305. * @param y Y coordinate of the area to paint to
  1306. * @param w Width of the area to paint to
  1307. * @param h Height of the area to paint to
  1308. */
  1309. public void paintTabbedPaneTabAreaBorder(SynthContext context,
  1310. Graphics g, int x, int y,
  1311. int w, int h) {
  1312. }
  1313. /**
  1314. * Paints the background of a tab of a tabbed pane.
  1315. *
  1316. * @param context SynthContext identifying the <code>JComponent</code> and
  1317. * <code>Region</code> to paint to
  1318. * @param g <code>Graphics</code> to paint to
  1319. * @param x X coordinate of the area to paint to
  1320. * @param y Y coordinate of the area to paint to
  1321. * @param w Width of the area to paint to
  1322. * @param h Height of the area to paint to
  1323. * @param tabIndex Index of tab being painted.
  1324. */
  1325. public void paintTabbedPaneTabBackground(SynthContext context, Graphics g,
  1326. int x, int y, int w, int h,
  1327. int tabIndex) {
  1328. }
  1329. /**
  1330. * Paints the border of a tab of a tabbed pane.
  1331. *
  1332. * @param context SynthContext identifying the <code>JComponent</code> and
  1333. * <code>Region</code> to paint to
  1334. * @param g <code>Graphics</code> to paint to
  1335. * @param x X coordinate of the area to paint to
  1336. * @param y Y coordinate of the area to paint to
  1337. * @param w Width of the area to paint to
  1338. * @param h Height of the area to paint to
  1339. * @param tabIndex Index of tab being painted.
  1340. */
  1341. public void paintTabbedPaneTabBorder(SynthContext context, Graphics g,
  1342. int x, int y, int w, int h,
  1343. int tabIndex) {
  1344. }
  1345. /**
  1346. * Paints the background of the area that contains the content of the
  1347. * selected tab of a tabbed pane.
  1348. *
  1349. * @param context SynthContext identifying the <code>JComponent</code> and
  1350. * <code>Region</code> to paint to
  1351. * @param g <code>Graphics</code> to paint to
  1352. * @param x X coordinate of the area to paint to
  1353. * @param y Y coordinate of the area to paint to
  1354. * @param w Width of the area to paint to
  1355. * @param h Height of the area to paint to
  1356. */
  1357. public void paintTabbedPaneContentBackground(SynthContext context,
  1358. Graphics g, int x, int y, int w,
  1359. int h) {
  1360. }
  1361. /**
  1362. * Paints the border of the area that contains the content of the
  1363. * selected tab of a tabbed pane.
  1364. *
  1365. * @param context SynthContext identifying the <code>JComponent</code> and
  1366. * <code>Region</code> to paint to
  1367. * @param g <code>Graphics</code> to paint to
  1368. * @param x X coordinate of the area to paint to
  1369. * @param y Y coordinate of the area to paint to
  1370. * @param w Width of the area to paint to
  1371. * @param h Height of the area to paint to
  1372. */
  1373. public void paintTabbedPaneContentBorder(SynthContext context, Graphics g,
  1374. int x, int y, int w, int h) {
  1375. }
  1376. /**
  1377. * Paints the background of the header of a table.
  1378. *
  1379. * @param context SynthContext identifying the <code>JComponent</code> and
  1380. * <code>Region</code> to paint to
  1381. * @param g <code>Graphics</code> to paint to
  1382. * @param x X coordinate of the area to paint to
  1383. * @param y Y coordinate of the area to paint to
  1384. * @param w Width of the area to paint to
  1385. * @param h Height of the area to paint to
  1386. */
  1387. public void paintTableHeaderBackground(SynthContext context,
  1388. Graphics g, int x, int y,
  1389. int w, int h) {
  1390. }
  1391. /**
  1392. * Paints the border of the header of a table.
  1393. *
  1394. * @param context SynthContext identifying the <code>JComponent</code> and
  1395. * <code>Region</code> to paint to
  1396. * @param g <code>Graphics</code> to paint to
  1397. * @param x X coordinate of the area to paint to
  1398. * @param y Y coordinate of the area to paint to
  1399. * @param w Width of the area to paint to
  1400. * @param h Height of the area to paint to
  1401. */
  1402. public void paintTableHeaderBorder(SynthContext context,
  1403. Graphics g, int x, int y,
  1404. int w, int h) {
  1405. }
  1406. /**
  1407. * Paints the background of a table.
  1408. *
  1409. * @param context SynthContext identifying the <code>JComponent</code> and
  1410. * <code>Region</code> to paint to
  1411. * @param g <code>Graphics</code> to paint to
  1412. * @param x X coordinate of the area to paint to
  1413. * @param y Y coordinate of the area to paint to
  1414. * @param w Width of the area to paint to
  1415. * @param h Height of the area to paint to
  1416. */
  1417. public void paintTableBackground(SynthContext context,
  1418. Graphics g, int x, int y,
  1419. int w, int h) {
  1420. }
  1421. /**
  1422. * Paints the border of a table.
  1423. *
  1424. * @param context SynthContext identifying the <code>JComponent</code> and
  1425. * <code>Region</code> to paint to
  1426. * @param g <code>Graphics</code> to paint to
  1427. * @param x X coordinate of the area to paint to
  1428. * @param y Y coordinate of the area to paint to
  1429. * @param w Width of the area to paint to
  1430. * @param h Height of the area to paint to
  1431. */
  1432. public void paintTableBorder(SynthContext context,
  1433. Graphics g, int x, int y,
  1434. int w, int h) {
  1435. }
  1436. /**
  1437. * Paints the background of a text area.
  1438. *
  1439. * @param context SynthContext identifying the <code>JComponent</code> and
  1440. * <code>Region</code> to paint to
  1441. * @param g <code>Graphics</code> to paint to
  1442. * @param x X coordinate of the area to paint to
  1443. * @param y Y coordinate of the area to paint to
  1444. * @param w Width of the area to paint to
  1445. * @param h Height of the area to paint to
  1446. */
  1447. public void paintTextAreaBackground(SynthContext context,
  1448. Graphics g, int x, int y,
  1449. int w, int h) {
  1450. }
  1451. /**
  1452. * Paints the border of a text area.
  1453. *
  1454. * @param context SynthContext identifying the <code>JComponent</code> and
  1455. * <code>Region</code> to paint to
  1456. * @param g <code>Graphics</code> to paint to
  1457. * @param x X coordinate of the area to paint to
  1458. * @param y Y coordinate of the area to paint to
  1459. * @param w Width of the area to paint to
  1460. * @param h Height of the area to paint to
  1461. */
  1462. public void paintTextAreaBorder(SynthContext context,
  1463. Graphics g, int x, int y,
  1464. int w, int h) {
  1465. }
  1466. /**
  1467. * Paints the background of a text pane.
  1468. *
  1469. * @param context SynthContext identifying the <code>JComponent</code> and
  1470. * <code>Region</code> to paint to
  1471. * @param g <code>Graphics</code> to paint to
  1472. * @param x X coordinate of the area to paint to
  1473. * @param y Y coordinate of the area to paint to
  1474. * @param w Width of the area to paint to
  1475. * @param h Height of the area to paint to
  1476. */
  1477. public void paintTextPaneBackground(SynthContext context,
  1478. Graphics g, int x, int y,
  1479. int w, int h) {
  1480. }
  1481. /**
  1482. * Paints the border of a text pane.
  1483. *
  1484. * @param context SynthContext identifying the <code>JComponent</code> and
  1485. * <code>Region</code> to paint to
  1486. * @param g <code>Graphics</code> to paint to
  1487. * @param x X coordinate of the area to paint to
  1488. * @param y Y coordinate of the area to paint to
  1489. * @param w Width of the area to paint to
  1490. * @param h Height of the area to paint to
  1491. */
  1492. public void paintTextPaneBorder(SynthContext context,
  1493. Graphics g, int x, int y,
  1494. int w, int h) {
  1495. }
  1496. /**
  1497. * Paints the background of a text field.
  1498. *
  1499. * @param context SynthContext identifying the <code>JComponent</code> and
  1500. * <code>Region</code> to paint to
  1501. * @param g <code>Graphics</code> to paint to
  1502. * @param x X coordinate of the area to paint to
  1503. * @param y Y coordinate of the area to paint to
  1504. * @param w Width of the area to paint to
  1505. * @param h Height of the area to paint to
  1506. */
  1507. public void paintTextFieldBackground(SynthContext context,
  1508. Graphics g, int x, int y,
  1509. int w, int h) {
  1510. }
  1511. /**
  1512. * Paints the border of a text field.
  1513. *
  1514. * @param context SynthContext identifying the <code>JComponent</code> and
  1515. * <code>Region</code> to paint to
  1516. * @param g <code>Graphics</code> to paint to
  1517. * @param x X coordinate of the area to paint to
  1518. * @param y Y coordinate of the area to paint to
  1519. * @param w Width of the area to paint to
  1520. * @param h Height of the area to paint to
  1521. */
  1522. public void paintTextFieldBorder(SynthContext context,
  1523. Graphics g, int x, int y,
  1524. int w, int h) {
  1525. }
  1526. /**
  1527. * Paints the background of a toggle button.
  1528. *
  1529. * @param context SynthContext identifying the <code>JComponent</code> and
  1530. * <code>Region</code> to paint to
  1531. * @param g <code>Graphics</code> to paint to
  1532. * @param x X coordinate of the area to paint to
  1533. * @param y Y coordinate of the area to paint to
  1534. * @param w Width of the area to paint to
  1535. * @param h Height of the area to paint to
  1536. */
  1537. public void paintToggleButtonBackground(SynthContext context,
  1538. Graphics g, int x, int y,
  1539. int w, int h) {
  1540. }
  1541. /**
  1542. * Paints the border of a toggle button.
  1543. *
  1544. * @param context SynthContext identifying the <code>JComponent</code> and
  1545. * <code>Region</code> to paint to
  1546. * @param g <code>Graphics</code> to paint to
  1547. * @param x X coordinate of the area to paint to
  1548. * @param y Y coordinate of the area to paint to
  1549. * @param w Width of the area to paint to
  1550. * @param h Height of the area to paint to
  1551. */
  1552. public void paintToggleButtonBorder(SynthContext context,
  1553. Graphics g, int x, int y,
  1554. int w, int h) {
  1555. }
  1556. /**
  1557. * Paints the background of a tool bar.
  1558. *
  1559. * @param context SynthContext identifying the <code>JComponent</code> and
  1560. * <code>Region</code> to paint to
  1561. * @param g <code>Graphics</code> to paint to
  1562. * @param x X coordinate of the area to paint to
  1563. * @param y Y coordinate of the area to paint to
  1564. * @param w Width of the area to paint to
  1565. * @param h Height of the area to paint to
  1566. */
  1567. public void paintToolBarBackground(SynthContext context,
  1568. Graphics g, int x, int y,
  1569. int w, int h) {
  1570. }
  1571. /**
  1572. * Paints the border of a tool bar.
  1573. *
  1574. * @param context SynthContext identifying the <code>JComponent</code> and
  1575. * <code>Region</code> to paint to
  1576. * @param g <code>Graphics</code> to paint to
  1577. * @param x X coordinate of the area to paint to
  1578. * @param y Y coordinate of the area to paint to
  1579. * @param w Width of the area to paint to
  1580. * @param h Height of the area to paint to
  1581. */
  1582. public void paintToolBarBorder(SynthContext context,
  1583. Graphics g, int x, int y,
  1584. int w, int h) {
  1585. }
  1586. /**
  1587. * Paints the background of the tool bar's content area.
  1588. *
  1589. * @param context SynthContext identifying the <code>JComponent</code> and
  1590. * <code>Region</code> to paint to
  1591. * @param g <code>Graphics</code> to paint to
  1592. * @param x X coordinate of the area to paint to
  1593. * @param y Y coordinate of the area to paint to
  1594. * @param w Width of the area to paint to
  1595. * @param h Height of the area to paint to
  1596. */
  1597. public void paintToolBarContentBackground(SynthContext context,
  1598. Graphics g, int x, int y,
  1599. int w, int h) {
  1600. }
  1601. /**
  1602. * Paints the border of the content area of a tool bar.
  1603. *
  1604. * @param context SynthContext identifying the <code>JComponent</code> and
  1605. * <code>Region</code> to paint to
  1606. * @param g <code>Graphics</code> to paint to
  1607. * @param x X coordinate of the area to paint to
  1608. * @param y Y coordinate of the area to paint to
  1609. * @param w Width of the area to paint to
  1610. * @param h Height of the area to paint to
  1611. */
  1612. public void paintToolBarContentBorder(SynthContext context,
  1613. Graphics g, int x, int y,
  1614. int w, int h) {
  1615. }
  1616. /**
  1617. * Paints the background of the window containing the tool bar when it
  1618. * has been detached from its primary frame.
  1619. *
  1620. * @param context SynthContext identifying the <code>JComponent</code> and
  1621. * <code>Region</code> to paint to
  1622. * @param g <code>Graphics</code> to paint to
  1623. * @param x X coordinate of the area to paint to
  1624. * @param y Y coordinate of the area to paint to
  1625. * @param w Width of the area to paint to
  1626. * @param h Height of the area to paint to
  1627. */
  1628. public void paintToolBarDragWindowBackground(SynthContext context,
  1629. Graphics g, int x, int y,
  1630. int w, int h) {
  1631. }
  1632. /**
  1633. * Paints the border of the window containing the tool bar when it
  1634. * has been detached from it's primary frame.
  1635. *
  1636. * @param context SynthContext identifying the <code>JComponent</code> and
  1637. * <code>Region</code> to paint to
  1638. * @param g <code>Graphics</code> to paint to
  1639. * @param x X coordinate of the area to paint to
  1640. * @param y Y coordinate of the area to paint to
  1641. * @param w Width of the area to paint to
  1642. * @param h Height of the area to paint to
  1643. */
  1644. public void paintToolBarDragWindowBorder(SynthContext context,
  1645. Graphics g, int x, int y,
  1646. int w, int h) {
  1647. }
  1648. /**
  1649. * Paints the background of a tool tip.
  1650. *
  1651. * @param context SynthContext identifying the <code>JComponent</code> and
  1652. * <code>Region</code> to paint to
  1653. * @param g <code>Graphics</code> to paint to
  1654. * @param x X coordinate of the area to paint to
  1655. * @param y Y coordinate of the area to paint to
  1656. * @param w Width of the area to paint to
  1657. * @param h Height of the area to paint to
  1658. */
  1659. public void paintToolTipBackground(SynthContext context,
  1660. Graphics g, int x, int y,
  1661. int w, int h) {
  1662. }
  1663. /**
  1664. * Paints the border of a tool tip.
  1665. *
  1666. * @param context SynthContext identifying the <code>JComponent</code> and
  1667. * <code>Region</code> to paint to
  1668. * @param g <code>Graphics</code> to paint to
  1669. * @param x X coordinate of the area to paint to
  1670. * @param y Y coordinate of the area to paint to
  1671. * @param w Width of the area to paint to
  1672. * @param h Height of the area to paint to
  1673. */
  1674. public void paintToolTipBorder(SynthContext context,
  1675. Graphics g, int x, int y,
  1676. int w, int h) {
  1677. }
  1678. /**
  1679. * Paints the background of a tree.
  1680. *
  1681. * @param context SynthContext identifying the <code>JComponent</code> and
  1682. * <code>Region</code> to paint to
  1683. * @param g <code>Graphics</code> to paint to
  1684. * @param x X coordinate of the area to paint to
  1685. * @param y Y coordinate of the area to paint to
  1686. * @param w Width of the area to paint to
  1687. * @param h Height of the area to paint to
  1688. */
  1689. public void paintTreeBackground(SynthContext context,
  1690. Graphics g, int x, int y,
  1691. int w, int h) {
  1692. }
  1693. /**
  1694. * Paints the border of a tree.
  1695. *
  1696. * @param context SynthContext identifying the <code>JComponent</code> and
  1697. * <code>Region</code> to paint to
  1698. * @param g <code>Graphics</code> to paint to
  1699. * @param x X coordinate of the area to paint to
  1700. * @param y Y coordinate of the area to paint to
  1701. * @param w Width of the area to paint to
  1702. * @param h Height of the area to paint to
  1703. */
  1704. public void paintTreeBorder(SynthContext context,
  1705. Graphics g, int x, int y,
  1706. int w, int h) {
  1707. }
  1708. /**
  1709. * Paints the background of the row containing a cell in a tree.
  1710. *
  1711. * @param context SynthContext identifying the <code>JComponent</code> and
  1712. * <code>Region</code> to paint to
  1713. * @param g <code>Graphics</code> to paint to
  1714. * @param x X coordinate of the area to paint to
  1715. * @param y Y coordinate of the area to paint to
  1716. * @param w Width of the area to paint to
  1717. * @param h Height of the area to paint to
  1718. */
  1719. public void paintTreeCellBackground(SynthContext context,
  1720. Graphics g, int x, int y,
  1721. int w, int h) {
  1722. }
  1723. /**
  1724. * Paints the border of the row containing a cell in a tree.
  1725. *
  1726. * @param context SynthContext identifying the <code>JComponent</code> and
  1727. * <code>Region</code> to paint to
  1728. * @param g <code>Graphics</code> to paint to
  1729. * @param x X coordinate of the area to paint to
  1730. * @param y Y coordinate of the area to paint to
  1731. * @param w Width of the area to paint to
  1732. * @param h Height of the area to paint to
  1733. */
  1734. public void paintTreeCellBorder(SynthContext context,
  1735. Graphics g, int x, int y,
  1736. int w, int h) {
  1737. }
  1738. /**
  1739. * Paints the focus indicator for a cell in a tree when it has focus.
  1740. *
  1741. * @param context SynthContext identifying the <code>JComponent</code> and
  1742. * <code>Region</code> to paint to
  1743. * @param g <code>Graphics</code> to paint to
  1744. * @param x X coordinate of the area to paint to
  1745. * @param y Y coordinate of the area to paint to
  1746. * @param w Width of the area to paint to
  1747. * @param h Height of the area to paint to
  1748. */
  1749. public void paintTreeCellFocus(SynthContext context,
  1750. Graphics g, int x, int y,
  1751. int w, int h) {
  1752. }
  1753. /**
  1754. * Paints the background of the viewport.
  1755. *
  1756. * @param context SynthContext identifying the <code>JComponent</code> and
  1757. * <code>Region</code> to paint to
  1758. * @param g <code>Graphics</code> to paint to
  1759. * @param x X coordinate of the area to paint to
  1760. * @param y Y coordinate of the area to paint to
  1761. * @param w Width of the area to paint to
  1762. * @param h Height of the area to paint to
  1763. */
  1764. public void paintViewportBackground(SynthContext context,
  1765. Graphics g, int x, int y,
  1766. int w, int h) {
  1767. }
  1768. /**
  1769. * Paints the border of a viewport.
  1770. *
  1771. * @param context SynthContext identifying the <code>JComponent</code> and
  1772. * <code>Region</code> to paint to
  1773. * @param g <code>Graphics</code> to paint to
  1774. * @param x X coordinate of the area to paint to
  1775. * @param y Y coordinate of the area to paint to
  1776. * @param w Width of the area to paint to
  1777. * @param h Height of the area to paint to
  1778. */
  1779. public void paintViewportBorder(SynthContext context,
  1780. Graphics g, int x, int y,
  1781. int w, int h) {
  1782. }
  1783. }