Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/StyledAreaSeriesCollection.java @ 4649:64664e8244ff
Merged
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Wed, 05 Dec 2012 23:58:26 +0100 |
parents | d70284c92728 |
children | 85876e3a5346 |
comparison
equal
deleted
inserted
replaced
4648:c04db3178d09 | 4649:64664e8244ff |
---|---|
85 protected void applyFillColor(StableXYDifferenceRenderer renderer) { | 85 protected void applyFillColor(StableXYDifferenceRenderer renderer) { |
86 Color paint = ThemeUtil.parseColor( | 86 Color paint = ThemeUtil.parseColor( |
87 ThemeUtil.getBackgroundColorString(theme)); | 87 ThemeUtil.getBackgroundColorString(theme)); |
88 | 88 |
89 int transparency = ThemeUtil.parseTransparency(theme); | 89 int transparency = ThemeUtil.parseTransparency(theme); |
90 if (transparency > 0) { | 90 if (transparency > 0 && paint != null) { |
91 paint = new Color( | 91 paint = new Color( |
92 paint.getRed(), | 92 paint.getRed(), |
93 paint.getGreen(), | 93 paint.getGreen(), |
94 paint.getBlue(), | 94 paint.getBlue(), |
95 (int)((100 - transparency) * 2.55f)); | 95 (int)((100 - transparency) * 2.55f)); |