Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/HYKArtifact.java @ 2139:923256599afe
Somewhat improved hyk handling and rendering.
flys-artifacts/trunk@3717 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 19 Jan 2012 12:52:44 +0000 |
parents | e50a928187cd |
children | 79044646f4eb |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/HYKArtifact.java Thu Jan 19 11:00:27 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/HYKArtifact.java Thu Jan 19 12:52:44 2012 +0000 @@ -30,6 +30,9 @@ /** Name of Artifact. */ public static final String HYK_ARTIFACT_NAME = "hyk"; + /** Name of data item keeping the hyk id to load formations from. */ + public static final String HYK_ID = "hyk_artifact.data.id"; + /** Name of data item keeping the km of cs master. */ public static final String HYK_KM = "hyk_artifact.data.km"; @@ -56,12 +59,15 @@ { logger.info("HYKArtifact.setup"); - super.setup(identifier, factory, context, callMeta, data); String ids = XMLUtils.xpathString( data, XPATH_IDS, ArtifactNamespaceContext.INSTANCE); - addStringData("ids", ids); + logger.info("HYKArtifact.setup: id is " + ids); + + addStringData(HYK_ID, ids); + + super.setup(identifier, factory, context, callMeta, data); } @@ -96,6 +102,11 @@ return getDataAsDouble(HYK_KM); } + /** Get hyk-id from state data. */ + public int getHykId() { + return getDataAsInteger(HYK_ID); + } + /** Do not copy data from daddyfact. */ @Override protected void initialize( @@ -120,5 +131,25 @@ + state.getID() + ")."); } } + + + /** + * Determines Facets initial disposition regarding activity (think of + * selection in Client ThemeList GUI). This will be checked one time + * when the facet enters a collections describe document. + * + * @param facetName name of the facet. + * @param index index of the facet. + * + * @return Always 0. Hyk Data will enter plots inactive. + */ + @Override + public int getInitialFacetActivity( + String outputName, + String facetName, + int index) + { + return 0; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :