|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.TreeMap<Double,Translation>
skrueger.RasterLegendData
public class RasterLegendData
Holds all the additional information needed to paint a Legend for a RasterLayer. So far, only Legends for one-band raster layers are supported.
Copyable
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 | |
---|---|
RasterLegendData |
copy()
Creates a new RasterLegendData object with identical values |
RasterLegendData |
copyTo(RasterLegendData target)
Deep-copies all values of this RasterLegendData to another
RasterLegendData |
Map<Double,GridCoverage2D> |
createSampleRasters()
Creates a sample GridCoverage2D (size 1x1, WGS84) for each legend
value. |
List<Double> |
getSortedKeys()
Returns a new list containing all Double values that shall apear
in the legend. |
Boolean |
isPaintGaps()
Shall bigger gaps be painted between the raster images |
void |
setPaintGaps(boolean paintPaps)
|
Methods inherited from class java.util.TreeMap |
---|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, isEmpty, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode, isEmpty |
Constructor Detail |
---|
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 |
---|
public Boolean isPaintGaps()
public void setPaintGaps(boolean paintPaps)
public List<Double> getSortedKeys()
Double
values that shall apear
in the legend.
public Map<Double,GridCoverage2D> createSampleRasters()
GridCoverage2D
(size 1x1, WGS84) for each legend
value. These rasters can be used to do visualize the legend item in the
corresponding color via GridCoverageRenderer
.
public RasterLegendData copy()
RasterLegendData
object with identical values
copy
in interface Copyable<RasterLegendData>
public RasterLegendData copyTo(RasterLegendData target)
RasterLegendData
to another
RasterLegendData
copyTo
in interface Copyable<RasterLegendData>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |