# HG changeset patch # User Felix Wolfsteller # Date 1327496306 0 # Node ID b817e680cf182e20c142508e0666a5b33f6d4c14 # Parent a079f4e2600154b86d7bb973ec48d4286bb5b465 Cosmetics. flys-artifacts/trunk@3764 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r a079f4e26001 -r b817e680cf18 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Wed Jan 25 10:52:58 2012 +0000 +++ b/flys-artifacts/ChangeLog Wed Jan 25 12:58:26 2012 +0000 @@ -1,3 +1,8 @@ +2012-01-25 Felix Wolfsteller + + * src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java: + Cosmetics, documentation. + 2012-01-25 Sascha L. Teichmann * contrib/visualize-transitions.xsl: Fixed output of the conditions @@ -58,7 +63,7 @@ * src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java: Added new type (duration_curve.mainvalues.q). - + * doc/conf/themes.xml: Added theme mapping for new facet type. * src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java: @@ -85,7 +90,6 @@ and calculate text and line positions accordingly. Removed junk. - 2012-01-23 Felix Wolfsteller Fix compilation. @@ -114,7 +118,7 @@ * src/main/java/de/intevation/flys/themes/ThemeAccess.java: Added new LineStyle class. - + * src/main/java/de/intevation/flys/exports/XYChartGenerator.java: Call addAnnotationsToRenderer later, where positioning information is already known. @@ -123,7 +127,6 @@ CollisionFreeXYText- and XYLineAnnotations. (Area): Helper class. - 2012-01-23 Felix Wolfsteller diff -r a079f4e26001 -r b817e680cf18 flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Wed Jan 25 10:52:58 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Wed Jan 25 12:58:26 2012 +0000 @@ -55,7 +55,8 @@ import org.w3c.dom.NodeList; /** - * The defaul FLYS artifact. + * The default FLYS artifact with convenience added. + * (Subclass to get fully functional artifacts). * * @author Ingo Weinzierl */ @@ -156,6 +157,9 @@ String name = getName(); logger.debug("Set initial state for artifact '" + name + "'"); + if (states == null) { + logger.error("No states found from which a state could be picked."); + } setCurrentState(states.get(0)); String model = XMLUtils.xpathString( @@ -207,6 +211,7 @@ this.addData(name, sd); } + protected Map cloneData() { Map copy = new TreeMap(); @@ -558,6 +563,7 @@ } + /** Return named data item, null if not found. */ public String getDataAsString(String name) { StateData data = getData(name); return data != null ? (String) data.getValue() : null;