changeset 3425:7babd4e92c8b

Disabled legends in SQ relation overview generator. flys-artifacts/trunk@5080 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 20 Jul 2012 07:50:08 +0000 (2012-07-20)
parents 3fc5c914b1c1
children e7a67407dea1
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQOverviewGenerator.java
diffstat 2 files changed, 17 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Jul 20 07:44:00 2012 +0000
+++ b/flys-artifacts/ChangeLog	Fri Jul 20 07:50:08 2012 +0000
@@ -1,9 +1,14 @@
-2012-07-19	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+2012-07-20  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/sq/SQOverviewGenerator.java:
+	  Disabled legends in this overview.
+
+2012-07-20	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/exports/sq/SQOverviewGenerator.java:
 	  Removed superfluous imports.
 
-2012-07-19	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+2012-07-20	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/resources/messages_de.properties,
 	  src/main/resources/messages.properties,
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQOverviewGenerator.java	Fri Jul 20 07:44:00 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQOverviewGenerator.java	Fri Jul 20 07:50:08 2012 +0000
@@ -58,6 +58,7 @@
      * @param artifactAndFacet current facet and artifact.
      * @param attr  theme for facet
      */
+    @Override
     public void doOut(
         ArtifactAndFacet artifactAndFacet,
         Document         attr,
@@ -87,7 +88,9 @@
                 g.init(request, out, context);
 
                 helper.doOut(g, name, name, cAttr, context);
-                charts.add(g.generateChart());
+                JFreeChart chart = g.generateChart();
+                chart.removeLegend();
+                charts.add(chart);
             }
             catch (IOException e) {
                 logger.warn(e);
@@ -98,6 +101,7 @@
         }
     }
 
+    @Override
     public void init(Document request, OutputStream out, CallContext context) {
         this.request = request;
         this.out = out;
@@ -105,14 +109,17 @@
         charts = new ArrayList<JFreeChart>();
     }
 
+    @Override
     public void setMasterArtifact(Artifact master) {
         this.master = master;
     }
 
+    @Override
     public void setCollection(FLYSArtifactCollection collection) {
         this.collection = collection;
     }
 
+    @Override
     public void generate() throws IOException {
         logger.debug("SQOverviewGenerator.generate");
 
@@ -142,10 +149,12 @@
         ImageIO.write(result, "png", out);
     }
 
+    @Override
     public void setSettings(Settings settings) {
         this.settings = settings;
     }
 
+    @Override
     public Settings getSettings() {
         return this.settings;
     }

http://dive4elements.wald.intevation.org