Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/StyledValueMarker.java @ 4283:7140bb0f92b0
Added new themes for W and Q markers in Historical Discharge WQ charts.
ThemeUtil.parseLineColorField() will now use parseColor() to parse the color string.
This enables using hex colors in theme configs.
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 29 Oct 2012 06:54:48 +0100 |
parents | 9422b559b2d5 |
children | 85876e3a5346 |
comparison
equal
deleted
inserted
replaced
4282:8b4988815974 | 4283:7140bb0f92b0 |
---|---|
17 private static final long serialVersionUID = -3607777705307785140L; | 17 private static final long serialVersionUID = -3607777705307785140L; |
18 | 18 |
19 public StyledValueMarker(double value, Document theme) { | 19 public StyledValueMarker(double value, Document theme) { |
20 super(value); | 20 super(value); |
21 | 21 |
22 Color color = ThemeUtil.parsePointColor(theme); | 22 Color color = ThemeUtil.parseLineColorField(theme); |
23 if(color == null) { | 23 if(color == null) { |
24 color = Color.BLACK; | 24 color = Color.BLACK; |
25 } | 25 } |
26 this.setPaint(color); | 26 this.setPaint(color); |
27 | 27 |