Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/TkhProcessor.java @ 8948:a4f1ac81f26d
Work on SINFO-FlowDepthMinMax.
Also rework of result row stuff, in order to reduce abstraction, using result type concept
author | gernotbelger |
---|---|
date | Wed, 14 Mar 2018 14:10:32 +0100 |
parents | 5d5d482da3e9 |
children | 0ddeeb413fae |
comparison
equal
deleted
inserted
replaced
8947:86650594f051 | 8948:a4f1ac81f26d |
---|---|
47 @Override | 47 @Override |
48 protected String generateSeries(final DiagramGenerator generator, final ArtifactAndFacet bundle, final ThemeDocument theme, final boolean visible) { | 48 protected String generateSeries(final DiagramGenerator generator, final ArtifactAndFacet bundle, final ThemeDocument theme, final boolean visible) { |
49 final CallContext context = generator.getCallContext(); | 49 final CallContext context = generator.getCallContext(); |
50 | 50 |
51 final String facetName = bundle.getFacetName(); | 51 final String facetName = bundle.getFacetName(); |
52 final AbstractTkhCalculationResult<?> data = (AbstractTkhCalculationResult<?>) bundle.getData(context); | 52 final AbstractTkhCalculationResult data = (AbstractTkhCalculationResult) bundle.getData(context); |
53 if (data == null) { | 53 if (data == null) { |
54 // Check has been here before so we keep it for security reasons | 54 // Check has been here before so we keep it for security reasons |
55 // this should never happen though. | 55 // this should never happen though. |
56 throw new IllegalStateException("Data is null for facet: " + facetName); | 56 throw new IllegalStateException("Data is null for facet: " + facetName); |
57 } | 57 } |
73 generator.addAreaSeries(area, getAxisName(), visible); | 73 generator.addAreaSeries(area, getAxisName(), visible); |
74 | 74 |
75 return null; | 75 return null; |
76 } | 76 } |
77 | 77 |
78 public static Facet createTkhFacet(final CallContext context, final String hash, final String id, final AbstractSInfoCalculationResult<?> result, | 78 public static Facet createTkhFacet(final CallContext context, final String hash, final String id, final AbstractSInfoCalculationResult result, |
79 final int index) { | 79 final int index) { |
80 | 80 |
81 final String facetTkhDescription = Resources.getMsg(context.getMeta(), I18N_FACET_TKH_DESCRIPTION, I18N_FACET_TKH_DESCRIPTION, | 81 final String facetTkhDescription = Resources.getMsg(context.getMeta(), I18N_FACET_TKH_DESCRIPTION, I18N_FACET_TKH_DESCRIPTION, |
82 result.getLabel()); | 82 result.getLabel()); |
83 // FIXME: doe not work yet... | 83 // FIXME: doe not work yet... |