skrueger
Class RasterLegendData

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<Double,Translation>
          extended by skrueger.RasterLegendData
All Implemented Interfaces:
Serializable, Cloneable, Map<Double,Translation>

public class RasterLegendData
extends HashMap<Double,Translation>

Holds all the additional information needed to paint a Legend for a RasterLayer. So far, only Legends for one-band raster layers are supported.

Author:
Stefan Alfons Krüger
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
RasterLegendData(boolean paintGaps)
          paintGaps defines, if gaps should be painted between the legends colors, indicating nominal values in the raster (e.g. classifications)
 
Method Summary
 boolean getPaintGaps()
           
 List<Double> getSortedKeys()
           
 Boolean isPaintGaps()
           
 void setPaintGaps(boolean paintPaps)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

RasterLegendData

public RasterLegendData(boolean paintGaps)
paintGaps defines, if gaps should be painted between the legends colors, indicating nominal values in the raster (e.g. classifications)

Method Detail

isPaintGaps

public Boolean isPaintGaps()

setPaintGaps

public void setPaintGaps(boolean paintPaps)

getPaintGaps

public boolean getPaintGaps()

getSortedKeys

public List<Double> getSortedKeys()