comparison flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java @ 1975:b30e1710df1d

Server-side of interactive cross-section diagrams. flys-artifacts/trunk@3394 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 13 Dec 2011 09:10:48 +0000
parents be1270c10d9a
children ddb7b7da6199
comparison
equal deleted inserted replaced
1974:cdeb31ef20a1 1975:b30e1710df1d
28 * @param series Series to add points to. 28 * @param series Series to add points to.
29 * @param points Points to add to series, points[0] to 1st dim, points[1] 29 * @param points Points to add to series, points[0] to 1st dim, points[1]
30 * to 2nd dim. 30 * to 2nd dim.
31 */ 31 */
32 public static void addPoints(XYSeries series, double[][] points) { 32 public static void addPoints(XYSeries series, double[][] points) {
33 if (points == null || points.length == 0) {
34 return;
35 }
33 double [] xPoints = points[0]; 36 double [] xPoints = points[0];
34 double [] yPoints = points[1]; 37 double [] yPoints = points[1];
35 for (int i = 0; i < xPoints.length; i++) { 38 for (int i = 0; i < xPoints.length; i++) {
36 series.add(xPoints[i], yPoints[i], false); 39 series.add(xPoints[i], yPoints[i], false);
37 } 40 }

http://dive4elements.wald.intevation.org