comparison gnv-artifacts/src/main/java/de/intevation/gnv/raster/Palette.java @ 448:3cb2bea50456

Generate iso line classes according gnv-issues/issue108 gnv-artifacts/trunk@496 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 03 Jan 2010 12:16:55 +0000
parents 92b7ccbf6163
children c7ca2fce041f
comparison
equal deleted inserted replaced
447:92b7ccbf6163 448:3cb2bea50456
63 public int compareTo(Object other) { 63 public int compareTo(Object other) {
64 Entry e = (Entry)other; 64 Entry e = (Entry)other;
65 if (from < e.from) return -1; 65 if (from < e.from) return -1;
66 if (from > e.from) return +1; 66 if (from > e.from) return +1;
67 return 0; 67 return 0;
68 }
69
70 public double getFrom() {
71 return from;
72 }
73
74 public double getTo() {
75 return to;
68 } 76 }
69 77
70 public Entry locateEntry(double value) { 78 public Entry locateEntry(double value) {
71 Entry current = this; 79 Entry current = this;
72 while (current != null) { 80 while (current != null) {

http://dive4elements.wald.intevation.org