comparison artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstDepthProcessor.java @ 9592:e8d8f90308dc

Punkt 11.2 - Fließtiefe bundu und sinfo verschiedene Labels
author gernotbelger
date Fri, 11 Jan 2019 16:58:44 +0100
parents 3fa8551c3d1b
children 5395c6d4ca50
comparison
equal deleted inserted replaced
9591:ccbf8413ddbb 9592:e8d8f90308dc
44 44
45 private static final String FACET_FIELD_DEPTH_FORMAT = FACET_FIELD_DEPTH_PREFIX + "%02d.filtered"; 45 private static final String FACET_FIELD_DEPTH_FORMAT = FACET_FIELD_DEPTH_PREFIX + "%02d.filtered";
46 46
47 private static final String FACET_FIELD_DEPTH_DESCRIPTION = "bundu_facet_field_depth.description"; 47 private static final String FACET_FIELD_DEPTH_DESCRIPTION = "bundu_facet_field_depth.description";
48 48
49 private static final String AXIS_LABEL = "sinfo.chart.flow_depth.section.yaxis.label"; 49 private static final String AXIS_LABEL = "bundu.chart.flow_depth.section.yaxis.label";
50 50
51 private static final Set<String> HANDLED_FACET_TYPES = new HashSet<>(); 51 private static final Set<String> HANDLED_FACET_TYPES = new HashSet<>();
52 52
53 static { 53 static {
54 HANDLED_FACET_TYPES.add(FACET_FLOWDEPTH_FILTERED); 54 HANDLED_FACET_TYPES.add(FACET_FLOWDEPTH_FILTERED);
59 59
60 public BezugswstDepthProcessor() { 60 public BezugswstDepthProcessor() {
61 super(AXIS_LABEL, HANDLED_FACET_TYPES); 61 super(AXIS_LABEL, HANDLED_FACET_TYPES);
62 } 62 }
63 63
64 public static Facet createFlowdepthFilteredFacet(final CallContext context, final String hash, final String id, final int facetIndex, 64 public static Facet createFlowdepthFilteredFacet(final CallContext context, final String hash, final String id, final int facetIndex, final int resultIndex,
65 final int resultIndex, final String seriesName) { 65 final String seriesName) {
66 66
67 final String description = Resources.getMsg(context.getMeta(), FACET_FLOWDEPTH_FILTERED_DESCRIPTION, FACET_FLOWDEPTH_FILTERED_DESCRIPTION, seriesName); 67 final String description = Resources.getMsg(context.getMeta(), FACET_FLOWDEPTH_FILTERED_DESCRIPTION, FACET_FLOWDEPTH_FILTERED_DESCRIPTION, seriesName);
68 return new BezugswstResultFacet(facetIndex, resultIndex, FACET_FLOWDEPTH_FILTERED, description, AXIS_LABEL, id, hash); 68 return new BezugswstResultFacet(facetIndex, resultIndex, FACET_FLOWDEPTH_FILTERED, description, AXIS_LABEL, id, hash);
69 } 69 }
70 70
71 public static Facet createChanneldepthFacet(final CallContext context, final String hash, final String id, final int facetIndex, 71 public static Facet createChanneldepthFacet(final CallContext context, final String hash, final String id, final int facetIndex, final int resultIndex) {
72 final int resultIndex) {
73 72
74 final String description = Resources.getMsg(context.getMeta(), FACET_CHANNELDEPTH_DESCRIPTION, FACET_CHANNELDEPTH_DESCRIPTION); 73 final String description = Resources.getMsg(context.getMeta(), FACET_CHANNELDEPTH_DESCRIPTION, FACET_CHANNELDEPTH_DESCRIPTION);
75 return new BezugswstResultFacet(facetIndex, resultIndex, FACET_CHANNELDEPTH, description, AXIS_LABEL, id, hash); 74 return new BezugswstResultFacet(facetIndex, resultIndex, FACET_CHANNELDEPTH, description, AXIS_LABEL, id, hash);
76 } 75 }
77 76
78 public static Facet createFieldDepthFacet(final CallContext context, final String hash, final String id, final int facetIndex, 77 public static Facet createFieldDepthFacet(final CallContext context, final String hash, final String id, final int facetIndex, final int resultIndex,
79 final int resultIndex, final int fieldIndex) { 78 final int fieldIndex) {
80 79
81 final String description = Resources.getMsg(context.getMeta(), FACET_FIELD_DEPTH_DESCRIPTION, FACET_FIELD_DEPTH_DESCRIPTION, fieldIndex); 80 final String description = Resources.getMsg(context.getMeta(), FACET_FIELD_DEPTH_DESCRIPTION, FACET_FIELD_DEPTH_DESCRIPTION, fieldIndex);
82 final String facetName = String.format(FACET_FIELD_DEPTH_FORMAT, fieldIndex); 81 final String facetName = String.format(FACET_FIELD_DEPTH_FORMAT, fieldIndex);
83 return new BezugswstResultFacet(facetIndex, resultIndex, facetName, description, AXIS_LABEL, id, hash); 82 return new BezugswstResultFacet(facetIndex, resultIndex, facetName, description, AXIS_LABEL, id, hash);
84 } 83 }

http://dive4elements.wald.intevation.org