src/share/classes/com/sun/java/swing/plaf/motif/MotifBorders.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -52,10 +52,11 @@
*
* @author Amy Fowler
*/
public class MotifBorders {
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
public static class BevelBorder extends AbstractBorder implements UIResource {
private Color darkShadow = UIManager.getColor("controlShadow");
private Color lightShadow = UIManager.getColor("controlLtHighlight");
private boolean isRaised;
@@ -85,10 +86,11 @@
}
}
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
public static class FocusBorder extends AbstractBorder implements UIResource {
private Color focus;
private Color control;
public FocusBorder(Color control, Color focus) {
@@ -111,10 +113,11 @@
return insets;
}
}
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
public static class ButtonBorder extends AbstractBorder implements UIResource {
protected Color focus = UIManager.getColor("activeCaptionBorder");
protected Color shadow = UIManager.getColor("Button.shadow");
protected Color highlight = UIManager.getColor("Button.light");
protected Color darkShadow;
@@ -189,10 +192,11 @@
return insets;
}
}
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
public static class ToggleButtonBorder extends ButtonBorder {
public ToggleButtonBorder(Color shadow, Color highlight, Color darkShadow, Color focus) {
super(shadow, highlight, darkShadow, focus);
}
@@ -222,10 +226,11 @@
insets.set(2, 2, 3, 3);
return insets;
}
}
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
public static class MenuBarBorder extends ButtonBorder {
public MenuBarBorder(Color shadow, Color highlight, Color darkShadow, Color focus) {
super(shadow, highlight, darkShadow, focus);
}
@@ -247,10 +252,11 @@
insets.set(6, 6, 6, 6);
return insets;
}
}
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
public static class FrameBorder extends AbstractBorder implements UIResource {
JComponent jcomp;
Color frameHighlight;
Color frameColor;
@@ -432,10 +438,11 @@
drawRightBorder(c, g, x, y, width, height);
drawBottomBorder(c, g, x, y, width, height);
}
}
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
public static class InternalFrameBorder extends FrameBorder {
JInternalFrame frame;
// The size of the bounding box for Motif frame corners.
@@ -616,10 +623,11 @@
g.translate(-x, -y);
}
g.setColor(oldColor);
}
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
public static class MotifPopupMenuBorder extends AbstractBorder implements UIResource {
protected Font font;
protected Color background;
protected Color foreground;
protected Color shadowColor;