Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/QWSeriesCollection.java Mon Jun 25 11:55:34 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/QWSeriesCollection.java Mon Jun 25 13:15:35 2012 +0000 @@ -87,14 +87,18 @@ } protected static ShapeRenderer.Entry classify(QW qw) { - Shape shape = qw.getInterpolated() + boolean interpolated = qw.getInterpolated(); + + Shape shape = interpolated ? ShapeUtils.INTERPOLATED_SHAPE : ShapeUtils.MEASURED_SHAPE; - boolean filled = !qw.getInterpolated(); + boolean filled = !interpolated; + Color color = interpolated + ? Color.green + : Color.blue; - return new ShapeRenderer.Entry( - shape, Color.black, filled); + return new ShapeRenderer.Entry(shape, color, filled); } public void add(QW qw) {