changeset 4444:47d50572844a

Add method to a access the CallContext of a ChartGenerator Don't access the member variable directly. Always use getters and setters to declare a contract to another class. Public or proteced members would extend the contract.
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 07 Nov 2012 14:12:39 +0100
parents af728a5e0329
children 0eca080fc162
files flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Wed Nov 07 14:07:52 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Wed Nov 07 14:12:39 2012 +0100
@@ -1885,5 +1885,14 @@
             "chart.encoding",
             ChartExportHelper.DEFAULT_ENCODING);
     }
+
+    /**
+     * Retuns the call context. May be null if init hasn't been called yet.
+     *
+     * @return the CallContext instance
+     */
+    public CallContext getCallContext() {
+        return context;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org