src/share/classes/javax/swing/plaf/nimbus/DerivedColor.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, 2006, 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) 2005, 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
*** 37,46 **** --- 37,48 ---- * are fired for the "rgb" property when the derived color changes. * * @author Jasper Potts */ class DerivedColor extends Color { + private static final long serialVersionUID = 2943692070465976766L; + private final String uiDefaultParentName; private final float hOffset, sOffset, bOffset; private final int aOffset; private int argbValue;
*** 172,181 **** --- 174,185 ---- + getBrightnessOffset() + "," + getAlphaOffset(); return src == null ? s : s + " pColor=" + src.getRed() + "," + src.getGreen() + "," + src.getBlue(); } static class UIResource extends DerivedColor implements javax.swing.plaf.UIResource { + private static final long serialVersionUID = -6075249163281010835L; + UIResource(String uiDefaultParentName, float hOffset, float sOffset, float bOffset, int aOffset) { super(uiDefaultParentName, hOffset, sOffset, bOffset, aOffset); }