changeset 3911:36507c71725b

W(Q) chart: q sectors are now black and labeled by default flys-artifacts/trunk@5578 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Christian Lins <christian.lins@intevation.de>
date Sun, 23 Sep 2012 19:37:54 +0000
parents 5e7da178daa6
children 5fce1908317f
files flys-artifacts/ChangeLog flys-artifacts/doc/conf/default-themes.xml flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java
diffstat 3 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Sun Sep 23 16:26:51 2012 +0000
+++ b/flys-artifacts/ChangeLog	Sun Sep 23 19:37:54 2012 +0000
@@ -1,3 +1,9 @@
+2012-09-23	Christian Lins	<christian.lins@intevation.de>
+
+	* doc/conf/default-themes.xml,
+	  src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java:
+	  W(Q) chart: q sectors are now black and labeled by default (#875).
+
 2012-09-23	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/services/GaugeInfoService.java:
--- a/flys-artifacts/doc/conf/default-themes.xml	Sun Sep 23 16:26:51 2012 +0000
+++ b/flys-artifacts/doc/conf/default-themes.xml	Sun Sep 23 19:37:54 2012 +0000
@@ -1616,9 +1616,9 @@
 
     <theme name="QSectors">
         <fields>
-            <field name="linecolor" type="Color" default="227, 27, 162" />
+            <field name="linecolor" type="Color" default="0, 0, 0" />
             <field name="showlinelabel" type="boolean"
-                display="Beschriftung anzeigen" default="false" hints="h" />
+                display="Beschriftung anzeigen" default="true" hints="h" />
             <field name="linetype" type="Dash" display="Linienart"
                 default="10" hidden="true" />
             <field name="linesize" type="int" display="Liniendicke"
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java	Sun Sep 23 16:26:51 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java	Sun Sep 23 19:37:54 2012 +0000
@@ -14,6 +14,7 @@
 import org.jfree.chart.title.TextTitle;
 import org.jfree.data.xy.XYSeries;
 import org.jfree.ui.RectangleAnchor;
+import org.jfree.ui.RectangleInsets;
 import org.jfree.ui.TextAnchor;
 import org.w3c.dom.Document;
 
@@ -323,6 +324,7 @@
             }
             m.setLabelAnchor(RectangleAnchor.TOP_LEFT);
             m.setLabelTextAnchor(TextAnchor.TOP_LEFT);
+            m.setLabelOffset(new RectangleInsets(5, 5, 10, 10));
             addDomainMarker(m);
         }
     }

http://dive4elements.wald.intevation.org