felix@7503: /* Copyright (C) 2013 by Bundesanstalt für Gewässerkunde felix@7503: * Software engineering by Intevation GmbH felix@7503: * felix@7503: * This file is Free Software under the GNU AGPL (>=v3) felix@7503: * and comes with ABSOLUTELY NO WARRANTY! Check out the felix@7503: * documentation coming with Dive4Elements River for details. felix@7503: */ felix@7503: package org.dive4elements.river.exports.process; felix@7503: felix@7503: import org.apache.log4j.Logger; felix@7503: felix@7503: import org.dive4elements.river.artifacts.model.FacetTypes; felix@7503: import org.dive4elements.river.exports.DiagramGenerator; felix@7503: aheinecke@7685: public class SedimentLoadM3AProcessor extends SedimentLoadProcessor { felix@7503: felix@7503: private final static Logger logger = felix@7503: Logger.getLogger(SedimentLoadM3AProcessor.class); felix@7503: felix@7503: public static final String I18N_YAXIS_LABEL = felix@7503: "chart.sedimentload.ls.yaxis.label.m3pera"; felix@7503: public static final String I18N_YAXIS_LABEL_DEFAULT = "[m\u00b3/a]"; felix@7503: felix@7503: @Override felix@7503: public boolean canHandle(String facettype) { felix@7503: return FacetTypes.IS.SEDIMENT_LOAD_M3A(facettype) || felix@7503: FacetTypes.SEDIMENT_LOAD_M3A_UNKNOWN.equals(facettype); felix@7503: } felix@7503: felix@7503: @Override felix@7503: public String getAxisLabel(DiagramGenerator generator) { felix@7503: return generator.msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT); felix@7503: } felix@7503: }