* @return The derived color, whos color value will change if the parent
* uiDefault color changes.
*/
protected final Color decodeColor(String key, float hOffset, float sOffset, float bOffset, int aOffset) {
if (UIManager.getLookAndFeel() instanceof SeaGlassLookAndFeel) {
SeaGlassLookAndFeel laf = (SeaGlassLookAndFeel) UIManager.getLookAndFeel();
return laf.getDerivedColor(key, hOffset, sOffset, bOffset, aOffset, true);
} else {
// can not give a right answer as painter should not be used outside
// of nimbus laf but do the best we can
return Color.getHSBColor(hOffset, sOffset, bOffset);