comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/MainValuesQFacet.java @ 1809:f6a190f6aaff

Give outputname to artifacts getInitialFacetActivity, generate second pair of MainvalueFacets for discharge curves. flys-artifacts/trunk@3138 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 02 Nov 2011 11:21:57 +0000
parents 69929c471646
children 3b08b8aacfb0
comparison
equal deleted inserted replaced
1808:36de4e32631c 1809:f6a190f6aaff
21 public class MainValuesQFacet 21 public class MainValuesQFacet
22 extends DefaultFacet 22 extends DefaultFacet
23 implements FacetTypes { 23 implements FacetTypes {
24 24
25 /** Trivial Constructor. */ 25 /** Trivial Constructor. */
26 public MainValuesQFacet(String description) { 26 public MainValuesQFacet(String name, String description) {
27 this.description = description; 27 this.description = description;
28 name = COMPUTED_DISCHARGE_MAINVALUES_Q; 28 this.name = name;
29 index = 0; 29 index = 0;
30 } 30 }
31 31
32 32
33 /** 33 /**
48 for (NamedDouble q: qs) { 48 for (NamedDouble q: qs) {
49 xy.add(new StickyAxisAnnotation( 49 xy.add(new StickyAxisAnnotation(
50 q.getName(), 50 q.getName(),
51 (float) q.getValue(), 51 (float) q.getValue(),
52 StickyAxisAnnotation.SimpleAxis.X_AXIS)); 52 StickyAxisAnnotation.SimpleAxis.X_AXIS));
53
54 } 53 }
55 54
56 return new FLYSAnnotation(description, xy); 55 return new FLYSAnnotation(description, xy);
57 } 56 }
58 57
61 * Create a deep copy of this Facet. 60 * Create a deep copy of this Facet.
62 * @return a deep copy. 61 * @return a deep copy.
63 */ 62 */
64 @Override 63 @Override
65 public MainValuesQFacet deepCopy() { 64 public MainValuesQFacet deepCopy() {
66 MainValuesQFacet copy = new MainValuesQFacet(description); 65 MainValuesQFacet copy = new MainValuesQFacet(this.name, description);
67 copy.set(this); 66 copy.set(this);
68 return copy; 67 return copy;
69 } 68 }
70 } 69 }
70 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org