Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/SInfoResultType.java @ 9117:623b51bf03d7
Added datacage select and chart display for river bed collision counts loaded from database
author | mschaefer |
---|---|
date | Mon, 04 Jun 2018 17:31:51 +0200 |
parents | a165cd63099f |
children | e6b63b2b41b9 |
comparison
equal
deleted
inserted
replaced
9116:edc3958b3ed2 | 9117:623b51bf03d7 |
---|---|
463 protected NumberFormat createFormatter(final CallContext context) { | 463 protected NumberFormat createFormatter(final CallContext context) { |
464 return Formatter.getInfrastructureHeight(context); | 464 return Formatter.getInfrastructureHeight(context); |
465 } | 465 } |
466 }; | 466 }; |
467 | 467 |
468 public static final SInfoResultType collisionCount = new SInfoResultType(I18NStrings.UNIT_NONE, SInfoI18NStrings.CSV_COLLISION_COUNT_HEADER) { | |
469 private static final long serialVersionUID = 1L; | |
470 | |
471 @Override | |
472 public String exportValue(final CallContext context, final Object value) { | |
473 final double doubleValue = asDouble(value); | |
474 return exportDoubleValue(context, doubleValue); | |
475 } | |
476 | |
477 @Override | |
478 protected NumberFormat createFormatter(final CallContext context) { | |
479 return Formatter.getCollisionCount(context); | |
480 } | |
481 }; | |
482 | |
483 public static final SInfoResultType collisionGaugeW = new SInfoResultType(I18NStrings.UNIT_CM, SInfoI18NStrings.CSV_COLLISION_GAUGEW_HEADER) { | |
484 private static final long serialVersionUID = 1L; | |
485 | |
486 @Override | |
487 public String exportValue(final CallContext context, final Object value) { | |
488 final double doubleValue = asDouble(value); | |
489 return exportDoubleValue(context, doubleValue); | |
490 } | |
491 | |
492 @Override | |
493 protected NumberFormat createFormatter(final CallContext context) { | |
494 return Formatter.getCollisionGaugeW(context); | |
495 } | |
496 }; | |
497 | |
468 } | 498 } |