Adds an adapter to the context model and all of the layers in the model.
Each time a layer is added the adapter will be added to the model as well.
Parameters: adapter - adapter to add as a deep adapter
public ReferencedEnvelope getBounds(IProgressMonitor monitor) throws IOException(Code)
Gets the Envelope that indicates the maximum bounding box of the map.
The bounds returned are in Lat Long and each time the method is called a new object is
returned. Therefore the object can be modified as desired without affecting the model.
Note: this is a constant for a given map. It is related to the size of the map data, and is
not dependent on the viewport.
The Envelope in Lat Long that indicates the maximum bounding box of the map. throws: IOException -
Returns all the layers contained in the map. The list is mutable and events will be raised if
the list is modified.
all the layers contained in the map.
Increases the ZOrder of the layer so it is rendered earlier with incomparison to the other
layers. If the Layer is at the bottom of the render list(first to be drawn) it is not
affected.
Parameters: layer - The layer whose rendering order will be modified
Decreases the ZOrder of the layer so it is rendered later with incomparison to the other
layers. If the Layer is at the top of the render list(last to be drawn) it is not affected.
Parameters: layer - The layer whose rendering order will be modified
Select all selectable layers, with a BoundingBox Geometry filter. Boundingbox must be in the
same CRS as the ViewportModel
Any Tool that wishes to be undoable would will need to remember the previous state.
Parameters: boundingBox - the bounding box in Viewportmodel CRS to create a filter with
select
public void select(Envelope boundingBox, boolean add)(Code)
Select all selectable layers, with a BoundingBox Geometry filter. Boundingbox must be in the
same CRS as the ViewportModel
Any Tool that wishes to be undoable would will need to remember the previous state.
Parameters: boundingBox - the bounding box in Viewportmodel CRS to create a filter with Parameters: add - true adds (or with current filter)to the current selection, false removes from thecurrent selection(and with current filter).
Select all selectable layers, with the provided filter.
Any Tool that wishes to be undoable would will need to remember the previous state.
Parameters: filter - new selection filter
select
public void select(Filter filter, boolean add)(Code)
Combines selection, from the selectable layers, with the provided filter.
Any Tool that wishes to be undoable would will need to remember the previous state.
Parameters: filter - the new filter Parameters: add - true adds (or with current filter)to the current selection, false removes from thecurrent selection.
select
public void select(Filter filter, ILayer layer)(Code)
Makes a selection in a specified layer of this map (not necessarily a selected layer ).
Does nothing if the specified layer does not belong to this map.
Parameters: filter - Parameters: layer -