Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/MainValuesWFacet.java @ 4432:e8a4d2fd25cc
Merged.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 07 Nov 2012 09:47:44 +0100 |
parents | 89083b82b8cd |
children | 5b8919ef601d |
comparison
equal
deleted
inserted
replaced
4431:83fe6eeba83a | 4432:e8a4d2fd25cc |
---|---|
81 * | 81 * |
82 * @return the data. | 82 * @return the data. |
83 */ | 83 */ |
84 @Override | 84 @Override |
85 public Object getData(Artifact artifact, CallContext context) { | 85 public Object getData(Artifact artifact, CallContext context) { |
86 logger.debug("MainValuesWFacet.getData()"); | |
86 MainValuesArtifact mvArtifact = (MainValuesArtifact) artifact; | 87 MainValuesArtifact mvArtifact = (MainValuesArtifact) artifact; |
87 | 88 |
88 List<NamedDouble> ws = mvArtifact.getMainValuesW(isAtGauge); | 89 List<NamedDouble> ws = mvArtifact.getMainValuesW(isAtGauge); |
89 List<StickyAxisAnnotation> xy = new ArrayList<StickyAxisAnnotation>(); | 90 List<StickyAxisAnnotation> xy = new ArrayList<StickyAxisAnnotation>(); |
90 | 91 |
100 DurationCurveFacet.BB_DURATIONCURVE, | 101 DurationCurveFacet.BB_DURATIONCURVE, |
101 null, | 102 null, |
102 context); | 103 context); |
103 } | 104 } |
104 | 105 |
106 logger.debug("MainValuesWFacet: Will give " + ws.size() + " annotations."); | |
105 for (NamedDouble w: ws) { | 107 for (NamedDouble w: ws) { |
106 StickyAxisAnnotation annotation = | 108 StickyAxisAnnotation annotation = |
107 new StickyAxisAnnotation( | 109 new StickyAxisAnnotation( |
108 w.getName(), | 110 w.getName(), |
109 (float) w.getValue(), | 111 (float) w.getValue(), |