comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/XYStyle.java @ 3090:22def36d37b7

Apply point color in XYStyle. flys-artifacts/trunk@4689 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 18 Jun 2012 12:29:29 +0000
parents bdc86e61428c
children 5a0aef74c316
comparison
equal deleted inserted replaced
3089:7e4c8590067a 3090:22def36d37b7
35 applyLineSize(r, idx); 35 applyLineSize(r, idx);
36 applyLineType(r, idx); 36 applyLineType(r, idx);
37 applyShowLine(r, idx); 37 applyShowLine(r, idx);
38 applyShowPoints(r, idx); 38 applyShowPoints(r, idx);
39 applyPointSize(r, idx); 39 applyPointSize(r, idx);
40 applyPointColor(r, idx);
40 applyShowMinimum(r, idx); 41 applyShowMinimum(r, idx);
41 applyShowMaximum(r, idx); 42 applyShowMaximum(r, idx);
42 applyShowLineLabel(r, idx); 43 applyShowLineLabel(r, idx);
43 applyLineLabelFont(r, idx); 44 applyLineLabelFont(r, idx);
44 applyLineLabelColor(r, idx); 45 applyLineLabelColor(r, idx);
139 140
140 r.setSeriesShape(idx, new Ellipse2D.Double(-size, -size, dim, dim)); 141 r.setSeriesShape(idx, new Ellipse2D.Double(-size, -size, dim, dim));
141 } 142 }
142 143
143 144
145 protected void applyPointColor(XYLineAndShapeRenderer r, int idx) {
146 Color c = ThemeUtil.parsePointColor(theme);
147
148 if (c != null) {
149 r.setSeriesFillPaint(idx, c);
150 r.setUseFillPaint(true);
151 r.setDrawOutlines(false);
152 }
153 }
154
155
144 /** 156 /**
145 * Sets form and visibility of points. 157 * Sets form and visibility of points.
146 */ 158 */
147 protected void applyShowPoints(XYLineAndShapeRenderer r, int idx) { 159 protected void applyShowPoints(XYLineAndShapeRenderer r, int idx) {
148 boolean show = ThemeUtil.parseShowPoints(theme); 160 boolean show = ThemeUtil.parseShowPoints(theme);

http://dive4elements.wald.intevation.org