Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/jfree/XYStyle.java @ 7545:4dbbdf0c8b2c
More on flys/issue1585: Do not fill circle for interpolated W/Q points.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 08 Nov 2013 16:15:38 +0100 |
parents | d20a26e96ef1 |
children | e4606eae8ea5 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/jfree/XYStyle.java Fri Nov 08 12:27:08 2013 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/jfree/XYStyle.java Fri Nov 08 16:15:38 2013 +0100 @@ -58,6 +58,7 @@ // Hurray we already applied nothing :) return r; } + applyUseFillPaint(r); applyLineColor(r, idx); applyLineSize(r, idx); applyLineType(r, idx); @@ -86,17 +87,20 @@ return r; } + protected void applyUseFillPaint(XYLineAndShapeRenderer r) { + Boolean use = theme.parseUseFillPaint(); + if (use != null) { + r.setUseFillPaint(use); + } + } + /** Set line color to renderer. */ protected void applyLineColor(XYLineAndShapeRenderer r, int idx) { Color c = theme.parseLineColorField(); - if(c != null) { - logger.debug("applyLineColor " + c.toString()); + if (c != null) { r.setSeriesPaint(idx, c); } - else { - logger.warn("applyLineColor: color is null - malformed linecolor field?"); - } }