|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectskrueger.geotools.StyledFS
public class StyledFS
This class enables a non Atlas context to use the Atlas LayerPanel
JPanel
as a MapContextManagerInterface
Constructor Summary | |
---|---|
StyledFS(FeatureSource fs,
File sldFile)
This class enables a non Atlas context to use the Atlas LayerPanel JPanel as a MapContextManagerInterface |
Method Summary | |
---|---|
void |
dispose()
Should be called when this Object is not needed anymore. |
Map<Integer,AttributeMetaData> |
getAttributeMetaDataMap()
|
CoordinateReferenceSystem |
getCrs()
|
String |
getCRSString()
Returnes human readable String of the CRS natively used by this
DpLayer
If crs == null, it will call getGeoObject() |
Translation |
getDesc()
|
Envelope |
getEnvelope()
|
FeatureCollection |
getFeatureCollection()
Returns the features of the FeatureSource . |
FeatureSource |
getFeatureSource()
Same as getGeoObject() method, but complies to the
StyledFeaturesInterface |
FeatureSource |
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()
|
File |
getSldFile()
|
Style |
getStyle()
|
Translation |
getTitle()
|
boolean |
isDisposed()
Is the object already disposed? |
void |
setDesc(Translation dec)
Killed by SK: 6. |
void |
setImageIcon(ImageIcon icon)
|
void |
setKeywords(Translation keywords)
|
void |
setSldFile(File sldFile)
|
void |
setStyle(Style style)
|
void |
setTitle(Translation title)
|
void |
uncache()
Clears any caches. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StyledFS(FeatureSource fs, File sldFile)
JPanel
as a MapContextManagerInterface
fs
- FeatureSource
that is beeing styled.sldFile
- may be null
. Otherwise the SLD File
to
import and associate with this StyledFS
Method Detail |
---|
public void dispose()
StyledLayerInterface
dispose
in interface StyledLayerInterface<FeatureSource>
public String getCRSString()
String
of the CRS natively used by this
DpLayer
If crs == null, it will call getGeoObject()
getCRSString
in interface StyledLayerInterface<FeatureSource>
public CoordinateReferenceSystem getCrs()
getCrs
in interface StyledLayerInterface<FeatureSource>
public Translation getDesc()
getDesc
in interface StyledLayerInterface<FeatureSource>
public Envelope getEnvelope()
getEnvelope
in interface StyledLayerInterface<FeatureSource>
public FeatureSource getGeoObject()
StyledLayerInterface
getGeoObject
in interface StyledLayerInterface<FeatureSource>
public String getId()
getId
in interface StyledLayerInterface<FeatureSource>
public ImageIcon getImageIcon()
getImageIcon
in interface StyledLayerInterface<FeatureSource>
null
is valid and no icon or a
default icon will then be shownpublic 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<FeatureSource>
URL
public Translation getKeywords()
getKeywords
in interface StyledLayerInterface<FeatureSource>
public Style getStyle()
getStyle
in interface StyledLayerInterface<FeatureSource>
public Translation getTitle()
getTitle
in interface StyledLayerInterface<FeatureSource>
public boolean isDisposed()
StyledLayerInterface
isDisposed
in interface StyledLayerInterface<FeatureSource>
public void setDesc(Translation dec)
setDesc
in interface StyledLayerInterface<FeatureSource>
public void setImageIcon(ImageIcon icon)
setImageIcon
in interface StyledLayerInterface<FeatureSource>
public void setKeywords(Translation keywords)
setKeywords
in interface StyledLayerInterface<FeatureSource>
public void setStyle(Style style)
setStyle
in interface StyledLayerInterface<FeatureSource>
public void setTitle(Translation title)
setTitle
in interface StyledLayerInterface<FeatureSource>
public void uncache()
StyledLayerInterface
uncache
in interface StyledLayerInterface<FeatureSource>
public Map<Integer,AttributeMetaData> getAttributeMetaDataMap()
getAttributeMetaDataMap
in interface StyledFeaturesInterface<FeatureSource>
public File getSldFile()
File
where the SLD was loaded from or
null
if there didn't exist a File
.public void setSldFile(File sldFile)
public FeatureCollection getFeatureCollection()
FeatureSource
.
getFeatureCollection
in interface StyledFeaturesInterface<FeatureSource>
FeatureCollection
.StyledFeaturesInterface}
public FeatureSource getFeatureSource()
getGeoObject()
method, but complies to the
StyledFeaturesInterface
getFeatureSource
in interface StyledFeaturesInterface<FeatureSource>
FeatureSource
.StyledFeaturesInterface}
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |