comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/QWSeriesCollection.java @ 3164:6d0567a8387d

Label more points in FixingsKMChartService flys-artifacts/trunk@4776 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 25 Jun 2012 13:15:35 +0000
parents 0d8146989012
children 79e7bba0f593
comparison
equal deleted inserted replaced
3163:dad513d5ce37 3164:6d0567a8387d
85 this(); 85 this();
86 this.labelGenerator = labelGenerator; 86 this.labelGenerator = labelGenerator;
87 } 87 }
88 88
89 protected static ShapeRenderer.Entry classify(QW qw) { 89 protected static ShapeRenderer.Entry classify(QW qw) {
90 Shape shape = qw.getInterpolated() 90 boolean interpolated = qw.getInterpolated();
91
92 Shape shape = interpolated
91 ? ShapeUtils.INTERPOLATED_SHAPE 93 ? ShapeUtils.INTERPOLATED_SHAPE
92 : ShapeUtils.MEASURED_SHAPE; 94 : ShapeUtils.MEASURED_SHAPE;
93 95
94 boolean filled = !qw.getInterpolated(); 96 boolean filled = !interpolated;
95 97 Color color = interpolated
96 return new ShapeRenderer.Entry( 98 ? Color.green
97 shape, Color.black, filled); 99 : Color.blue;
100
101 return new ShapeRenderer.Entry(shape, color, filled);
98 } 102 }
99 103
100 public void add(QW qw) { 104 public void add(QW qw) {
101 105
102 ShapeRenderer.Entry key = classify(qw); 106 ShapeRenderer.Entry key = classify(qw);

http://dive4elements.wald.intevation.org