Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/XYColumn.java @ 427:a95aaeb206f7
Added data model classes to store information for interpolation.
gnv-artifacts/trunk@475 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 22 Dec 2009 13:10:56 +0000 |
parents | |
children | bed9735adf84 |
comparison
equal
deleted
inserted
replaced
426:3a0c0ad113d9 | 427:a95aaeb206f7 |
---|---|
1 package de.intevation.gnv.math; | |
2 | |
3 import java.util.ArrayList; | |
4 import java.util.List; | |
5 | |
6 /** | |
7 * @author Ingo Weinzierl <ingo.weinzierl@intevation.de> | |
8 */ | |
9 public class XYColumn { | |
10 | |
11 private double x; | |
12 private double y; | |
13 | |
14 private int i; | |
15 private int j; | |
16 | |
17 private List values; | |
18 | |
19 public XYColumn(double x, double y, int i, int j) { | |
20 this.x = x; | |
21 this.y = y; | |
22 this.i = i; | |
23 this.j = j; | |
24 | |
25 values = new ArrayList(); | |
26 } | |
27 | |
28 | |
29 public void add(HeightValue value) { | |
30 values.add(value); | |
31 } | |
32 | |
33 | |
34 public HeightValue[] getValues() { | |
35 return (HeightValue[]) values.toArray(new HeightValue[values.size()]); | |
36 } | |
37 } |