|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectskrueger.geotools.AbstractStyledLayer<GridCoverage2D>
skrueger.geotools.StyledGridCoverage
public class StyledGridCoverage
This class provides a simple implementation of StyledLayerInterface
for GridCoverage2D
. The uncache functionality is not supported,
because this class bases on an existing GridCoverage2D
object in
memory.
Field Summary | |
---|---|
protected RasterLegendData |
legendData
Holds the meta data for displaying a legend. |
Fields inherited from class skrueger.geotools.AbstractStyledLayer |
---|
crs, desc, envelope, geoObject, icon, id, keywords, LOGGER, style, title |
Constructor Summary | |
---|---|
StyledGridCoverage(GridCoverage2D gc,
String id,
String title,
String desc,
String keywords,
StyledLayerStyle<RasterLegendData> style,
ImageIcon icon)
Creates a styled grid with non-translated informations. |
|
StyledGridCoverage(GridCoverage2D gc,
String id,
String title,
String desc,
String keywords,
Style style,
RasterLegendData legendData,
ImageIcon icon)
Creates a styled grid with non-translated informations. |
|
StyledGridCoverage(GridCoverage2D gc,
String id,
String title,
StyledLayerStyle<RasterLegendData> style)
Creates a styled grid with a non-translated title, no long description, no keywords and no icon. |
|
StyledGridCoverage(GridCoverage2D gc,
String id,
String title,
Style style,
RasterLegendData legendData)
Creates a styled grid with a non-translated title, no long description, no keywords and no icon. |
|
StyledGridCoverage(GridCoverage2D gc,
String id,
Translation title,
Style style,
RasterLegendData legendData)
Creates a styled grid with a language-specific title, no long description, no keywords and no icon. |
|
StyledGridCoverage(GridCoverage2D gc,
String id,
Translation title,
Translation desc,
Translation keywords,
StyledLayerStyle<RasterLegendData> style,
ImageIcon icon)
Creates a styled grid with language-specific informations. |
|
StyledGridCoverage(GridCoverage2D gc,
String id,
Translation title,
Translation desc,
Translation keywords,
Style style,
RasterLegendData legendData,
ImageIcon icon)
Creates a styled grid with language-specific informations. |
Method Summary | |
---|---|
protected Style |
createDefaultStyle()
Creates a default style for a GridCoverage2D . |
void |
dispose()
Simply sets the AbstractStyledLayer.geoObject , AbstractStyledLayer.crs , AbstractStyledLayer.envelope and
legendData to null . |
URL |
getInfoURL()
Returns the URL to a (HTML) file that provides more information
about this layer. |
RasterLegendData |
getLegendMetaData()
Returns the meta data needed for displaying a legend. |
boolean |
isDisposed()
Tests whether the geo object is disposed. |
void |
setLegendMetaData(RasterLegendData legendData)
Sets the meta data needed for displaying a legend. |
void |
uncache()
Does nothing, because the AbstractStyledLayer bases on existing
objects (in memory) which can not be uncached and reloaded. |
Methods inherited from class skrueger.geotools.AbstractStyledLayer |
---|
getCrs, getCRSString, getDesc, getEnvelope, getGeoObject, getId, getImageIcon, getKeywords, getStyle, getTitle, setDesc, setDesc, setImageIcon, setKeywords, setKeywords, setStyle, setTitle, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface skrueger.geotools.StyledLayerInterface |
---|
getCrs, getCRSString, getDesc, getEnvelope, getGeoObject, getId, getImageIcon, getKeywords, getStyle, getTitle, setDesc, setImageIcon, setKeywords, setStyle, setTitle |
Field Detail |
---|
protected RasterLegendData legendData
Constructor Detail |
---|
public StyledGridCoverage(GridCoverage2D gc, String id, Translation title, Translation desc, Translation keywords, Style style, RasterLegendData legendData, ImageIcon icon)
gc
- the gridid
- a unique ID for the objecttitle
- a (language-specific) short descriptiondesc
- a (language-specific) long descriptionkeywords
- (language-specific) keywords for the geo objectsstyle
- a display style (if null
, a default style is created)legendData
- meta data for displaying a legendicon
- an icon for the object (can be null
)
IllegalArgumentException
- if null
is given as ID or geo objectpublic StyledGridCoverage(GridCoverage2D gc, String id, Translation title, Translation desc, Translation keywords, StyledLayerStyle<RasterLegendData> style, ImageIcon icon)
gc
- the gridid
- a unique ID for the objecttitle
- a (language-specific) short descriptiondesc
- a (language-specific) long descriptionkeywords
- (language-specific) keywords for the geo objectsstyle
- a display style with legend informationicon
- an icon for the object (can be null
)
IllegalArgumentException
- if null
is given as ID or geo objectpublic StyledGridCoverage(GridCoverage2D gc, String id, Translation title, Style style, RasterLegendData legendData)
gc
- the gridid
- a unique ID for the objecttitle
- a short descriptionstyle
- a display style (if null
, a default style is created)legendData
- meta data for displaying a legend
IllegalArgumentException
- if null
is given as ID or geo objectpublic StyledGridCoverage(GridCoverage2D gc, String id, String title, String desc, String keywords, Style style, RasterLegendData legendData, ImageIcon icon)
gc
- the gridid
- a unique ID for the objecttitle
- a short descriptiondesc
- a long descriptionkeywords
- keywords for the geo objectsstyle
- a display style (if null
, a default style is created)legendData
- meta data for displaying a legendicon
- an icon for the object (can be null
)
IllegalArgumentException
- if null
is given as ID or geo objectpublic StyledGridCoverage(GridCoverage2D gc, String id, String title, String desc, String keywords, StyledLayerStyle<RasterLegendData> style, ImageIcon icon)
gc
- the gridid
- a unique ID for the objecttitle
- a short descriptiondesc
- a long descriptionkeywords
- keywords for the geo objectsstyle
- a display style with legend informationicon
- an icon for the object (can be null
)
IllegalArgumentException
- if null
is given as ID or geo objectpublic StyledGridCoverage(GridCoverage2D gc, String id, String title, Style style, RasterLegendData legendData)
gc
- the gridid
- a unique ID for the objecttitle
- a short descriptionstyle
- a display style (if null
, a default style is created)
IllegalArgumentException
- if null
is given as ID or geo objectpublic StyledGridCoverage(GridCoverage2D gc, String id, String title, StyledLayerStyle<RasterLegendData> style)
gc
- the gridid
- a unique ID for the objecttitle
- a short descriptionstyle
- a display style with legend information
IllegalArgumentException
- if null
is given as ID or geo objectMethod Detail |
---|
protected Style createDefaultStyle()
GridCoverage2D
.
createDefaultStyle
in class AbstractStyledLayer<GridCoverage2D>
GridUtil.createDefaultStyle()
public RasterLegendData getLegendMetaData()
getLegendMetaData
in interface StyledRasterInterface<GridCoverage2D>
RasterLegendData
object with pairs of value / label
informationpublic void setLegendMetaData(RasterLegendData legendData)
legendData
is null
an empty RasterLegendData
(without gaps) is set, so getLegendMetaData()
never returns null
.
legendData
- legend meta datapublic void dispose()
AbstractStyledLayer.geoObject
, AbstractStyledLayer.crs
, AbstractStyledLayer.envelope
and
legendData
to null
.
dispose
in interface StyledLayerInterface<GridCoverage2D>
public boolean isDisposed()
isDisposed
in interface StyledLayerInterface<GridCoverage2D>
public void uncache()
AbstractStyledLayer
bases on existing
objects (in memory) which can not be uncached and reloaded.
uncache
in interface StyledLayerInterface<GridCoverage2D>
public URL getInfoURL()
StyledLayerInterface
URL
to a (HTML) file that provides more information
about this layer. If no HTML if associated with this
StyledLayerInterface
, then null
will be returned.
getInfoURL
in interface StyledLayerInterface<GridCoverage2D>
URL
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |