Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/SInfoResultType.java @ 9115:a165cd63099f
Added datacage select and chart display for river infrastructure heights loaded from database
author | mschaefer |
---|---|
date | Mon, 04 Jun 2018 11:55:08 +0200 |
parents | 189cc8ededbd |
children | 623b51bf03d7 |
comparison
equal
deleted
inserted
replaced
9114:31b3cae5de0d | 9115:a165cd63099f |
---|---|
448 protected NumberFormat createFormatter(final CallContext context) { | 448 protected NumberFormat createFormatter(final CallContext context) { |
449 return Formatter.getFlowDepth(context); | 449 return Formatter.getFlowDepth(context); |
450 } | 450 } |
451 }; | 451 }; |
452 | 452 |
453 public static final SInfoResultType infrastructureHeight = new SInfoResultType(I18NStrings.UNIT_M, SInfoI18NStrings.CSV_INFRASTRUCTURE_HEIGHT_HEADER) { | |
454 private static final long serialVersionUID = 1L; | |
455 | |
456 @Override | |
457 public String exportValue(final CallContext context, final Object value) { | |
458 final double doubleValue = asDouble(value); | |
459 return exportDoubleValue(context, doubleValue); | |
460 } | |
461 | |
462 @Override | |
463 protected NumberFormat createFormatter(final CallContext context) { | |
464 return Formatter.getInfrastructureHeight(context); | |
465 } | |
466 }; | |
467 | |
453 } | 468 } |