Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java @ 4589:afd817b006b7
Documentation added.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 29 Nov 2012 10:27:31 +0100 |
parents | 47d50572844a |
children | 56fbdcdb7ff2 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java Wed Nov 28 11:29:04 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java Thu Nov 29 10:27:31 2012 +0100 @@ -495,6 +495,8 @@ public abstract JFreeChart generateChart(); + /** For every outable (i.e. facets), this function is + * called and handles the data accordingly. */ @Override public abstract void doOut( ArtifactAndFacet bundle, @@ -699,12 +701,14 @@ } + /** Sets the master artifact. */ @Override public void setMasterArtifact(Artifact master) { this.master = master; } + /** Sets the collection. */ @Override public void setCollection(FLYSArtifactCollection collection) { this.collection = collection; @@ -1384,10 +1388,21 @@ } + /** + * Look up \param key in i18n dictionary. + * @param key key for which to find i18nd version. + * @param def default, returned if lookup failed. + * @return value found in i18n dictionary, \param def if no value found. + */ protected String msg(String key, String def) { return Resources.getMsg(context.getMeta(), key, def); } + /** + * Look up \param key in i18n dictionary. + * @param key key for which to find i18nd version. + * @return value found in i18n dictionary, key itself if failed. + */ protected String msg(String key) { return Resources.getMsg(context.getMeta(), key, key); }