| java.lang.Object org.geotools.map.DefaultMapLayer
All known Subclasses: org.geotools.demo.mappane.WMSMapLayer,
DefaultMapLayer | public class DefaultMapLayer implements MapLayer(Code) | | Default implementation of the MapLayer implementation
author: wolf |
Constructor Summary | |
public | DefaultMapLayer(FeatureSource featureSource, Style style, String title) | public | DefaultMapLayer(CollectionSource source, Style style, String title) | public | DefaultMapLayer(FeatureSource featureSource, Style style) | public | DefaultMapLayer(FeatureCollection collection, Style style, String title) | public | DefaultMapLayer(Collection collection, Style style, String title) | public | DefaultMapLayer(FeatureCollection collection, Style style) | public | DefaultMapLayer(Collection collection, Style style) | public | DefaultMapLayer(GridCoverage coverage, Style style) Add a new layer and trigger a
LayerListEvent . | public | DefaultMapLayer(AbstractGridCoverage2DReader reader, Style style, String title) Constructor which adds a new layer and trigger a
LayerListEvent . | public | DefaultMapLayer(AbstractGridCoverage2DReader reader, Style style) Constructor which adds a new layer and triggers a
LayerListEvent . | public | DefaultMapLayer(GridCoverage coverage, Style style, String title) Add a new layer and trigger a
LayerListEvent . |
featureSource | protected FeatureSource featureSource(Code) | | Holds value of property FeatureSource.
|
query | protected Query query(Code) | | The query to limit the number of rendered features based on its filter
|
sourceListener | protected FeatureListener sourceListener(Code) | | Listener to forward feature source events as layer events
|
style | protected Style style(Code) | | The style to symbolize the features of this layer
|
title | protected String title(Code) | | Holds value of property title.
|
visible | protected boolean visible(Code) | | Whether this layer is visible or not.
|
DefaultMapLayer | public DefaultMapLayer(FeatureSource featureSource, Style style, String title)(Code) | | Creates a new instance of DefaultMapLayer
Parameters: featureSource - the data source for this layer Parameters: style - the style used to represent this layer Parameters: title - the layer title throws: NullPointerException - DOCUMENT ME! |
DefaultMapLayer | public DefaultMapLayer(FeatureSource featureSource, Style style)(Code) | | Creates a new instance of DefaultMapLayer
Parameters: featureSource - the data source for this layer Parameters: style - the style used to represent this layer |
DefaultMapLayer | public DefaultMapLayer(FeatureCollection collection, Style style, String title)(Code) | | Creates a new instance of DefaultMapLayer using a non-emtpy feature
collection as a parameter
Parameters: collection - the source feature collection Parameters: style - the style used to represent this layer Parameters: title - DOCUMENT ME! |
DefaultMapLayer | public DefaultMapLayer(FeatureCollection collection, Style style)(Code) | | Creates a new instance of DefaultMapLayer using a non-emtpy feature
collection as a parameter
Parameters: collection - the source feature collection Parameters: style - the style used to represent this layer |
fireMapLayerListenerLayerChanged | protected void fireMapLayerListenerLayerChanged(org.geotools.map.event.MapLayerEvent event)(Code) | | Notifies all registered listeners about the event.
Parameters: event - The event to be fired |
fireMapLayerListenerLayerHidden | protected void fireMapLayerListenerLayerHidden(org.geotools.map.event.MapLayerEvent event)(Code) | | Notifies all registered listeners about the event.
Parameters: event - The event to be fired |
fireMapLayerListenerLayerShown | protected void fireMapLayerListenerLayerShown(org.geotools.map.event.MapLayerEvent event)(Code) | | Notifies all registered listeners about the event.
Parameters: event - The event to be fired |
getFeatureSource | public FeatureSource getFeatureSource()(Code) | | Getter for property featureSource.
Value of property featureSource. |
getQuery | public Query getQuery()(Code) | | Returns the definition query established for this layer.
the definition query established for this layer. If not set, justreturns Query.ALL, if set, returns a copy of the actualquery object to avoid external modification See Also: org.geotools.map.MapLayer.getQuery |
getStyle | public Style getStyle()(Code) | | Getter for property style.
Value of property style. |
getTitle | public String getTitle()(Code) | | Getter for property title.
Value of property title. |
isVisible | public boolean isVisible()(Code) | | Getter for property visible.
Value of property visible. |
removeMapLayerListener | public synchronized void removeMapLayerListener(org.geotools.map.event.MapLayerListener listener)(Code) | | Removes MapLayerListener from the list of listeners.
Parameters: listener - The listener to remove. |
setQuery | public void setQuery(Query query)(Code) | | Sets a definition query for this layer.
If present (other than Query.ALL , a renderer or consumer
must use it to limit the number of returned features based on the filter
it holds and the value of the maxFeatures attributes, and also can use it
as a performance hto limit the number of requested attributes
Parameters: query - the full filter for this layer. throws: NullPointerException - if no query is passed on. If you want to reset a definitionquery, pass it Query.ALL instead of null See Also: org.geotools.map.MapLayer.setQuery(org.geotools.data.Query) |
setStyle | public void setStyle(Style style)(Code) | | Setter for property style.
Parameters: style - New value of property style. throws: NullPointerException - DOCUMENT ME! |
setTitle | public void setTitle(String title)(Code) | | Setter for property title.
Parameters: title - New value of property title. throws: NullPointerException - DOCUMENT ME! |
setVisible | public void setVisible(boolean visible)(Code) | | Setter for property visible.
Parameters: visible - New value of property visible. |
|
|