src/share/classes/com/sun/java/swing/plaf/gtk/GTKColorChooserPanel.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2002, 2013, 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
--- 1,7 ----
/*
! * Copyright (c) 2002, 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
*** 36,45 ****
--- 36,46 ----
* A color chooser panel mimicking that of GTK's: a color wheel showing
* hue and a triangle that varies saturation and brightness.
*
* @author Scott Violet
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
class GTKColorChooserPanel extends AbstractColorChooserPanel implements
ChangeListener {
private static final float PI_3 = (float)(Math.PI / 3);
private ColorTriangle triangle;
*** 533,542 ****
--- 534,544 ----
/**
* Class responsible for rendering a color wheel and color triangle.
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
private class ColorTriangle extends JPanel {
/**
* Cached image of the wheel.
*/
private Image wheelImage;
*** 1227,1236 ****
--- 1229,1239 ----
/**
* Action class used for colors.
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
private static class ColorAction extends AbstractAction {
private int type;
ColorAction(String name, int type) {
super(name);
*** 1292,1302 ****
triangle.getColorY() + yDelta, true);
}
}
}
!
private class OpaqueLabel extends JLabel {
public boolean isOpaque() {
return true;
}
}
--- 1295,1305 ----
triangle.getColorY() + yDelta, true);
}
}
}
! @SuppressWarnings("serial") // Superclass is not serializable across versions
private class OpaqueLabel extends JLabel {
public boolean isOpaque() {
return true;
}
}