27
28 import javax.swing.*;
29 import java.awt.Color;
30 import java.awt.Dimension;
31 import java.awt.Graphics;
32 import java.awt.Insets;
33 import java.awt.Rectangle;
34 import javax.swing.plaf.*;
35 import javax.swing.plaf.basic.BasicSeparatorUI;
36
37
38 /**
39 * A Metal L&F implementation of SeparatorUI. This implementation
40 * is a "combined" view/controller.
41 * <p>
42 * <strong>Warning:</strong>
43 * Serialized objects of this class will not be compatible with
44 * future Swing releases. The current serialization support is
45 * appropriate for short term storage or RMI between applications running
46 * the same version of Swing. As of 1.4, support for long term storage
47 * of all JavaBeans™
48 * has been added to the <code>java.beans</code> package.
49 * Please see {@link java.beans.XMLEncoder}.
50 *
51 * @author Jeff Shapiro
52 */
53 @SuppressWarnings("serial") // Same-version serialization only
54 public class MetalSeparatorUI extends BasicSeparatorUI
55 {
56 /**
57 * Constructs a new {@code MetalSeparatorUI} instance.
58 *
59 * @param c a component
60 * @return a new {@code MetalSeparatorUI} instance.
61 */
62 public static ComponentUI createUI( JComponent c )
63 {
64 return new MetalSeparatorUI();
65 }
66
67 protected void installDefaults( JSeparator s )
|
27
28 import javax.swing.*;
29 import java.awt.Color;
30 import java.awt.Dimension;
31 import java.awt.Graphics;
32 import java.awt.Insets;
33 import java.awt.Rectangle;
34 import javax.swing.plaf.*;
35 import javax.swing.plaf.basic.BasicSeparatorUI;
36
37
38 /**
39 * A Metal L&F implementation of SeparatorUI. This implementation
40 * is a "combined" view/controller.
41 * <p>
42 * <strong>Warning:</strong>
43 * Serialized objects of this class will not be compatible with
44 * future Swing releases. The current serialization support is
45 * appropriate for short term storage or RMI between applications running
46 * the same version of Swing. As of 1.4, support for long term storage
47 * of all JavaBeans
48 * has been added to the <code>java.beans</code> package.
49 * Please see {@link java.beans.XMLEncoder}.
50 *
51 * @author Jeff Shapiro
52 */
53 @SuppressWarnings("serial") // Same-version serialization only
54 public class MetalSeparatorUI extends BasicSeparatorUI
55 {
56 /**
57 * Constructs a new {@code MetalSeparatorUI} instance.
58 *
59 * @param c a component
60 * @return a new {@code MetalSeparatorUI} instance.
61 */
62 public static ComponentUI createUI( JComponent c )
63 {
64 return new MetalSeparatorUI();
65 }
66
67 protected void installDefaults( JSeparator s )
|