Class TLspGXYLayerAdapter
- All Implemented Interfaces:
ILcdPropertyChangeSource
,ILcdSelection<Object>
,ILcdLayer
,ILspSnappable
,ILspInteractivePaintableLayer
,ILspLayer
,ILspPaintableLayer
,ILspStyledLayer
,Serializable
- Direct Known Subclasses:
TLspGXYLayerTreeNodeAdapter
A class that wraps around an ILcdGXYLayer
and presents it as an ILspLayer
. To
this effect, the ILcdGXYLayer
is painted onto an offscreen image which can then in turn
be painted in the ILspView
.
The painting of the ILcdGXYLayer
happens on an anonymous (pooled) thread. To ensure
thread-safety, this class offers invocation methods (e.g. invokeAndWaitOnGXYLayer
). It is advised that any modification that may
interfere with painting, is executed through these invocation methods. For example, modifications
to the styling of the ILcdGXYLayer
have an effect on the painting, so these must be
wrapped in a ILcdGXYAsynchronousLayerRunnable
and passed to an appropriate invocation method.
This class has the following limitations:
- the correct rendering requires a paint order compatible with that of an ILcdGXYView. In practice, a default Lightspeed view (using TLspPaintingOrder) will do.
- creation of shapes is not supported
- selection and editing is not supported in 3D
- the PaintState.EDITED state is not supported in the setVisible method
- the BODY paint representation is not supported in the setVisible method
- label decluttering does not take into account labels of other layers and only occurs in 2D projections
- labeling in general is not recommended in 3D projections: because of the tile-based visualization, labels can get cut off
- for 3D rendering, the 2D content is rendered onto small image tiles which are combined together and draped onto the world. Because of this, view-dependent content, such as labels, may be cut off at the tile boundaries.
- Since:
- 2012.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.luciad.view.lightspeed.layer.ILspLayer
ILspLayer.LayerType
-
Constructor Summary
ConstructorDescriptionTLspGXYLayerAdapter
(ILcdGXYLayer aGXYLayer) Deprecated.Creates a new adapter for the givenILcdGXYLayer
.TLspGXYLayerAdapter
(ILcdGXYLayer aGXYLayer, ILspLayer.LayerType aLayerType) Deprecated.Creates a new adapter for the givenILcdGXYLayer
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEditingStateListener
(ILspEditingStateListener aListener) Deprecated./** Adds anILspEditingStateListener
to thisILspInteractivePaintableLayer
.void
addSelectionListener
(ILcdSelectionListener<Object> aSelectionListener) Deprecated.Adds a listener to this selection.void
clearSelection
(int aDispatchEventMode) Deprecated.Deselect all the Objects in thisILcdLayer
, i.e., the selection of thisILcdLayer
is empty afterward.void
editedObjectChanged
(Object aObject) Deprecated.This method should be called when an object that is being edited has changed significantly.void
editedObjectsChanged
(Collection<Object> aObjectList) Deprecated.This method should be called when a group of objects that is being edited has changed significantly.void
Deprecated.Fires aTLcdSelectionChangedEvent
that contains all the selection changes appended by successively callingselectObject(Object, boolean, ILcdFireEventMode.FIRE_LATER)
.void
fireStatusEvent
(TLcdStatusEvent<ILspLayer> aStatusEvent) Deprecated.Fires a status event.getEditor
(TLspPaintRepresentation aPaintRepresentation) Deprecated.Returns the editor currently associated with the given paint representation, ornull
if no editor is associated.Deprecated.Returns the currentILcdDynamicFilter
that filters the objects on this layer.Deprecated.Returns the GXY layer contained in this adapter.Deprecated.Method to retrieve anILcdGXYLabelingAlgorithm
used to place the labels of the internal GXY layer.getIcon()
Deprecated.Returns a visual indication of the contents of this layer.getLabel()
Deprecated.A short textual representation of thisILcdLayer
.Deprecated.Returns the layer type set via this layer's constructor.getMapScaleRange
(TLspPaintRepresentation aPaintRepresentation) Deprecated.Returns the scale range of a TLspPaintRepresentation of this layer in unitless map scale ratios.getModel()
Deprecated.Gets theILcdModel
currently associated to this layer.Deprecated.Returns the transformation that will be used to transform coordinates of the objects in the model to world coordinates of the given view.Deprecated.Returns the objects in the specified paint state.getPainter
(TLspPaintRepresentation aPaintRepresentation) Deprecated.Returns the painter currently associated with the specified paint representation, ornull
if no painter is associated.Deprecated.The GXY layer adapter only supports theTLspPaintRepresentation.BODY
andTLspPaintRepresentation.LABEL
paint representations.Deprecated.Returns the minimum required OpenGL profile that a view must support in order to be compatible with this layer.int
Deprecated.Returns the number of objects in this selection.getStyler
(TLspPaintRepresentationState aPaintRepresentationState) Deprecated.Returns null, because LuciadLightspeed styles are not used by the GXY layer adapter.void
Deprecated.Executes the given layer runnable so that it does not interfere with the painting.void
Deprecated.Executes the given layer runnable so that it does not interfere with the painting.boolean
Deprecated.Returns whether the layer allows editing the content that it visualizes.boolean
isEditable
(TLspPaintRepresentation aPaintRepresentation) Deprecated.Returns whether the specifiedPaintRepresentation
is editable or not.boolean
Deprecated.Returnstrue
if the layer supports editing its objects.boolean
Deprecated.Returns whether the layer's objects can be selected, for example, by clicking on them.boolean
Deprecated.Returnstrue
if this layer supports selecting objects,false
otherwise.boolean
isSelected
(Object aObject) Deprecated.Checks whether the givenObject
is currently in the set of selected objects.boolean
Deprecated.Determines whether this object should be regarded as a source for snapping points.boolean
Deprecated.Returns whether or not the layer's content is painted.boolean
isVisible
(TLspPaintRepresentation aPaintRepresentation) Deprecated.Returns whether one of theTLspPaintRepresentationState
s of the the specifiedTLspPaintRepresentation
is enabled.boolean
isVisible
(TLspPaintRepresentationState aPaintRepresentationState) Deprecated.Returns whether the specifiedPaintRepresentationState
is enabled or not.paint
(ILcdGLDrawable aGLDrawable, TLspPaintPhase aPhase, TLspPaintRepresentationState aPaintRepresentationState, ILspView aView) Deprecated.Renders the specified paint representation of this layer into a view.<T> T
query
(ALspPaintQuery<T> aQuery, TLspContext aContext) Deprecated.Retrieves a set of domain objects and data based on the parameters given by the query.void
Deprecated.Removes anILspEditingStateListener
from thisILspInteractivePaintableLayer
.void
removeSelectionListener
(ILcdSelectionListener<Object> aSelectionListener) Deprecated.Removes anILcdSelectionListener
from thisILcdSelection
.Deprecated.Returns the objects in this selection.void
selectObject
(Object aObject, boolean aSelection, int aDispatchEventMode) Deprecated.Changes the selection state of any element contained in theILcdModel
thisILcdLayer
refers to.void
selectObjects
(Collection<Object> aObjects, boolean aSelection, int aDispatchEventMode) Deprecated.Changes the selection state for the given collection of objects contained in theILcdModel
this layer refers to.void
setEditable
(boolean aEditable) Deprecated.Sets whether the layer should allow editing the content that it visualizes.void
setEditable
(TLspPaintRepresentation aPaintRepresentation, boolean aEditable) Deprecated.Enables or disables the editable property of a paint representation.void
setFilter
(ILcdDynamicFilter aFilter) Deprecated.Sets theILcdDynamicFilter
to filter the objects on this layer.void
setGXYLayerLabelingAlgorithm
(ILcdGXYLabelingAlgorithm aLabelingAlgorithm) Deprecated.Assigns a label algorithm which will be used to place the labels of the internal GXY layer.void
Deprecated.Sets a visual indication of the contents of this layer.void
Deprecated.Sets the textual representation of thisILcdLayer
.void
setMapScaleRange
(TLspPaintRepresentation aPaintRepresentation, TLcdDimensionInterval<TLcdMapScale> aMapScaleRange) Deprecated.Sets the scale range of this layer to the given unitless map scale ratio range.void
Deprecated.Sets theILcdModel
to this layer.void
setSelectable
(boolean aSelectable) Deprecated.Sets the Selectable property of thisILcdLayer
.void
setSnapTarget
(boolean aSnapTarget) Deprecated.Sets whether this object should be regarded as a source for snapping points.void
setVisible
(boolean aVisible) Deprecated.Sets whether or not the layer's content is painted.void
setVisible
(TLspPaintRepresentation aPaintRepresentation, boolean aVisible) Deprecated.Enables or disables allTLspPaintRepresentationState
s of the specifiedTLspPaintRepresentation
.void
setVisible
(TLspPaintRepresentationState aPaintRepresentationState, boolean aVisible) Deprecated.Enables or disables the a paint representation state.toString()
Deprecated.Methods inherited from class com.luciad.view.lightspeed.layer.ALspLayer
addLayerStateListener, addPaintRepresentation, addPropertyChangeListener, addStatusListener, createModelXYZWorldTransformation, fireLayerStateChange, fireLayerStateChange, fireLayerStateChange, fireLayerStateChange, firePropertyChange, getBounds, getCurrentViews, getLayerStyle, invalidate, isSynchronous, registerView, removeLayerStateListener, removePaintRepresentation, removePropertyChangeListener, removeStatusListener, setLayerStyle, setSynchronous, unregisterView
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
Methods inherited from interface com.luciad.util.ILcdSelection
getSelectedObjects
Methods inherited from interface com.luciad.view.lightspeed.layer.ILspLayer
addLayerStateListener, addStatusListener, getBounds, getCurrentViews, getLayerStyle, getMapScaleProvider, invalidate, registerView, removeLayerStateListener, removeStatusListener, setLayerStyle, unregisterView
Methods inherited from interface com.luciad.view.lightspeed.editor.snapping.ILspSnappable
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
TLspGXYLayerAdapter
Deprecated.Creates a new adapter for the given
ILcdGXYLayer
.For thread safety, the given layer should operate synchronously. Hence, no ILcdGXYAsynchronousLayerWrapper instance should be passed.
In case
aGXYLayer
is aTLcdLayer
, it may only have anull
filter or a non-null
ILcdDynamicFilter
. It is also not allowed to set a filter which is not aILcdDynamicFilter
instance onaGXYLayer
as long asaGXYLayer
is contained in aTLspGXYLayerAdapter
.- Parameters:
aGXYLayer
- a synchronous layer to visualize and interact withaLayerType
- theLayerType
of the new layer
-
TLspGXYLayerAdapter
Deprecated.Creates a new adapter for the givenILcdGXYLayer
. For thread safety, the given layer should operate synchronously. Hence, no ILcdGXYAsynchronousLayerWrapper instance should be passed.- Parameters:
aGXYLayer
- a synchronous layer to visualize and interact with
-
-
Method Details
-
setGXYLayerLabelingAlgorithm
Deprecated.Assigns a label algorithm which will be used to place the labels of the internal GXY layer. The algorithm is only used in 2D world references.- Parameters:
aLabelingAlgorithm
- A label algorithm which will be used to declutter the labels of the internal GXY layer. Ifnull
the currently installed label algorithm will be removed
-
getGXYLayerLabelingAlgorithm
Deprecated.Method to retrieve anILcdGXYLabelingAlgorithm
used to place the labels of the internal GXY layer. In case no labeling algorithm is installed, this method returnsnull
.- Returns:
- An
ILcdGXYLabelingAlgorithm
used to declutter the labels of the internal GXY layer.null
in case no labeling algorithm is installed.
-
getLayerType
Deprecated.Returns the layer type set via this layer's constructor. If a constructor without aLayerType
argument is used, the default value isILspLayer.LayerType.EDITABLE
.- Specified by:
getLayerType
in interfaceILspLayer
- Overrides:
getLayerType
in classALspLayer
- Returns:
- this layer's
LayerType
- See Also:
-
toString
Deprecated. -
getGXYLayer
Deprecated.Returns the GXY layer contained in this adapter. Note that changes to this layer should be performed using theinvokeAndWaitOnGXYLayer(ILcdGXYAsynchronousLayerRunnable aRunnable)
method to make sure no synchronization issues occur.- Returns:
- the GXY layer contained in this adapter
- See Also:
-
isSnapTarget
public boolean isSnapTarget()Deprecated.Description copied from interface:ILspSnappable
Determines whether this object should be regarded as a source for snapping points.- Specified by:
isSnapTarget
in interfaceILspSnappable
- Returns:
- true if this object should be regarded as a source for snapping points; false otherwise.
-
setSnapTarget
public void setSnapTarget(boolean aSnapTarget) Deprecated.Description copied from interface:ILspSnappable
Sets whether this object should be regarded as a source for snapping points.- Specified by:
setSnapTarget
in interfaceILspSnappable
- Parameters:
aSnapTarget
- if true, this object should be regarded as a source for snapping points, i.e. it should be possible to snap to this object; if false, this object should not produce snapping candidates.
-
fireStatusEvent
Deprecated.Description copied from class:ALspLayer
Fires a status event.- Overrides:
fireStatusEvent
in classALspLayer
- Parameters:
aStatusEvent
- the status event
-
getPainter
Deprecated.Description copied from interface:ILspInteractivePaintableLayer
Returns the painter currently associated with the specified paint representation, ornull
if no painter is associated.- Specified by:
getPainter
in interfaceILspInteractivePaintableLayer
- Parameters:
aPaintRepresentation
- the paint representation for which to obtain a painter- Returns:
- the associated painter if it exists, or
null
otherwise
-
getEditor
Deprecated.Description copied from interface:ILspInteractivePaintableLayer
Returns the editor currently associated with the given paint representation, ornull
if no editor is associated.- Specified by:
getEditor
in interfaceILspInteractivePaintableLayer
- Parameters:
aPaintRepresentation
- the paint representation for which to retrieve an editor- Returns:
- the associated editor if it exists, or
null
otherwise
-
isVisible
Deprecated.Description copied from interface:ILspLayer
Returns whether one of theTLspPaintRepresentationState
s of the the specifiedTLspPaintRepresentation
is enabled. -
setVisible
public void setVisible(boolean aVisible) Deprecated.Description copied from class:ALspLayer
Sets whether or not the layer's content is painted.This method is not thread safe, it is recommended to synchronize on the layer instance if needed.
- Specified by:
setVisible
in interfaceILcdLayer
- Specified by:
setVisible
in interfaceILspLayer
- Overrides:
setVisible
in classALspLayer
- Parameters:
aVisible
-true
if the layer should be visible,false
otherwise.- See Also:
-
isVisible
public boolean isVisible()Deprecated.Description copied from interface:ILcdLayer
Returns whether or not the layer's content is painted. -
setVisible
Deprecated.Description copied from interface:ILspLayer
Enables or disables the a paint representation state. This can be used to quickly switch representations (e.g. labels) on and off without having to remove its related properties (ex. a painter). Note that this method is independent of thelayer visibility
. So a paint representation state will only be visible when this method and theILcdLayer.isVisible()
method returntrue
.- Specified by:
setVisible
in interfaceILspLayer
- Overrides:
setVisible
in classALspLayer
- Parameters:
aPaintRepresentationState
- the representations to enable or disableaVisible
- true to enable the representations or false to disable it- See Also:
-
isVisible
Deprecated.Description copied from interface:ILspLayer
Returns whether the specifiedPaintRepresentationState
is enabled or not. -
setVisible
Deprecated.Description copied from interface:ILspLayer
Enables or disables allTLspPaintRepresentationState
s of the specifiedTLspPaintRepresentation
. This can be used to quickly switch representations (e.g. labels) on and off without having to remove its related properties (ex. a painter).- Specified by:
setVisible
in interfaceILspLayer
- Overrides:
setVisible
in classALspLayer
- Parameters:
aPaintRepresentation
- the representation to enable or disableaVisible
- true to enable the representations or false to disable it- See Also:
-
setEditable
Deprecated.Description copied from interface:ILspLayer
Enables or disables the editable property of a paint representation. This can be used to quickly switch editing for representations (e.g. labels) on and off without having to remove its related properties (ex. a painter). Note that this method is independent of thelayer editability
. So paint representation will only be editable when both the layer and the paint representation are editable andediting is supported
.- Specified by:
setEditable
in interfaceILspLayer
- Overrides:
setEditable
in classALspLayer
- Parameters:
aPaintRepresentation
- the representation to enable or disableaEditable
- true to enable the representations or false to disable it- See Also:
-
isEditable
Deprecated.Description copied from interface:ILspLayer
Returns whether the specifiedPaintRepresentation
is editable or not.- Specified by:
isEditable
in interfaceILspLayer
- Overrides:
isEditable
in classALspLayer
- Parameters:
aPaintRepresentation
- the paint representation to check- Returns:
- whether the specified
PaintRepresentation
is editable or not - See Also:
-
setFilter
Deprecated.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 isnull
.This method is not thread safe, it is recommended to synchronize on the layer instance if needed.
This method should only be used if the inner GXY layer supports filtering, which is only the case for
TLcdLayer
instances. AnUnsupportedOperationException
will be thrown when the inner layer is not aTLcdLayer
. -
getFilter
Deprecated.Returns the currentILcdDynamicFilter
that filters the objects on this layer.Returns the adapter layer's filter if it extends
TLcdLayer
, or null otherwise. -
getRequiredOpenGLProfile
Deprecated.Description copied from interface:ILspPaintableLayer
Returns the minimum required OpenGL profile that a view must support in order to be compatible with this layer.- Specified by:
getRequiredOpenGLProfile
in interfaceILspPaintableLayer
- Returns:
- a
TLspGLProfile
-
paint
public TLspPaintProgress paint(ILcdGLDrawable aGLDrawable, TLspPaintPhase aPhase, TLspPaintRepresentationState aPaintRepresentationState, ILspView aView) Deprecated.Description copied from interface:ILspPaintableLayer
Renders the specified paint representation of this layer into a view. The view invokes this method for each enabled paint representation and supplies anILcdGLDrawable
as an access point to the OpenGL API. In addition to rendering the individual paint representations, views may also perform multiple rendering passes to support things such as transparency rendering or terrain of data on a 3D terrain. To this effect, the layer must honor the suppliedTLspPaintPhase
. This method returns aTLspPaintProgress
object to indicate whether the repaint was entirely finished or not. This might not be the case if thepaint()
method scheduled some asynchronous processing task, whose result is needed to complete the paint operation. For instance, if the layer loads data in the background on demand, it may return early rather than letting thepaint()
method block until the data is available. In this case the view is left incomplete, but additional repaints of the view will incrementally become more up-to-date, and the progress objects retrieved after each new repaint can be used to provide progress information to the user.- Specified by:
paint
in interfaceILspPaintableLayer
- Parameters:
aGLDrawable
- the access point to OpenGLaPhase
- describes the phase that the view repaint process is currently inaPaintRepresentationState
- identifies which paint representation state the layer should render into the viewaView
- the view into which the layer is being rendered- Returns:
- progress information describing the painting operation
-
getObjectsWithPaintState
Deprecated.Description copied from interface:ILspInteractivePaintableLayer
Returns the objects in the specified paint state. The paint state must not beTLspPaintState.REGULAR
, you can useILspInteractivePaintableLayer.query(com.luciad.view.lightspeed.query.ALspPaintQuery<T>, com.luciad.view.lightspeed.TLspContext)
instead to get the current regular objects in the view. The state of objects can be modified by adding/removing them from the returned collection. You can be informed when the objects in a certain state change by adding a listener to the returned collection. To avoid threading issues when multiple threads read or write to these collections, it is required to take a read or write lock on this collection when you access it, using theTLcdLockUtil
. For example:ILcdCollection<Object> editedObjects = layer.getObjectsWithPaintState(TLspPaintState.EDITED); try (TLcdLockUtil.Lock lock = TLcdLockUtil.writeLock(editedObjects)) { editedObjects.add(newlySelectedObject, ILcdFireEventMode.FIRE_LATER); } finally { editedObjects.fireCollectedChanges(); }
- Specified by:
getObjectsWithPaintState
in interfaceILspInteractivePaintableLayer
- Parameters:
aState
- a paint state- Returns:
- the objects
-
editedObjectChanged
Deprecated.Description copied from interface:ILspInteractivePaintableLayer
This method should be called when an object that is being edited has changed significantly. As a result all editing listeners will be informed of this.- Specified by:
editedObjectChanged
in interfaceILspInteractivePaintableLayer
- Parameters:
aObject
- the object- See Also:
-
editedObjectsChanged
Deprecated.Description copied from interface:ILspInteractivePaintableLayer
This method should be called when a group of objects that is being edited has changed significantly. As a result, all editing listeners will be informed of this change.- Specified by:
editedObjectsChanged
in interfaceILspInteractivePaintableLayer
- Parameters:
aObjectList
- A list of domain objects (in this layer) that have changed significantly. Never null.- See Also:
-
addEditingStateListener
Deprecated.Description copied from interface:ILspInteractivePaintableLayer
/** Adds anILspEditingStateListener
to thisILspInteractivePaintableLayer
.- Specified by:
addEditingStateListener
in interfaceILspInteractivePaintableLayer
- Parameters:
aListener
- theILspEditingStateListener
to be added.
-
removeEditingStateListener
Deprecated.Description copied from interface:ILspInteractivePaintableLayer
Removes anILspEditingStateListener
from thisILspInteractivePaintableLayer
.- Specified by:
removeEditingStateListener
in interfaceILspInteractivePaintableLayer
- Parameters:
aListener
- theILspEditingStateListener
to be removed.
-
invokeAndWaitOnGXYLayer
Deprecated.Executes the given layer runnable so that it does not interfere with the painting. The invocation will pass the wrapped gxy layer as argument. The runnable is executed in the caller's thread. The method waits until the runnable's invocation has stopped.- Parameters:
aRunnable
- the runnable to execute. The wrapped gxy layer will be used as argument for the runnable's execution.
-
invokeLaterOnGXYLayer
Deprecated.Executes the given layer runnable so that it does not interfere with the painting. The invocation will pass the wrapped gxy layer as argument. The runnable is executed in an anonymous (pooled) thread. The method always returns immediately.- Parameters:
aRunnable
- the runnable to execute. The invocation will pass the wrapped gxy layer as argument
-
getPaintRepresentations
Deprecated.The GXY layer adapter only supports theTLspPaintRepresentation.BODY
andTLspPaintRepresentation.LABEL
paint representations.- Specified by:
getPaintRepresentations
in interfaceILspLayer
- Overrides:
getPaintRepresentations
in classALspLayer
- Returns:
- a collection of
PaintRepresentation
s, nevernull
-
getModelXYZWorldTransformation
Deprecated.Description copied from class:ALspLayer
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 differentILcdModelReferences
orILcdXYZWorldReference
.By default this method calls
createModelXYZWorldTransformation
to create a new transformation instance.- Specified by:
getModelXYZWorldTransformation
in interfaceILspLayer
- Overrides:
getModelXYZWorldTransformation
in classALspLayer
- Parameters:
aView
- the view- Returns:
- the transformation that will be used to transform coordinates of the objects in the model to world coordinates of the given view
-
isSelectable
public boolean isSelectable()Deprecated.Description copied from interface:ILcdLayer
Returns whether the layer's objects can be selected, for example, by clicking on them.- Specified by:
isSelectable
in interfaceILcdLayer
- Overrides:
isSelectable
in classALspLayer
- Returns:
true
if the layer allows selection,false
otherwise.- See Also:
-
setSelectable
public void setSelectable(boolean aSelectable) Deprecated.Description copied from interface:ILcdLayer
Sets the Selectable property of thisILcdLayer
. CheckisSelectableSupported
to see if the layer supports selection.- Specified by:
setSelectable
in interfaceILcdLayer
- Overrides:
setSelectable
in classALspLayer
- Parameters:
aSelectable
-true
if the layer allows selection,false
otherwise.- See Also:
-
isSelectableSupported
public boolean isSelectableSupported()Deprecated.Description copied from interface:ILcdLayer
Returnstrue
if this layer supports selecting objects,false
otherwise.- Specified by:
isSelectableSupported
in interfaceILcdLayer
- Overrides:
isSelectableSupported
in classALspLayer
- Returns:
true
- See Also:
-
addSelectionListener
Deprecated.Description copied from interface:ILcdSelection
Adds a listener to this selection. In case you need to register a listener which keeps a reference to an object with a shorter life-time than thisILcdSelection
, you can use aALcdWeakSelectionListener
instance as selection listener.- Specified by:
addSelectionListener
in interfaceILcdSelection<Object>
- Overrides:
addSelectionListener
in classALspLayer
- Parameters:
aSelectionListener
- theILcdSelectionListener
to be added.
-
removeSelectionListener
Deprecated.Description copied from interface:ILcdSelection
Removes anILcdSelectionListener
from thisILcdSelection
.- Specified by:
removeSelectionListener
in interfaceILcdSelection<Object>
- Overrides:
removeSelectionListener
in classALspLayer
- Parameters:
aSelectionListener
- theILcdSelectionListener
to be removed.
-
clearSelection
public void clearSelection(int aDispatchEventMode) Deprecated.Description copied from interface:ILcdLayer
Deselect all the Objects in thisILcdLayer
, i.e., the selection of thisILcdLayer
is empty afterward.- Specified by:
clearSelection
in interfaceILcdLayer
- Overrides:
clearSelection
in classALspLayer
- Parameters:
aDispatchEventMode
- shall be one amongILcdFireEventMode.FIRE_NOW
,ILcdFireEventMode.FIRE_LATER
,ILcdFireEventMode.NO_EVENT
- See Also:
-
fireCollectedSelectionChanges
public void fireCollectedSelectionChanges()Deprecated.Description copied from interface:ILcdLayer
Fires aTLcdSelectionChangedEvent
that contains all the selection changes appended by successively callingselectObject(Object, boolean, ILcdFireEventMode.FIRE_LATER)
.- Specified by:
fireCollectedSelectionChanges
in interfaceILcdLayer
- Overrides:
fireCollectedSelectionChanges
in classALspLayer
-
selectObjects
Deprecated.Description copied from class:ALspLayer
Changes the selection state for the given collection of objects contained in theILcdModel
this layer refers to. This method shall have an effect only if ALspLayer.isSelectableSupported() and ALspLayer.isSelectable() returntrue
.- Overrides:
selectObjects
in classALspLayer
- Parameters:
aObjects
- the collection of objects to select or deselectaSelection
- the selection state,true
to select,false
to deselectaDispatchEventMode
- shall be one amongILcdFireEventMode.FIRE_NOW
,ILcdFireEventMode.FIRE_LATER
,ILcdFireEventMode.NO_EVENT
- See Also:
-
selectObject
Deprecated.Description copied from interface:ILcdLayer
Changes the selection state of any element contained in theILcdModel
thisILcdLayer
refers to. This method shall have an effect only if isSelectableSupported and isSelectable return true.- Specified by:
selectObject
in interfaceILcdLayer
- Overrides:
selectObject
in classALspLayer
- Parameters:
aObject
- theObject
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 amongILcdFireEventMode.FIRE_NOW
,ILcdFireEventMode.FIRE_LATER
,ILcdFireEventMode.NO_EVENT
- See Also:
-
isSelected
Deprecated.Description copied from interface:ILcdSelection
Checks whether the givenObject
is currently in the set of selected objects.- Specified by:
isSelected
in interfaceILcdSelection<Object>
- Overrides:
isSelected
in classALspLayer
- Parameters:
aObject
- theObject
to be checked.- Returns:
true
if theObject
is in thisILcdSelection
, false otherwise.- Throws:
IllegalArgumentException
-
getSelectionCount
public int getSelectionCount()Deprecated.Description copied from interface:ILcdSelection
Returns the number of objects in this selection.- Specified by:
getSelectionCount
in interfaceILcdSelection<Object>
- Overrides:
getSelectionCount
in classALspLayer
- Returns:
- the number of objects in this
ILcdSelection
.
-
selectedObjects
Deprecated.Description copied from interface:ILcdSelection
Returns the objects in this selection.- Specified by:
selectedObjects
in interfaceILcdSelection<Object>
- Overrides:
selectedObjects
in classALspLayer
- Returns:
- the objects currently in this
ILcdSelection
.
-
getModel
Deprecated.Description copied from class:ALspLayer
Gets theILcdModel
currently associated to this layer. -
setModel
Deprecated.Description copied from class:ALspLayer
Sets theILcdModel
to this layer.This method is not thread safe, it is recommended to synchronize on the layer instance if needed.
-
isEditableSupported
public boolean isEditableSupported()Deprecated.Description copied from interface:ILcdLayer
Returnstrue
if the layer supports editing its objects.- Specified by:
isEditableSupported
in interfaceILcdLayer
- Overrides:
isEditableSupported
in classALspLayer
- Returns:
true
- See Also:
-
setEditable
public void setEditable(boolean aEditable) Deprecated.Description copied from interface:ILcdLayer
Sets whether the layer should allow editing the content that it visualizes. CheckisEditableSupported
to see if the layer supports editing.- Specified by:
setEditable
in interfaceILcdLayer
- Specified by:
setEditable
in interfaceILspLayer
- Overrides:
setEditable
in classALspLayer
- Parameters:
aEditable
- true if the layer content can be edited- See Also:
-
isEditable
public boolean isEditable()Deprecated.Description copied from interface:ILcdLayer
Returns whether the layer allows editing the content that it visualizes.- Specified by:
isEditable
in interfaceILcdLayer
- Overrides:
isEditable
in classALspLayer
- Returns:
true
if thisILcdLayer
is editable,false
otherwise- See Also:
-
getLabel
Deprecated.Description copied from interface:ILcdLayer
A short textual representation of thisILcdLayer
. -
setLabel
Deprecated.Description copied from class:ALspLayer
Sets the textual representation of thisILcdLayer
.This method is not thread safe, it is recommended to synchronize on the layer instance if needed.
-
getIcon
Deprecated.Description copied from interface:ILcdLayer
Returns a visual indication of the contents of this layer. For example, for a grid layer, an icon containing a grid could be used. -
setIcon
Deprecated.Description copied from interface:ILcdLayer
Sets a visual indication of the contents of this layer. -
getStyler
Deprecated.Returns null, because LuciadLightspeed styles are not used by the GXY layer adapter.- Specified by:
getStyler
in interfaceILspStyledLayer
- Parameters:
aPaintRepresentationState
- the paint representation state for which the styler should be retrieved- Returns:
- the styler used for the given paint representation state
-
query
Deprecated.Description copied from interface:ILspInteractivePaintableLayer
Retrieves a set of domain objects and data based on the parameters given by the query.- Specified by:
query
in interfaceILspInteractivePaintableLayer
- Type Parameters:
T
- the type of the return value ofALspPaintQuery.getResult()
- Parameters:
aQuery
- the queryaContext
- the context- Returns:
- the value returned by
ALspPaintQuery.getResult()
after processing is finished
-
getMapScaleRange
public TLcdDimensionInterval<TLcdMapScale> getMapScaleRange(TLspPaintRepresentation aPaintRepresentation) Deprecated.Returns the scale range of a TLspPaintRepresentation of this layer in unitless map scale ratios. If configured, the layer contents are only shown if and when the view's map scale is larger than the interval's minimum and smaller than the interval's maximum.Map scale ranges are unsupported for
TLspGXYLayerAdapter
, so this method will always returnnull
.- Overrides:
getMapScaleRange
in classALspLayer
- Parameters:
aPaintRepresentation
- the paint representation for which to return the scale range- Returns:
- the scale range
- See Also:
-
setMapScaleRange
public void setMapScaleRange(TLspPaintRepresentation aPaintRepresentation, TLcdDimensionInterval<TLcdMapScale> aMapScaleRange) Deprecated.Sets the scale range of this layer to the given unitless map scale ratio range. If configured, the layer contents are only shown if and when the view's map scale is larger than the interval's minimum and smaller than the interval's maximum.Map scale ranges are unsupported for
TLspGXYLayerAdapter
, this method will throw anUnsupportedOperationException
.- Overrides:
setMapScaleRange
in classALspLayer
- Parameters:
aPaintRepresentation
- the paint representationaMapScaleRange
- the new scale range of this layer, ornull
to deactivate any scale restriction- Throws:
UnsupportedOperationException
- always- See Also:
-
GXY view
, or use Lightspeed layers.