Gets the CRS for the layer. NOTE: THIS METHOD MAY BLOCK!!!
Parameters: monitor - may be null. the CoordinateReferenceSystem of the layer or if the CRS cannot be determined. thecurrent map's CRS will be returned, or if this fails the CRS will be WGS84.
Temporary layer properties, used for lightweight collaboration.
Note these values are not persisted, this can act as a blackboard for plugin collabaration.
These properties are not saved and are reset when a map is opened.
If you need long term collaboration we can set up a persistent blackboard in the same manner
as StyleBlackbord.
Note: Please don't use this to work around limitations of our object model, instead send
email and we can set up a long term solution.
Query that selects all the features for the layer.
The selected flag is used with respect to
getFilter() :
false : Query for layers contents
true : Query for the layer's selected features
Parameters: layer - The layer the Query is associated with. Parameters: selection - true will return a query for the selected features. If selection if false then the features that are not selected are returned, otherwisea query that selects all the selected features is returned.
StyleBlackboard used to persist user supplied appearance settings.
This method forms part of the EMF model of a Layer, client code should use style(). The
style() method allows access the StyleBlackboard without being troubled by all the model
methods.
A Selectable Layer can be used with the Utilities.getQuery opperation. The selection tool
category will maintain a separate user interface concept of applicability. The selection tool
will not be capabile of considering a non selectable layer applicable.
IMPORTANT FUTURE CHANGE NOTE: future design: Instead of isSelectable and isInfoable a single
boolean isApplicable( String toolkitID ) will be used to determine whether the layer is
applicable to the current tool cateogry. If the layer is not capable of Each tool category
extension will declare a color, which will be an underlay for the layer decorator, and an
optional validator class, to determine whether the capability for the layer can be set.
Indicates this layer is selectable.
true if layer is selectable, false otherwise.
Returns whether this layer is currently visible
whether this layer is currently visible
setApplicable
public void setApplicable(String toolCategoryId, boolean isApplicable)(Code)
Set toolset applicability.
Parameters: toolCategoryId - ID of toolset being considered Parameters: isApplicable - true if layer is to be used with indicated toolset
setBounds
public void setBounds(ReferencedEnvelope bounds)(Code)
Sets the spatial bounds of this layer. This property is normally
derived from the IGeoResourceInfos, but this provides an override. This
will affect the "Zoom to Extent" and "Zoom to Layer" actions.
Parameters: bounds - a ReferencedEnvelope indicating the new bounds for the layer
Sets the value of the '
net.refractions.udig.project.internal.Layer.isSelectableSelectable ' attribute.
Used by the user to control which layers are selectable,
may be ignored for GeoResources that do not support editing.
Parameters: value - the new value of the 'Selectable' attribute. See Also:Layer.isSelectable()
Sets the value of the '
net.refractions.udig.project.internal.Layer.getStyleBlackboardStyle Blackboard '
containment reference. Note: The Rendering Process will be restarted
as appearance information changes, this is usual limited to a single Layer.
Parameters: value - the new value of the 'Style Blackboard' containment reference. See Also:Layer.getStyleBlackboard()