equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
419 * |
419 * |
420 * @param c The component to get the color property from |
420 * @param c The component to get the color property from |
421 * @param property The name of a bean style property or client property |
421 * @param property The name of a bean style property or client property |
422 * @param defaultColor The color to return if no color was obtained from |
422 * @param defaultColor The color to return if no color was obtained from |
423 * the component. |
423 * the component. |
|
424 * @param saturationOffset additively modifies the HSB saturation component |
|
425 * of the color returned (ignored if default color is returned). |
|
426 * @param brightnessOffset additively modifies the HSB brightness component |
|
427 * of the color returned (ignored if default color is returned). |
|
428 * @param alphaOffset additively modifies the ARGB alpha component of the |
|
429 * color returned (ignored if default color is returned). |
|
430 * |
424 * @return The color that was obtained from the component or defaultColor |
431 * @return The color that was obtained from the component or defaultColor |
425 */ |
432 */ |
426 protected final Color getComponentColor(JComponent c, String property, |
433 protected final Color getComponentColor(JComponent c, String property, |
427 Color defaultColor, |
434 Color defaultColor, |
428 float saturationOffset, |
435 float saturationOffset, |