Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/FastCrossSectionLine.java @ 2860:2f874d14ac68
Use Doubles to store meassure points of profiles.
flys-backend/trunk@4325 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 02 May 2012 08:49:57 +0000 |
parents | e237a08acf6e |
children |
comparison
equal
deleted
inserted
replaced
2859:ed13816047b3 | 2860:2f874d14ac68 |
---|---|
2 | 2 |
3 import java.util.List; | 3 import java.util.List; |
4 import java.util.Comparator; | 4 import java.util.Comparator; |
5 | 5 |
6 import java.io.Serializable; | 6 import java.io.Serializable; |
7 | |
8 import java.math.BigDecimal; | |
9 | 7 |
10 import java.awt.geom.Point2D; | 8 import java.awt.geom.Point2D; |
11 | 9 |
12 public class FastCrossSectionLine | 10 public class FastCrossSectionLine |
13 implements Serializable | 11 implements Serializable |
40 this(km); | 38 this(km); |
41 this.points = points; | 39 this.points = points; |
42 } | 40 } |
43 | 41 |
44 public FastCrossSectionLine(CrossSectionLine csl) { | 42 public FastCrossSectionLine(CrossSectionLine csl) { |
45 BigDecimal kmBD = csl.getKm(); | 43 Double kmBD = csl.getKm(); |
46 km = kmBD != null ? kmBD.doubleValue() : 0d; | 44 km = kmBD != null ? kmBD.doubleValue() : 0d; |
47 points = csl.fetchCrossSectionLinesPoints(); | 45 points = csl.fetchCrossSectionLinesPoints(); |
48 } | 46 } |
49 | 47 |
50 public double getKm() { | 48 public double getKm() { |