[Dive4elements-commits] [PATCH 5 of 9] Documentation in ChartGenerator added
Wald Commits
scm-commit at wald.intevation.org
Fri Oct 26 16:40:51 CEST 2012
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1351262496 -7200
# Node ID 0aa42c9d58e95ede0d2176bfdfdb51ba49cd3d08
# Parent 32bd5af17eda00921de81cd84f805fc354322057
Documentation in ChartGenerator added.
diff -r 32bd5af17eda -r 0aa42c9d58e9 flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java Fri Oct 26 16:40:09 2012 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java Fri Oct 26 16:41:36 2012 +0200
@@ -71,6 +71,11 @@
* The base class for chart creation. It should provide some basic things that
* equal in all chart types.
*
+ * Annotations are added as FLYSAnnotations and come in mutliple basic forms:
+ * TextAnnotations are labels somewhere in data space, StickyAnnotations are
+ * labels of a slice or line in one data dimension (i.e. visualized as label
+ * on a single axis).
+ *
* @author <a href="mailto:ingo.weinzierl at intevation.de">Ingo Weinzierl</a>
*/
public abstract class ChartGenerator implements OutGenerator {
@@ -1458,8 +1463,10 @@
/**
* Returns the X-Axis range as String array from request document.
+ * If the (x|y)range elements are not found in request document, return
+ * null (i.e. not zoomed).
*
- * @return a String array with [lower, upper].
+ * @return a String array with [lower, upper], null if not in document.
*/
protected String[] getDomainAxisRangeFromRequest() {
Element xrange = (Element)XMLUtils.xpath(
@@ -1481,6 +1488,9 @@
}
+ /** Returns null if the (x|y)range-element was not found in request document.
+ * This usally means that the axis are not manually zoomed, i.e. showing
+ * full data extent. */
protected String[] getValueAxisRangeFromRequest() {
Element yrange = (Element)XMLUtils.xpath(
request,
More information about the Dive4elements-commits
mailing list