|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.map.DefaultMapLayer
Default implementation of the MapLayer implementation
| Field Summary | |
protected FeatureSource |
featureSource
Holds value of property FeatureSource. |
protected javax.swing.event.EventListenerList |
listenerList
Utility field used by event firing mechanism. |
protected Query |
query
The query to limit the number of rendered features based on its filter |
protected FeatureListener |
sourceListener
Listener to forward feature source events as layer events |
protected Style |
style
The style to symbolize the features of this layer |
protected java.lang.String |
title
Holds value of property title. |
protected boolean |
visible
Whether this layer is visible or not. |
| Constructor Summary | |
DefaultMapLayer(FeatureCollection collection,
Style style)
Creates a new instance of DefaultMapLayer using a non-emtpy feature collection as a parameter |
|
DefaultMapLayer(FeatureCollection collection,
Style style,
java.lang.String title)
Creates a new instance of DefaultMapLayer using a non-emtpy feature collection as a parameter |
|
DefaultMapLayer(FeatureSource featureSource,
Style style)
Creates a new instance of DefaultMapLayer |
|
DefaultMapLayer(FeatureSource featureSource,
Style style,
java.lang.String title)
Creates a new instance of DefaultMapLayer |
|
| Method Summary | |
void |
addMapLayerListener(MapLayerListener listener)
Registers MapLayerListener to receive events. |
FeatureSource |
getFeatureSource()
Getter for property featureSource. |
Query |
getQuery()
Returns the definition query established for this layer. |
Style |
getStyle()
Getter for property style. |
java.lang.String |
getTitle()
Getter for property title. |
boolean |
isVisible()
Getter for property visible. |
void |
removeMapLayerListener(MapLayerListener listener)
Removes MapLayerListener from the list of listeners. |
void |
setQuery(Query query)
Sets a definition query for this layer. |
void |
setStyle(Style style)
Setter for property style. |
void |
setTitle(java.lang.String title)
Setter for property title. |
void |
setVisible(boolean visible)
Setter for property visible. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected FeatureSource featureSource
protected Style style
protected Query query
protected java.lang.String title
protected boolean visible
protected javax.swing.event.EventListenerList listenerList
protected FeatureListener sourceListener
| Constructor Detail |
public DefaultMapLayer(FeatureSource featureSource,
Style style,
java.lang.String title)
featureSource - the data source for this layerstyle - the style used to represent this layertitle - the layer title
java.lang.NullPointerException - DOCUMENT ME!
public DefaultMapLayer(FeatureSource featureSource,
Style style)
featureSource - the data source for this layerstyle - the style used to represent this layer
public DefaultMapLayer(FeatureCollection collection,
Style style,
java.lang.String title)
collection - the source feature collectionstyle - the style used to represent this layertitle - DOCUMENT ME!
public DefaultMapLayer(FeatureCollection collection,
Style style)
collection - the source feature collectionstyle - the style used to represent this layer| Method Detail |
public FeatureSource getFeatureSource()
getFeatureSource in interface MapLayerpublic Style getStyle()
getStyle in interface MapLayerpublic void setStyle(Style style)
setStyle in interface MapLayerstyle - New value of property style.
java.lang.NullPointerException - DOCUMENT ME!public java.lang.String getTitle()
getTitle in interface MapLayerpublic void setTitle(java.lang.String title)
setTitle in interface MapLayertitle - New value of property title.
java.lang.NullPointerException - DOCUMENT ME!public boolean isVisible()
isVisible in interface MapLayerpublic void setVisible(boolean visible)
setVisible in interface MapLayervisible - New value of property visible.public Query getQuery()
getQuery in interface MapLayerQuery.ALL, if set, returns a copy of the
actual query object to avoid external modificationMapLayer.getQuery()public void setQuery(Query query)
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
setQuery in interface MapLayerquery - the full filter for this layer.
java.lang.NullPointerException - if no query is passed on. If you want to
reset a definition query, pass it Query.ALL instead of
nullMapLayer.setQuery(org.geotools.data.Query)FeatureSource schemapublic void addMapLayerListener(MapLayerListener listener)
addMapLayerListener in interface MapLayerlistener - The listener to register.public void removeMapLayerListener(MapLayerListener listener)
removeMapLayerListener in interface MapLayerlistener - The listener to remove.public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||