diff gnv-artifacts/src/main/java/de/intevation/gnv/raster/Palette.java @ 438:7399bb8f83ea

Added manager to handle several levels of palette subdivsions. Added parameter ids to identify the palette associated with a parameter gnv-artifacts/trunk@486 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 28 Dec 2009 11:50:27 +0000
parents 67091b17462d
children 92b7ccbf6163
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/raster/Palette.java	Sun Dec 27 05:25:40 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/raster/Palette.java	Mon Dec 28 11:50:27 2009 +0000
@@ -110,7 +110,6 @@
     protected Entry [] entries;
     protected Entry    lookup;
     protected Color [] rgbs;
-    protected String   description;
 
     private Entry buildLookup(Entry [] entries, int lo, int hi) {
         if (lo > hi) {
@@ -127,12 +126,6 @@
     }
 
     public Palette(Document document) {
-        this(document, null);
-    }
-
-    public Palette(Document document, String description) {
-
-        this.description = description;
 
         NodeList rangeNodes = document.getElementsByTagName("range");
 
@@ -230,10 +223,6 @@
         return new Palette(this, N);
     }
 
-    public String getDescription() {
-        return description;
-    }
-
     public int getSize() {
         return rgbs.length;
     }

http://dive4elements.wald.intevation.org