# HG changeset patch # User Felix Wolfsteller # Date 1382016960 -7200 # Node ID 5eafd73312ae23cad82faa48c92fd70da2a8a698 # Parent 73025e68122cdb65c0c5bf3a766140c87bfdba95 BedHeight(Sounding)Processor: Use FacetTypes. diff -r 73025e68122c -r 5eafd73312ae artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightProcessor.java --- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightProcessor.java Thu Oct 17 15:23:07 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightProcessor.java Thu Oct 17 15:36:00 2013 +0200 @@ -16,6 +16,7 @@ import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; import org.dive4elements.artifacts.CallContext; import org.dive4elements.river.artifacts.model.minfo.BedHeightSingleData; +import org.dive4elements.river.artifacts.model.FacetTypes; import org.dive4elements.river.exports.XYChartGenerator; import org.dive4elements.river.exports.DiagramGenerator; import org.dive4elements.river.jfree.StyledXYSeries; @@ -27,8 +28,6 @@ private final static Logger logger = Logger.getLogger(BedHeightProcessor.class); - private final static String BEDHEIGHT = "bedheight"; - public static final String I18N_AXIS_LABEL_DEFAULT = "Gepeilte Breite [m]"; public static final String I18N_AXIS_LABEL = @@ -90,7 +89,7 @@ @Override public boolean canHandle(String facettype) { - return BEDHEIGHT.equals(facettype); + return FacetTypes.BEDHEIGHT.equals(facettype); } @Override diff -r 73025e68122c -r 5eafd73312ae artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightSoundingProcessor.java --- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightSoundingProcessor.java Thu Oct 17 15:23:07 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightSoundingProcessor.java Thu Oct 17 15:36:00 2013 +0200 @@ -16,6 +16,7 @@ import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; import org.dive4elements.artifacts.CallContext; import org.dive4elements.river.artifacts.model.minfo.BedHeightSingleData; +import org.dive4elements.river.artifacts.model.FacetTypes; import org.dive4elements.river.exports.XYChartGenerator; import org.dive4elements.river.exports.DiagramGenerator; import org.dive4elements.river.jfree.StyledXYSeries; @@ -27,8 +28,6 @@ private final static Logger logger = Logger.getLogger(BedHeightSoundingProcessor.class); - private final static String BEDHEIGHT = "bedheight"; - public static final String I18N_AXIS_LABEL_DEFAULT = "Gepeilte Breite [m]"; public static final String I18N_AXIS_LABEL = @@ -90,7 +89,7 @@ @Override public boolean canHandle(String facettype) { - return BEDHEIGHT.equals(facettype); + return FacetTypes.BEDHEIGHT.equals(facettype); } @Override