Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
7544:34faa9c55b4b | 7545:4dbbdf0c8b2c |
---|---|
56 } | 56 } |
57 if (theme == null) { | 57 if (theme == null) { |
58 // Hurray we already applied nothing :) | 58 // Hurray we already applied nothing :) |
59 return r; | 59 return r; |
60 } | 60 } |
61 applyUseFillPaint(r); | |
61 applyLineColor(r, idx); | 62 applyLineColor(r, idx); |
62 applyLineSize(r, idx); | 63 applyLineSize(r, idx); |
63 applyLineType(r, idx); | 64 applyLineType(r, idx); |
64 applyShowLine(r, idx); | 65 applyShowLine(r, idx); |
65 applyShowPoints(r, idx); | 66 applyShowPoints(r, idx); |
84 applyLinePointBGColor(r, idx);*/ | 85 applyLinePointBGColor(r, idx);*/ |
85 | 86 |
86 return r; | 87 return r; |
87 } | 88 } |
88 | 89 |
90 protected void applyUseFillPaint(XYLineAndShapeRenderer r) { | |
91 Boolean use = theme.parseUseFillPaint(); | |
92 if (use != null) { | |
93 r.setUseFillPaint(use); | |
94 } | |
95 } | |
96 | |
89 | 97 |
90 /** Set line color to renderer. */ | 98 /** Set line color to renderer. */ |
91 protected void applyLineColor(XYLineAndShapeRenderer r, int idx) { | 99 protected void applyLineColor(XYLineAndShapeRenderer r, int idx) { |
92 Color c = theme.parseLineColorField(); | 100 Color c = theme.parseLineColorField(); |
93 if(c != null) { | 101 if (c != null) { |
94 logger.debug("applyLineColor " + c.toString()); | |
95 r.setSeriesPaint(idx, c); | 102 r.setSeriesPaint(idx, c); |
96 } | |
97 else { | |
98 logger.warn("applyLineColor: color is null - malformed linecolor field?"); | |
99 } | 103 } |
100 } | 104 } |
101 | 105 |
102 | 106 |
103 /** Tells the renderer whether or not to add a label to a line. */ | 107 /** Tells the renderer whether or not to add a label to a line. */ |