Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WW.java @ 2184:fc86fcfe503e
Only add one legend item for manual point themes.
flys-artifacts/trunk@3788 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 27 Jan 2012 11:19:16 +0000 |
parents | 5ff481ab24a1 |
children | ec2574eb2d32 |
line wrap: on
line source
package de.intevation.flys.artifacts.model; import gnu.trove.TDoubleArrayList; public class WW extends W { protected TDoubleArrayList ws2; public WW() { } public WW(String name) { super(name); } public WW(int capacity) { this(capacity, ""); } public WW(int capacity, String name) { super(capacity, name); ws2 = new TDoubleArrayList(capacity); } public void add(double w1, double w2) { ws .add(w1); ws2.add(w2); } public double getW2(int idx) { return ws2.getQuick(idx); } public double [] getWs2() { return ws2.toNativeArray(); } @Override public double [] get(int idx) { return get(idx, new double[2]); } @Override public double [] get(int idx, double [] dst) { dst[0] = ws .getQuick(idx); dst[1] = ws2.getQuick(idx); return dst; } @Override public void removeNaNs() { removeNaNs(new TDoubleArrayList [] { ws, ws2 }); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :