23 * questions.
24 */
25 package javax.swing.border;
26
27 import java.awt.Graphics;
28 import java.awt.Insets;
29 import java.awt.Rectangle;
30 import java.awt.Component;
31 import java.io.Serializable;
32
33 /**
34 * A class that implements an empty border with no size.
35 * This provides a convenient base class from which other border
36 * classes can be easily derived.
37 * <p>
38 * <strong>Warning:</strong>
39 * Serialized objects of this class will not be compatible with
40 * future Swing releases. The current serialization support is
41 * appropriate for short term storage or RMI between applications running
42 * the same version of Swing. As of 1.4, support for long term storage
43 * of all JavaBeans™
44 * has been added to the <code>java.beans</code> package.
45 * Please see {@link java.beans.XMLEncoder}.
46 *
47 * @author David Kloba
48 */
49 @SuppressWarnings("serial")
50 public abstract class AbstractBorder implements Border, Serializable
51 {
52 /**
53 * This default implementation does no painting.
54 * @param c the component for which this border is being painted
55 * @param g the paint graphics
56 * @param x the x position of the painted border
57 * @param y the y position of the painted border
58 * @param width the width of the painted border
59 * @param height the height of the painted border
60 */
61 public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
62 }
63
|
23 * questions.
24 */
25 package javax.swing.border;
26
27 import java.awt.Graphics;
28 import java.awt.Insets;
29 import java.awt.Rectangle;
30 import java.awt.Component;
31 import java.io.Serializable;
32
33 /**
34 * A class that implements an empty border with no size.
35 * This provides a convenient base class from which other border
36 * classes can be easily derived.
37 * <p>
38 * <strong>Warning:</strong>
39 * Serialized objects of this class will not be compatible with
40 * future Swing releases. The current serialization support is
41 * appropriate for short term storage or RMI between applications running
42 * the same version of Swing. As of 1.4, support for long term storage
43 * of all JavaBeans
44 * has been added to the <code>java.beans</code> package.
45 * Please see {@link java.beans.XMLEncoder}.
46 *
47 * @author David Kloba
48 */
49 @SuppressWarnings("serial")
50 public abstract class AbstractBorder implements Border, Serializable
51 {
52 /**
53 * This default implementation does no painting.
54 * @param c the component for which this border is being painted
55 * @param g the paint graphics
56 * @param x the x position of the painted border
57 * @param y the y position of the painted border
58 * @param width the width of the painted border
59 * @param height the height of the painted border
60 */
61 public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
62 }
63
|