26 package javax.swing.plaf.basic;
27
28 import javax.swing.*;
29 import javax.swing.plaf.UIResource;
30
31 import java.awt.Graphics;
32 import java.awt.Color;
33 import java.awt.Component;
34 import java.awt.Polygon;
35 import java.io.Serializable;
36
37 /**
38 * Factory object that can vend Icons appropriate for the basic L & F.
39 * <p>
40 * <strong>Warning:</strong>
41 * Serialized objects of this class will not be compatible with
42 * future Swing releases. The current serialization support is
43 * appropriate for short term storage or RMI between applications running
44 * the same version of Swing. As of 1.4, support for long term storage
45 * of all JavaBeans™
46 * has been added to the <code>java.beans</code> package.
47 * Please see {@link java.beans.XMLEncoder}.
48 *
49 * @author David Kloba
50 * @author Georges Saab
51 */
52 @SuppressWarnings("serial") // Same-version serialization only
53 public class BasicIconFactory implements Serializable
54 {
55 private static Icon frame_icon;
56 private static Icon checkBoxIcon;
57 private static Icon radioButtonIcon;
58 private static Icon checkBoxMenuItemIcon;
59 private static Icon radioButtonMenuItemIcon;
60 private static Icon menuItemCheckIcon;
61 private static Icon menuItemArrowIcon;
62 private static Icon menuArrowIcon;
63
64 /**
65 * Returns a menu item check icon.
66 *
|
26 package javax.swing.plaf.basic;
27
28 import javax.swing.*;
29 import javax.swing.plaf.UIResource;
30
31 import java.awt.Graphics;
32 import java.awt.Color;
33 import java.awt.Component;
34 import java.awt.Polygon;
35 import java.io.Serializable;
36
37 /**
38 * Factory object that can vend Icons appropriate for the basic L & F.
39 * <p>
40 * <strong>Warning:</strong>
41 * Serialized objects of this class will not be compatible with
42 * future Swing releases. The current serialization support is
43 * appropriate for short term storage or RMI between applications running
44 * the same version of Swing. As of 1.4, support for long term storage
45 * of all JavaBeans™
46 * has been added to the {@code java.beans} package.
47 * Please see {@link java.beans.XMLEncoder}.
48 *
49 * @author David Kloba
50 * @author Georges Saab
51 */
52 @SuppressWarnings("serial") // Same-version serialization only
53 public class BasicIconFactory implements Serializable
54 {
55 private static Icon frame_icon;
56 private static Icon checkBoxIcon;
57 private static Icon radioButtonIcon;
58 private static Icon checkBoxMenuItemIcon;
59 private static Icon radioButtonMenuItemIcon;
60 private static Icon menuItemCheckIcon;
61 private static Icon menuItemArrowIcon;
62 private static Icon menuArrowIcon;
63
64 /**
65 * Returns a menu item check icon.
66 *
|