comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/MainValuesWFacet.java @ 4434:60c728e557f4

Backed out changeset e8a4d2fd25cc
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 07 Nov 2012 12:28:50 +0100
parents e8a4d2fd25cc
children
comparison
equal deleted inserted replaced
4432:e8a4d2fd25cc 4434:60c728e557f4
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()");
87 MainValuesArtifact mvArtifact = (MainValuesArtifact) artifact; 86 MainValuesArtifact mvArtifact = (MainValuesArtifact) artifact;
88 87
89 List<NamedDouble> ws = mvArtifact.getMainValuesW(isAtGauge); 88 List<NamedDouble> ws = mvArtifact.getMainValuesW(isAtGauge);
90 List<StickyAxisAnnotation> xy = new ArrayList<StickyAxisAnnotation>(); 89 List<StickyAxisAnnotation> xy = new ArrayList<StickyAxisAnnotation>();
91 90
101 DurationCurveFacet.BB_DURATIONCURVE, 100 DurationCurveFacet.BB_DURATIONCURVE,
102 null, 101 null,
103 context); 102 context);
104 } 103 }
105 104
106 logger.debug("MainValuesWFacet: Will give " + ws.size() + " annotations.");
107 for (NamedDouble w: ws) { 105 for (NamedDouble w: ws) {
108 StickyAxisAnnotation annotation = 106 StickyAxisAnnotation annotation =
109 new StickyAxisAnnotation( 107 new StickyAxisAnnotation(
110 w.getName(), 108 w.getName(),
111 (float) w.getValue(), 109 (float) w.getValue(),

http://dive4elements.wald.intevation.org