public abstract class ALspLayer extends Object implements ILspLayer
ILspLayer
. This class implements
most functionality in ILspLayer
and additionally allows:
filter
property changes
layer state changes
status changes
ILspLayer.LayerType
Constructor and Description |
---|
ALspLayer()
Constructs an empty layer.
|
ALspLayer(ILcdModel aModel)
Constructs a layer with the specified model and a default label.
|
ALspLayer(ILcdModel aModel,
String aLabel)
Constructs a layer with the specified model and label.
|
ALspLayer(String aLabel)
Constructs an empty layer with the specified label.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayerStateListener(ILspLayerStateListener aListener)
Adds a state change listener to this layer.
|
protected void |
addPaintRepresentation(TLspPaintRepresentation aPaintRepresentation)
Adds a supported paint representation.
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Registers the given
PropertyChangeListener to be notified when this object's
properties change. |
void |
addSelectionListener(ILcdSelectionListener<Object> aSelectionListener)
Adds a listener to this selection.
|
void |
addStatusListener(ILcdStatusListener<ILspLayer> aStatusListener)
Adds a status listener to this layer that is notified when the layer
starts work asynchronously, when it is in progress, and when
it is finished.
|
void |
clearSelection(int aDispatchEventMode)
Deselect all the Objects in this
ILcdLayer , i.e., the selection of
this ILcdLayer is empty afterward. |
protected ILcdModelXYZWorldTransformation |
createModelXYZWorldTransformation(ILcdModelReference aModelReference,
ILcdXYZWorldReference aWorldReference,
ILspView aView)
Creates a new model world transformation for the
given model and world reference.
|
void |
fireCollectedSelectionChanges()
Fires a
TLcdSelectionChangedEvent that contains all the
selection changes appended by successively calling
selectObject(Object, boolean, ILcdFireEventMode.FIRE_LATER) . |
void |
fireLayerStateChange(TLspLayerPaintStateEvent.Type aType,
TLspPaintRepresentationState aPaintRepresentationState,
Object aOldValue,
Object aNewValue)
Fires a layer state change event with the specified properties.
|
protected void |
fireLayerStateChange(TLspLayerPaintStateEvent aEvent)
Fires a layer state change event.
|
void |
fireLayerStateChange(TLspLayerStateEvent.Type aType,
TLspPaintRepresentation aPaintRepresentation,
Object aOldValue,
Object aNewValue)
Fires a layer state change event with the specified properties.
|
protected void |
fireLayerStateChange(TLspLayerStateEvent aEvent)
Fires a layer state change event.
|
protected void |
firePropertyChange(PropertyChangeEvent aEvent)
Fires a property change event for this layer.
|
protected void |
fireStatusEvent(TLcdStatusEvent<ILspLayer> aStatusEvent)
Fires a status event.
|
ILcdBounds |
getBounds(TLspContext aContext)
Returns the bounds of the layer in world coordinates.
|
Collection<ILspView> |
getCurrentViews()
Returns a collection of all the views in which this layer is currently present.
|
ILcdDynamicFilter |
getFilter()
Returns the current
ILcdDynamicFilter that filters the objects on this layer. |
ILcdIcon |
getIcon()
Returns a visual indication of the contents of this layer.
|
String |
getLabel()
A short textual representation of this
ILcdLayer . |
TLspLayerStyle |
getLayerStyle()
Gets the current layer style.
|
ILspLayer.LayerType |
getLayerType()
Returns
ILspLayer.LayerType.EDITABLE . |
TLcdDimensionInterval<TLcdMapScale> |
getMapScaleRange(TLspPaintRepresentation aPaintRepresentation)
Returns the scale range of a TLspPaintRepresentation of this layer in unitless map scale ratios.
|
ILcdModel |
getModel()
Gets the
ILcdModel currently associated to this layer. |
ILcdModelXYZWorldTransformation |
getModelXYZWorldTransformation(ILspView aView)
Returns the transformation that will be used to transform coordinates of the objects
in the model to world coordinates of the given view.
|
Collection<TLspPaintRepresentation> |
getPaintRepresentations()
No paint representations are supported by default.
|
int |
getSelectionCount()
Returns the number of objects in this selection.
|
void |
invalidate()
Convenience method to indicate that the representation of the model is no longer valid.
|
boolean |
isEditable()
Returns whether the layer allows editing the content that it visualizes.
|
boolean |
isEditable(TLspPaintRepresentation aPaintRepresentation)
Returns whether the specified
PaintRepresentation is editable or not. |
boolean |
isEditableSupported()
Returns
true if the layer supports editing its objects. |
boolean |
isSelectable()
Returns whether the layer's objects can be selected, for example, by clicking on them.
|
boolean |
isSelectableSupported()
Returns
true if this layer supports selecting objects, false otherwise. |
boolean |
isSelected(Object aObject)
Checks whether the given
Object is currently in the set of
selected objects. |
boolean |
isSynchronous()
Returns if this layer paints synchronously.
|
boolean |
isVisible()
Returns whether or not the layer's content is painted.
|
boolean |
isVisible(TLspPaintRepresentation aPaintRepresentation)
Returns whether one of the
TLspPaintRepresentationState s of the the specified
TLspPaintRepresentation is enabled. |
boolean |
isVisible(TLspPaintRepresentationState aPaintRepresentationState)
Returns whether the specified
PaintRepresentationState is enabled or not. |
void |
registerView(ILspView aView)
Registers a view with this layer.
|
void |
removeLayerStateListener(ILspLayerStateListener aListener)
Removes the specified state listener from this layer.
|
protected void |
removePaintRepresentation(TLspPaintRepresentation aPaintRepresentation)
Removes a supported paint representation.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
De-registers the given
PropertyChangeListener from receiving property change events
for this object. |
void |
removeSelectionListener(ILcdSelectionListener<Object> aSelectionListener)
Removes an
ILcdSelectionListener from this ILcdSelection . |
void |
removeStatusListener(ILcdStatusListener<ILspLayer> aStatusListener)
Removes a previously added status listener from this layer.
|
Enumeration<Object> |
selectedObjects()
Returns the objects in this selection.
|
void |
selectObject(Object aObject,
boolean aSelection,
int aDispatchEventMode)
Changes the selection state of any element contained in the
ILcdModel this ILcdLayer refers to. |
void |
selectObjects(Collection<Object> aObjects,
boolean aSelection,
int aDispatchEventMode)
Changes the selection state for the given collection of objects contained in the
ILcdModel this
layer refers to. |
void |
setEditable(boolean aEditable)
Sets whether the layer should allow editing the content that it visualizes.
|
void |
setEditable(TLspPaintRepresentation aPaintRepresentation,
boolean aEditable)
Enables or disables the editable property of a paint representation.
|
void |
setFilter(ILcdDynamicFilter aFilter)
Sets the
ILcdDynamicFilter to filter the objects on this layer. |
void |
setIcon(ILcdIcon aIcon)
Sets a visual indication of the contents of this layer.
|
void |
setLabel(String aLabel)
Sets the textual representation of this
ILcdLayer . |
void |
setLayerStyle(TLspLayerStyle aLayerStyle)
Sets a layer style to this layer.
|
void |
setMapScaleRange(TLspPaintRepresentation aPaintRepresentation,
TLcdDimensionInterval<TLcdMapScale> aMapScaleRange)
Sets the scale range of this layer to the given unitless map scale ratio range.
|
void |
setModel(ILcdModel aModel)
Sets the
ILcdModel to this layer. |
void |
setSelectable(boolean aSelectable)
Sets the Selectable property of this
ILcdLayer . |
void |
setSynchronous(boolean aSynchronous)
Specifies whether this layer should paint synchronously.
|
void |
setVisible(boolean aVisible)
Sets whether or not the layer's content is painted.
|
void |
setVisible(TLspPaintRepresentation aPaintRepresentation,
boolean aVisible)
Enables or disables all
TLspPaintRepresentationState s of the specified
TLspPaintRepresentation . |
void |
setVisible(TLspPaintRepresentationState aPaintRepresentationState,
boolean aVisible)
Enables or disables the a paint representation state.
|
void |
unregisterView(ILspView aView)
Unregisters a view from this layer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMapScaleProvider
getSelectedObjects
public ALspLayer()
public ALspLayer(String aLabel)
aLabel
- the labelpublic ALspLayer(ILcdModel aModel)
aModel
- the modelpublic boolean isSynchronous()
setSynchronous(boolean)
public void setSynchronous(boolean aSynchronous)
aSynchronous
- true if the layer should paint synchronouslyisSynchronous()
public ILspLayer.LayerType getLayerType()
ILspLayer.LayerType.EDITABLE
. Implementing classes can override this
method to return other values.getLayerType
in interface ILspLayer
LayerType#EDITABLE
ILspLayer.LayerType
public void registerView(ILspView aView)
ILspLayer
ILspLayer.unregisterView(com.luciad.view.lightspeed.ILspView)
.
This allows the layer to know at all times in which views it is currently
present; this information may help it to manage any data that it caches.registerView
in interface ILspLayer
aView
- the view to which this layer has been addedpublic void unregisterView(ILspView aView)
ILspLayer
ILspLayer.registerView(com.luciad.view.lightspeed.ILspView)
, this method
determines the result of ILspLayer.getCurrentViews()
.unregisterView
in interface ILspLayer
aView
- the view from which this layer has been removedpublic Collection<ILspView> getCurrentViews()
ILspLayer
Returns a collection of all the views in which this layer is currently present.
This list is kept up-to-date via the view's invocations of
ILspLayer.registerView(com.luciad.view.lightspeed.ILspView)
and
ILspLayer.unregisterView(com.luciad.view.lightspeed.ILspView)
.
The returned collection should not be modified.
getCurrentViews
in interface ILspLayer
ILspLayer.registerView(com.luciad.view.lightspeed.ILspView)
,
ILspLayer.unregisterView(com.luciad.view.lightspeed.ILspView)
public ILcdModel getModel()
ILcdModel
currently associated to this layer.public void setModel(ILcdModel aModel)
ILcdModel
to this layer.
This method is not thread safe, it is recommended to synchronize on the layer instance if needed.
aModel
- the model that contains the objects that should be displayed in
this layer.public void invalidate()
invalidate
in interface ILspLayer
public void setVisible(boolean aVisible)
This method is not thread safe, it is recommended to synchronize on the layer instance if needed.
setVisible
in interface ILcdLayer
setVisible
in interface ILspLayer
aVisible
- true
if the layer should be visible, false
otherwise.ILspLayer.setVisible(TLspPaintRepresentationState, boolean)
public ILcdDynamicFilter getFilter()
ILcdDynamicFilter
that filters the objects on this layer.null
setFilter(com.luciad.util.ILcdDynamicFilter)
public void setFilter(ILcdDynamicFilter aFilter)
Sets the ILcdDynamicFilter
to filter the objects on this layer.
Operations on this layer will only be applied to objects of the model that
pass the filter. This includes painting, labeling, selection, editing, ...
Setting a null
filter, lets all objects pass for rendering. By
default the filter is null
.
This method is not thread safe, it is recommended to synchronize on the layer instance if needed.
aFilter
- the filter that accepts only those objects that should be taken
into accountgetFilter()
public boolean isVisible()
ILcdLayer
isVisible
in interface ILcdLayer
true
if the layer is visible, false
otherwise.ILcdLayer.setVisible(boolean)
public void setVisible(TLspPaintRepresentationState aPaintRepresentationState, boolean aVisible)
ILspLayer
layer visibility
. So a paint
representation state will only be visible when this method and the ILcdLayer.isVisible()
method
return true
.setVisible
in interface ILspLayer
aPaintRepresentationState
- the representations to enable or disableaVisible
- true to enable the representations or false to disable itILspLayer.setVisible(boolean)
public boolean isVisible(TLspPaintRepresentationState aPaintRepresentationState)
ILspLayer
PaintRepresentationState
is enabled or not.isVisible
in interface ILspLayer
aPaintRepresentationState
- the paint representation to checkPaintRepresentationState
is enabled or notILspLayer.setVisible(TLspPaintRepresentationState, boolean)
public void setVisible(TLspPaintRepresentation aPaintRepresentation, boolean aVisible)
ILspLayer
TLspPaintRepresentationState
s of the specified
TLspPaintRepresentation
.
This can be used to quickly switch representations (e.g. labels) on and off
without having to remove its related properties (ex. a painter).setVisible
in interface ILspLayer
aPaintRepresentation
- the representation to enable or disableaVisible
- true to enable the representations or false to disable itILspLayer.setVisible(TLspPaintRepresentationState, boolean)
public boolean isVisible(TLspPaintRepresentation aPaintRepresentation)
ILspLayer
TLspPaintRepresentationState
s of the the specified
TLspPaintRepresentation
is enabled.isVisible
in interface ILspLayer
aPaintRepresentation
- the paint representation to checkPaintRepresentation
is enabled or notILspLayer.setVisible(TLspPaintRepresentation, boolean)
public boolean isEditableSupported()
ILcdLayer
true
if the layer supports editing its objects.isEditableSupported
in interface ILcdLayer
true
ILcdLayer.setEditable(boolean)
public void setEditable(boolean aEditable)
ILcdLayer
isEditableSupported
to see if the layer supports editing.setEditable
in interface ILcdLayer
setEditable
in interface ILspLayer
aEditable
- true if the layer content can be editedILspLayer.setEditable(TLspPaintRepresentation, boolean)
,
ILcdLayer.isEditableSupported()
public boolean isEditable()
ILcdLayer
isEditable
in interface ILcdLayer
true
if this ILcdLayer
is editable,
false
otherwiseILcdLayer.setEditable(boolean)
public void setEditable(TLspPaintRepresentation aPaintRepresentation, boolean aEditable)
ILspLayer
layer editability
. So paint
representation will only be editable when both the layer and the paint representation are
editable and editing is supported
.setEditable
in interface ILspLayer
aPaintRepresentation
- the representation to enable or disableaEditable
- true to enable the representations or false to disable itILspLayer.setEditable(boolean)
,
ILcdLayer.isEditableSupported()
public boolean isEditable(TLspPaintRepresentation aPaintRepresentation)
ILspLayer
PaintRepresentation
is editable or not.isEditable
in interface ILspLayer
aPaintRepresentation
- the paint representation to checkPaintRepresentation
is editable or notILspLayer.setEditable(TLspPaintRepresentation, boolean)
public String getLabel()
ILcdLayer
ILcdLayer
.public void setLabel(String aLabel)
ILcdLayer
.
This method is not thread safe, it is recommended to synchronize on the layer instance if needed.
public ILcdIcon getIcon()
ILcdLayer
public void setIcon(ILcdIcon aIcon)
ILcdLayer
setIcon
in interface ILcdLayer
aIcon
- a visual indication of the contents of this layer.ILcdLayer.getIcon()
public TLcdDimensionInterval<TLcdMapScale> getMapScaleRange(TLspPaintRepresentation aPaintRepresentation)
aPaintRepresentation
- the paint representation for which to return the scale rangeIllegalArgumentException
- if aPaintRepresentation
is not supportedsetMapScaleRange(com.luciad.view.lightspeed.layer.TLspPaintRepresentation, com.luciad.multidimensional.TLcdDimensionInterval<com.luciad.view.TLcdMapScale>)
public void setMapScaleRange(TLspPaintRepresentation aPaintRepresentation, TLcdDimensionInterval<TLcdMapScale> aMapScaleRange)
aPaintRepresentation
- the paint representationaMapScaleRange
- the new scale range of this layer, or null
to deactivate any scale restrictionIllegalArgumentException
- if aPaintRepresentation
is not supportedTLspLayer.setMapScaleRange(TLspPaintRepresentation, TLcdDimensionInterval)
,
TLcdMapScale.createScaleRange(TLcdMapScale, TLcdMapScale)
public Collection<TLspPaintRepresentation> getPaintRepresentations()
getPaintRepresentations
in interface ILspLayer
PaintRepresentation
s, never null
protected void addPaintRepresentation(TLspPaintRepresentation aPaintRepresentation)
aPaintRepresentation
- the paint representationinitializePaintRepresentation(TLspPaintRepresentation)
protected void removePaintRepresentation(TLspPaintRepresentation aPaintRepresentation)
aPaintRepresentation
- the paint representationpublic ILcdModelXYZWorldTransformation getModelXYZWorldTransformation(ILspView aView)
Returns the transformation that will be used to transform coordinates of the objects in the model to world coordinates of the given view.
In order for this method to be thread-safe, the model-world transformation should not
be modified after it is returned by this method. In practice this means that this method
and its callers should treat the model-world transformation as an immutable object. So
it shouldn't reuse the same ILcdModelXYZWorldTransformation
for different
ILcdModelReferences
or ILcdXYZWorldReference
.
By default this method calls createModelXYZWorldTransformation
to create a new transformation instance.
getModelXYZWorldTransformation
in interface ILspLayer
aView
- the viewprotected ILcdModelXYZWorldTransformation createModelXYZWorldTransformation(ILcdModelReference aModelReference, ILcdXYZWorldReference aWorldReference, ILspView aView)
Creates a new model world transformation for the
given model and world reference. This method is called by the default implementation of
getModelXYZWorldTransformation
.
aModelReference
- the model reference.aWorldReference
- the world reference.aView
- the view for which a transformation is created.public void addLayerStateListener(ILspLayerStateListener aListener)
ILspLayer
TLspPaintRepresentation
or TLspPaintRepresentationState
is
changed. This state change is described respectively by a TLspLayerStateEvent
or a
TLspLayerPaintStateEvent
.addLayerStateListener
in interface ILspLayer
aListener
- the state change listener to be registered on this layerpublic void removeLayerStateListener(ILspLayerStateListener aListener)
ILspLayer
removeLayerStateListener
in interface ILspLayer
aListener
- the listener to be removed from the layerILspLayer.addLayerStateListener(ILspLayerStateListener)
protected void fireLayerStateChange(TLspLayerStateEvent aEvent)
aEvent
- the eventTLspLayerStateSupport.fireLayerStateChange(TLspLayerStateEvent)
protected void fireLayerStateChange(TLspLayerPaintStateEvent aEvent)
aEvent
- the eventTLspLayerStateSupport.fireLayerStateChange(TLspLayerPaintStateEvent)
public void fireLayerStateChange(TLspLayerPaintStateEvent.Type aType, TLspPaintRepresentationState aPaintRepresentationState, Object aOldValue, Object aNewValue)
aType
- the event typeaPaintRepresentationState
- the affected paint representation stateaOldValue
- the old valueaNewValue
- the new valueTLspLayerStateSupport.fireLayerStateChange(com.luciad.view.lightspeed.layer.TLspLayerPaintStateEvent.Type, TLspPaintRepresentationState, Object, Object)
public void fireLayerStateChange(TLspLayerStateEvent.Type aType, TLspPaintRepresentation aPaintRepresentation, Object aOldValue, Object aNewValue)
aType
- the event typeaPaintRepresentation
- the affected paint representationaOldValue
- the old valueaNewValue
- the new valueTLspLayerStateSupport.fireLayerStateChange(com.luciad.view.lightspeed.layer.TLspLayerPaintStateEvent.Type, TLspPaintRepresentationState, Object, Object)
public void addStatusListener(ILcdStatusListener<ILspLayer> aStatusListener)
ILspLayer
addStatusListener
in interface ILspLayer
aStatusListener
- a status listenerpublic void removeStatusListener(ILcdStatusListener<ILspLayer> aStatusListener)
ILspLayer
removeStatusListener
in interface ILspLayer
aStatusListener
- a status listenerprotected void fireStatusEvent(TLcdStatusEvent<ILspLayer> aStatusEvent)
aStatusEvent
- the status eventpublic void addPropertyChangeListener(PropertyChangeListener listener)
ILcdPropertyChangeSource
Registers the given PropertyChangeListener
to be notified when this object's
properties change.
In case you need to register a listener which keeps a reference to an object with a shorter life-time than this change source,
you can use a ALcdWeakPropertyChangeListener
instance as property change listener.
addPropertyChangeListener
in interface ILcdPropertyChangeSource
listener
- The listener to be notifiedALcdWeakPropertyChangeListener
,
ILcdPropertyChangeSource.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener listener)
ILcdPropertyChangeSource
De-registers the given PropertyChangeListener
from receiving property change events
for this object.
If the listener was added more than once, it will be notified one less time after being
removed.
If the listener is null
, or was never added, no exception is thrown and no action is taken.
removePropertyChangeListener
in interface ILcdPropertyChangeSource
listener
- the listener that should no longer be notified of changes of
this object's propertiesILcdPropertyChangeSource.addPropertyChangeListener(java.beans.PropertyChangeListener)
protected void firePropertyChange(PropertyChangeEvent aEvent)
aEvent
- the eventpublic Enumeration<Object> selectedObjects()
ILcdSelection
selectedObjects
in interface ILcdSelection<Object>
ILcdSelection
.public int getSelectionCount()
ILcdSelection
getSelectionCount
in interface ILcdSelection<Object>
ILcdSelection
.public boolean isSelected(Object aObject) throws IllegalArgumentException
ILcdSelection
Object
is currently in the set of
selected objects.isSelected
in interface ILcdSelection<Object>
aObject
- the Object
to be checked.true
if the Object
is in this ILcdSelection
,
false otherwise.IllegalArgumentException
public void selectObject(Object aObject, boolean aSelection, int aDispatchEventMode)
ILcdLayer
ILcdModel
this ILcdLayer
refers to. This method
shall have an effect only if isSelectableSupported and isSelectable return
true.selectObject
in interface ILcdLayer
aObject
- the Object
to select or deselect. The object should be in the model
of this layer. The implementation of this method is not responsible for checking this.aSelection
- the selection state, true
to select, false
to deselect.aDispatchEventMode
- shall be one among ILcdFireEventMode.FIRE_NOW
,
ILcdFireEventMode.FIRE_LATER
, ILcdFireEventMode.NO_EVENT
selectObjects(java.util.Collection, boolean, int)
public void selectObjects(Collection<Object> aObjects, boolean aSelection, int aDispatchEventMode)
ILcdModel
this
layer refers to. This method shall have an effect only if
isSelectableSupported() and isSelectable() return true
.aObjects
- the collection of objects to select or deselectaSelection
- the selection state, true
to select, false
to deselectaDispatchEventMode
- shall be one among ILcdFireEventMode.FIRE_NOW
,
ILcdFireEventMode.FIRE_LATER
, ILcdFireEventMode.NO_EVENT
ILcdFireEventMode
public void fireCollectedSelectionChanges()
ILcdLayer
TLcdSelectionChangedEvent
that contains all the
selection changes appended by successively calling
selectObject(Object, boolean, ILcdFireEventMode.FIRE_LATER)
.fireCollectedSelectionChanges
in interface ILcdLayer
public void clearSelection(int aDispatchEventMode)
ILcdLayer
ILcdLayer
, i.e., the selection of
this ILcdLayer
is empty afterward.clearSelection
in interface ILcdLayer
aDispatchEventMode
- shall be one among ILcdFireEventMode.FIRE_NOW
,
ILcdFireEventMode.FIRE_LATER
, ILcdFireEventMode.NO_EVENT
ILcdFireEventMode
public void addSelectionListener(ILcdSelectionListener<Object> aSelectionListener)
ILcdSelection
ILcdSelection
,
you can use a ALcdWeakSelectionListener
instance as selection listener.addSelectionListener
in interface ILcdSelection<Object>
aSelectionListener
- the ILcdSelectionListener
to be added.public void removeSelectionListener(ILcdSelectionListener<Object> aSelectionListener)
ILcdSelection
ILcdSelectionListener
from this ILcdSelection
.removeSelectionListener
in interface ILcdSelection<Object>
aSelectionListener
- the ILcdSelectionListener
to be removed.public boolean isSelectableSupported()
ILcdLayer
true
if this layer supports selecting objects, false
otherwise.isSelectableSupported
in interface ILcdLayer
true
ILcdLayer.setSelectable(boolean)
,
ILcdLayer.selectObject(java.lang.Object, boolean, int)
public void setSelectable(boolean aSelectable)
ILcdLayer
ILcdLayer
.
Check isSelectableSupported
to see if the layer supports selection.setSelectable
in interface ILcdLayer
aSelectable
- true
if the layer allows selection, false
otherwise.ILcdLayer.isSelectable()
,
ILcdLayer.isSelectableSupported()
public boolean isSelectable()
ILcdLayer
isSelectable
in interface ILcdLayer
true
if the layer allows selection, false
otherwise.ILcdSelection
,
ILcdLayer.setSelectable(boolean)
public ILcdBounds getBounds(TLspContext aContext) throws TLcdNoBoundsException, TLcdOutOfBoundsException
TLspContext.getXYZWorldReference()
is used.
ALspLayer provides a default model based implementation of this method. In
some cases, this is only an approximation of the actual bounds, so more
specific implementations are encouraged to provide a more precise
implementation.getBounds
in interface ILspLayer
aContext
- The context that defines the reference system for the bounds to be
returned.TLcdNoBoundsException
- If the layer has no bounds in the reference system. For instance,
if the layer paints directly in the view.TLcdOutOfBoundsException
- If the bounds can not be represented in the specified reference
system.public TLspLayerStyle getLayerStyle()
ILspLayer
layer.setLayerStyle(TLspLayerStyle.newBuilder().build());
getLayerStyle
in interface ILspLayer
null
.public void setLayerStyle(TLspLayerStyle aLayerStyle)
ILspLayer
layer.setLayerStyle(TLspLayerStyle.newBuilder().build());
setLayerStyle
in interface ILspLayer
aLayerStyle
- the layer style. must not be null
.