Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/jfree/XYStyle.java @ 3134:5a0aef74c316
Use different stylings for real and interpolated data points.
flys-artifacts/trunk@4741 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 21 Jun 2012 13:15:48 +0000 |
parents | 22def36d37b7 |
children | 74c974b10c75 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/XYStyle.java Thu Jun 21 12:26:08 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/XYStyle.java Thu Jun 21 13:15:48 2012 +0000 @@ -20,9 +20,11 @@ protected Document theme; + protected XYLineAndShapeRenderer renderer; public XYStyle(Document theme) { this.theme = theme; + this.renderer = null; } @@ -31,6 +33,7 @@ * whether to draw lines and/or points. */ public XYLineAndShapeRenderer applyTheme(XYLineAndShapeRenderer r, int idx){ + this.renderer = r; applyLineColor(r, idx); applyLineSize(r, idx); applyLineType(r, idx); @@ -192,5 +195,10 @@ EnhancedLineAndShapeRenderer er = (EnhancedLineAndShapeRenderer) r; er.setIsMaximumShapeVisible(idx, visible); } + + + public XYLineAndShapeRenderer getRenderer() { + return this.renderer; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :