Method Summary |
|
boolean | addLayer(MapLayer layer) Add a new layer if not already present and trigger a
LayerListEvent . |
boolean | addLayer(int index, MapLayer layer) Add a new layer in the specified position and trigger a
LayerListEvent . |
void | addLayer(FeatureSource featureSource, Style style) Add a new layer and trigger a
LayerListEvent . |
void | addLayer(FeatureCollection collection, Style style) Add a new layer and trigger a
LayerListEvent . |
void | addLayer(Collection collection, Style style) Add a new layer and trigger a
LayerListEvent . |
void | addLayer(GridCoverage gridCoverage, Style style) |
void | addLayer(AbstractGridCoverage2DReader gridCoverage, Style style) |
int | addLayers(MapLayer[] layers) Add an array of new layers and trigger a
LayerListEvent .
Parameters: layers - The new layers that are to be added. |
void | addMapBoundsListener(MapBoundsListener listener) Register interest in receiving
MapBoundsEvent s. |
void | addMapLayerListListener(MapLayerListListener listener) Register interest in receiving a
LayerListEvent . |
public void | addPropertyChangeListener(java.beans.PropertyChangeListener listener) Registers PropertyChangeListener to receive events. |
void | clearLayerList() Clears the whole layer list. |
String | getAbstract() Get the abstract which describes this interface, returns an empty string
if this has not been set yet. |
ReferencedEnvelope | getAreaOfInterest() Gets the current area of interest. |
String | getContactInformation() Get the contact information associated with this context, returns an
empty string if contactInformation has not been set. |
CoordinateReferenceSystem | getCoordinateReferenceSystem() Get the current coordinate system. |
String[] | getKeywords() Get an array of keywords associated with this context, returns an empty
array if no keywords have been set. |
MapLayer | getLayer(int index) Return the requested layer.
Parameters: index - index of layer to return. |
ReferencedEnvelope | getLayerBounds() Get the bounding box of all the layers in this MapContext. |
int | getLayerCount() |
MapLayer[] | getLayers() Return this model's list of layers. |
String | getTitle() Get the title, returns an empty string if it has not been set yet. |
int | indexOf(MapLayer layer) Returns the index of the first occurrence of the specified layer, or -1
if this list does not contain this element. |
Iterator | iterator() Returns an iterator over the layers in this context in proper sequence. |
void | moveLayer(int sourcePosition, int destPosition) Moves a layer from a position to another. |
boolean | removeLayer(MapLayer layer) Remove a layer, if present, and trigger a
LayerListEvent .
Parameters: layer - a MapLayer that will be added. |
MapLayer | removeLayer(int index) Remove a layer and trigger a
LayerListEvent . |
void | removeLayers(MapLayer[] layers) Remove an array of layers and trigger a
LayerListEvent . |
void | removeMapBoundsListener(MapBoundsListener listener) Remove interest in receiving a
BoundingBoxEvent s. |
void | removeMapLayerListListener(MapLayerListListener listener) Remove interest in receiving
LayerListEvent . |
public void | removePropertyChangeListener(java.beans.PropertyChangeListener listener) Removes PropertyChangeListener from the list of listeners. |
void | setAbstract(String conAbstract) Set an abstract which describes this context. |
void | setAreaOfInterest(Envelope areaOfInterest, CoordinateReferenceSystem coordinateReferenceSystem) Set a new area of interest and trigger a
BoundingBoxEvent . |
void | setAreaOfInterest(Envelope areaOfInterest) Set a new area of interest and trigger an
BoundingBoxEvent . |
void | setAreaOfInterest(ReferencedEnvelope areaOfInterest) Set a new area of interest and trigger an
BoundingBoxEvent . |
void | setContactInformation(String contactInformation) Set contact inforation associated with this class. |
void | setCoordinateReferenceSystem(CoordinateReferenceSystem crs) Set the CoordinateReferenceSystem for this map context. |
void | setKeywords(String[] keywords) Set an array of keywords to associate with this context. |
void | setTitle(String title) Set the title of this context. |
void | transform(AffineTransform transform) Transform the coordinates according to the provided transform. |