|
|||||||||
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(
|
|
StyledFS(
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. |
AttributeMetadataMap |
getAttributeMetaDataMap()
|
CoordinateReferenceSystem |
getCrs()
|
String |
getCRSString()
Returns human readable String of the CRS natively used by this
DpLayer
If CRS == null, it will call getGeoObject() |
Translation |
getDesc()
|
Envelope |
getEnvelope()
|
|
getFeatureCollection()
Returns the features of the FeatureSource . |
|
getFeatureCollectionFiltered()
|
|
getFeatureSource()
Same as getGeoObject() method, but complies to the
StyledFeaturesInterface |
Filter |
getFilter()
Returns the Filter a filter that is associated with this StyledFeaturesInterface Never shall return null , but
rather Filter.INCLUDE. |
|
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()
|
SimpleFeatureType |
getSchema()
|
File |
getSldFile()
|
Style |
getStyle()
|
Translation |
getTitle()
|
boolean |
isDisposed()
Is the object already disposed? |
void |
setDesc(Translation dec)
Killed by SK: 6. |
void |
setFilter(Filter filter)
Stores Filter that is NOT automatically applied. |
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(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
public StyledFS(fs)
Method Detail |
---|
public void dispose()
StyledLayerInterface
dispose
in interface StyledLayerInterface<>
public String getCRSString()
String
of the CRS natively used by this
DpLayer
If CRS == null, it will call getGeoObject()
getCRSString
in interface StyledLayerInterface<>
public CoordinateReferenceSystem getCrs()
getCrs
in interface StyledLayerInterface<>
public Translation getDesc()
getDesc
in interface StyledLayerInterface<>
public Envelope getEnvelope()
getEnvelope
in interface StyledLayerInterface<>
publicgetGeoObject()
StyledFeaturesInterface
getGeoObject
in interface StyledFeaturesInterface<>
getGeoObject
in interface StyledLayerInterface<>
public String getId()
getId
in interface StyledLayerInterface<>
public ImageIcon getImageIcon()
getImageIcon
in interface StyledLayerInterface<>
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<>
URL
public Translation getKeywords()
getKeywords
in interface StyledLayerInterface<>
public Style getStyle()
getStyle
in interface StyledLayerInterface<>
public Translation getTitle()
getTitle
in interface StyledLayerInterface<>
public boolean isDisposed()
StyledLayerInterface
isDisposed
in interface StyledLayerInterface<>
public void setDesc(Translation dec)
setDesc
in interface StyledLayerInterface<>
public void setImageIcon(ImageIcon icon)
setImageIcon
in interface StyledLayerInterface<>
public void setKeywords(Translation keywords)
setKeywords
in interface StyledLayerInterface<>
public void setStyle(Style style)
setStyle
in interface StyledLayerInterface<>
public void setTitle(Translation title)
setTitle
in interface StyledLayerInterface<>
public void uncache()
StyledLayerInterface
uncache
in interface StyledLayerInterface<>
public AttributeMetadataMap getAttributeMetaDataMap()
getAttributeMetaDataMap
in interface StyledFeaturesInterface<>
public File getSldFile()
File
where the SLD was loaded from or
null
if there didn't exist a File
.public void setSldFile(File sldFile)
publicgetFeatureCollection()
FeatureSource
.
getFeatureCollection
in interface StyledFeaturesInterface<>
FeatureCollection
. The
filter is NOT automatically applied.StyledFeaturesInterface}
publicgetFeatureSource()
getGeoObject()
method, but complies to the
StyledFeaturesInterface
getFeatureSource
in interface StyledFeaturesInterface<>
FeatureSource
. The filter
is NOT automatically applied.StyledFeaturesInterface}
publicgetFeatureCollectionFiltered()
getFeatureCollectionFiltered
in interface StyledFeaturesInterface<>
FeatureCollection
. The
associated Filter is automatically applied.public Filter getFilter()
StyledFeaturesInterface
StyledFeaturesInterface
Never shall return null
, but
rather Filter.INCLUDE.
getFilter
in interface StyledFeaturesInterface<>
public void setFilter(Filter filter)
StyledFeaturesInterface
null
is not
allowed, use Filter.INCLUDE.
setFilter
in interface StyledFeaturesInterface<>
public SimpleFeatureType getSchema()
getSchema
in interface StyledFeaturesInterface<>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |