# HG changeset patch # User Felix Wolfsteller # Date 1341343808 0 # Node ID 112c3f0fc0754333c807ca54f9ed9892a858ec95 # Parent 1cad94fa081732b265bfa45bc7a8b38c3baeae8e Only show labels when activated in theme. flys-artifacts/trunk@4870 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 1cad94fa0817 -r 112c3f0fc075 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Tue Jul 03 17:51:52 2012 +0000 +++ b/flys-artifacts/ChangeLog Tue Jul 03 19:30:08 2012 +0000 @@ -1,3 +1,9 @@ +2012-07-03 Felix Wolfsteller + + * src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java: + Only show labels if enabled in theme. Commented (failed) trials to get the + text rotation right. + 2012-07-03 Felix Wolfsteller * src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java: diff -r 1cad94fa0817 -r 112c3f0fc075 flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java Tue Jul 03 17:51:52 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java Tue Jul 03 19:30:08 2012 +0000 @@ -21,6 +21,7 @@ import de.intevation.flys.jfree.StyledTimeSeries; import de.intevation.flys.utils.FLYSUtils; +import de.intevation.flys.utils.ThemeUtil; import java.awt.BasicStroke; import java.awt.Color; @@ -52,6 +53,8 @@ import org.jfree.data.time.TimeSeries; import org.jfree.data.time.TimeSeriesCollection; +//import org.jfree.ui.TextAnchor; + import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -309,6 +312,8 @@ protected void doQWDTextAnnotations(Map annoIdxMap, TimeSeriesCollection tsc, QWD[] qwds, Document theme, boolean visible) { + if (!ThemeUtil.parseShowLineLabel(theme)) + return; List textAnnos = new ArrayList(); Set> entries = annoIdxMap.entrySet(); for(Map.Entry entry : entries) { @@ -319,6 +324,8 @@ qwd.getQ() + " m\u00B3/s", x, qwd.getDeltaW()); + //anno.setRotationAngle(200f*Math.PI/180f); + //anno.setRotationAnchor(TextAnchor.CENTER_LEFT); textAnnos.add(anno); logger.debug("annotation: " + x + "/" + qwd.getDeltaW()); }