skrueger.geotools
Interface StyledLayerInterface<E>

All Known Subinterfaces:
StyledFeatureCollectionInterface, StyledFeaturesInterface<T>, StyledFeatureSourceInterface, StyledGridCoverageInterface, StyledGridCoverageReaderInterface, StyledRasterInterface<E>, StyledRasterPyramidInterface
All Known Implementing Classes:
AbstractStyledLayer, StyledFeatureCollection, StyledFS, StyledGridCoverage, StyledGridCoverageReader

public interface StyledLayerInterface<E>

This class is the top interface for styled objects to be managed in MapContextManagerInterface. The (rough) classe structure is the following:


Restrictions:


Method Summary
 void dispose()
          Should be called when this Object is not needed anymore.
 CoordinateReferenceSystem getCrs()
           
 String getCRSString()
           
 Translation getDesc()
           
 Envelope getEnvelope()
           
 E getGeoObject()
          Returns the underlying GeoTools Object
 String getId()
           
 ImageIcon getImageIcon()
           
 URL getInfoURL()
          Returns the URL to a (HTML) file that provides more information about this layer.
 Translation getKeywords()
           
 Style getStyle()
           
 Translation getTitle()
           
 boolean isDisposed()
          Is the object already disposed?
 void setDesc(Translation dec)
           
 void setImageIcon(ImageIcon icon)
           
 void setKeywords(Translation keywords)
           
 void setStyle(Style style)
           
 void setTitle(Translation title)
           
 void uncache()
          Clears any caches.
 

Method Detail

getId

String getId()

getTitle

Translation getTitle()

setTitle

void setTitle(Translation title)

getDesc

Translation getDesc()

setDesc

void setDesc(Translation dec)

getKeywords

Translation getKeywords()

setKeywords

void setKeywords(Translation keywords)

getCrs

CoordinateReferenceSystem getCrs()

getCRSString

String getCRSString()

getEnvelope

Envelope getEnvelope()

getImageIcon

ImageIcon getImageIcon()
Returns:
return an ImageIcon - null is valid and no icon or a default icon will then be shown

setImageIcon

void setImageIcon(ImageIcon icon)

getGeoObject

E getGeoObject()
Returns the underlying GeoTools Object

Throws:
RuntimeException

getStyle

Style getStyle()

setStyle

void setStyle(Style style)

getInfoURL

URL getInfoURL()
Returns the 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.

Returns:
null or an URL

dispose

void dispose()
Should be called when this Object is not needed anymore.


isDisposed

boolean isDisposed()
Is the object already disposed? *


uncache

void uncache()
Clears any caches. For example the GeoObject could be released, and reread on next call of getGeoObject()