Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/StyledXYSeries.java @ 2017:e384d78ff78b
Cosmetics.
flys-artifacts/trunk@3472 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 20 Dec 2011 06:26:25 +0000 |
parents | 6c24ffe946a5 |
children | 4cdd9c4896f6 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/StyledXYSeries.java Mon Dec 19 17:20:13 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/StyledXYSeries.java Tue Dec 20 06:26:25 2011 +0000 @@ -14,8 +14,11 @@ import de.intevation.flys.utils.ThemeUtil; /** - * Dataset in two dimensions with additional theme-document. + * Dataseries in two dimensions with additional theme-document and further + * display options. * The theme-document will later "style" the graphical representation. + * The display options can be used to control the z-order and the axis of the + * dataseries. */ public class StyledXYSeries extends XYSeries { @@ -40,6 +43,10 @@ } + /** + * Applies line color, size and type attributes to renderer, also + * whether to draw lines and/or points. + */ public XYLineAndShapeRenderer applyTheme(XYLineAndShapeRenderer r, int idx){ applyLineColor(r, idx); applyLineSize(r, idx); @@ -51,6 +58,7 @@ } + /** Set line color to renderer. */ protected void applyLineColor(XYLineAndShapeRenderer r, int idx) { Color c = ThemeUtil.parseLineColorField(theme); r.setSeriesPaint(idx, c); @@ -85,6 +93,9 @@ } + /** + * Sets form and visibility of points. + */ protected void applyShowPoints(XYLineAndShapeRenderer r, int idx) { boolean show = ThemeUtil.parseShowPoints(theme); int size = ThemeUtil.parseLineWidth(theme);