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
ConstructorsConstructorDescriptionTLspGXYLayerAdapter(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 TypeMethodDescriptionvoidaddEditingStateListener(ILspEditingStateListener aListener) Deprecated.Adds anILspEditingStateListenerto thisILspInteractivePaintableLayer.voidaddSelectionListener(ILcdSelectionListener<Object> aSelectionListener) Deprecated.Adds a listener to this selection.voidclearSelection(int aDispatchEventMode) Deprecated.Deselect all the Objects in thisILcdLayer, i.e., the selection of thisILcdLayeris empty afterward.voideditedObjectChanged(Object aObject) Deprecated.This method should be called when an object that is being edited has changed significantly.voideditedObjectsChanged(Collection<Object> aObjectList) Deprecated.This method should be called when a group of objects that is being edited has changed significantly.voidDeprecated.Fires aTLcdSelectionChangedEventthat contains all the selection changes appended by successively callingselectObject(Object, boolean, ILcdFireEventMode.FIRE_LATER).voidfireStatusEvent(TLcdStatusEvent<ILspLayer> aStatusEvent) Deprecated.Fires a status event.getEditor(TLspPaintRepresentation aPaintRepresentation) Deprecated.Returns the editor currently associated with the given paint representation, ornullif no editor is associated.Deprecated.Returns the currentILcdDynamicFilterthat filters the objects on this layer.Deprecated.Returns the GXY layer contained in this adapter.Deprecated.Method to retrieve anILcdGXYLabelingAlgorithmused 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 theILcdModelcurrently 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, ornullif no painter is associated.Deprecated.The GXY layer adapter only supports theTLspPaintRepresentation.BODYandTLspPaintRepresentation.LABELpaint representations.Deprecated.Returns the minimum required OpenGL profile that a view must support in order to be compatible with this layer.intDeprecated.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.voidDeprecated.Executes the given layer runnable so that it does not interfere with the painting.voidDeprecated.Executes the given layer runnable so that it does not interfere with the painting.booleanDeprecated.Returns whether the layer allows editing the content that it visualizes.booleanisEditable(TLspPaintRepresentation aPaintRepresentation) Deprecated.Returns whether the specifiedPaintRepresentationis editable or not.booleanDeprecated.Returnstrueif the layer supports editing its objects.booleanDeprecated.Returns whether the layer's objects can be selected, for example, by clicking on them.booleanDeprecated.Returnstrueif this layer supports selecting objects,falseotherwise.booleanisSelected(Object aObject) Deprecated.Checks whether the givenObjectis currently in the set of selected objects.booleanDeprecated.Determines whether this object should be regarded as a source for snapping points.booleanDeprecated.Returns whether or not the layer's content is painted.booleanisVisible(TLspPaintRepresentation aPaintRepresentation) Deprecated.Returns whether one of theTLspPaintRepresentationStates of the the specifiedTLspPaintRepresentationis enabled.booleanisVisible(TLspPaintRepresentationState aPaintRepresentationState) Deprecated.Returns whether the specifiedPaintRepresentationStateis 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> Tquery(ALspPaintQuery<T> aQuery, TLspContext aContext) Deprecated.Retrieves a set of domain objects and data based on the parameters given by the query.voidDeprecated.Removes anILspEditingStateListenerfrom thisILspInteractivePaintableLayer.voidremoveSelectionListener(ILcdSelectionListener<Object> aSelectionListener) Deprecated.Removes anILcdSelectionListenerfrom thisILcdSelection.Deprecated.Returns the objects in this selection.voidselectObject(Object aObject, boolean aSelection, int aDispatchEventMode) Deprecated.Changes the selection state of any element contained in theILcdModelthisILcdLayerrefers to.voidselectObjects(Collection<Object> aObjects, boolean aSelection, int aDispatchEventMode) Deprecated.Changes the selection state for the given collection of objects contained in theILcdModelthis layer refers to.voidsetEditable(boolean aEditable) Deprecated.Sets whether the layer should allow editing the content that it visualizes.voidsetEditable(TLspPaintRepresentation aPaintRepresentation, boolean aEditable) Deprecated.Enables or disables the editable property of a paint representation.voidsetFilter(ILcdDynamicFilter aFilter) Deprecated.Sets theILcdDynamicFilterto filter the objects on this layer.voidsetGXYLayerLabelingAlgorithm(ILcdGXYLabelingAlgorithm aLabelingAlgorithm) Deprecated.Assigns a label algorithm which will be used to place the labels of the internal GXY layer.voidDeprecated.Sets a visual indication of the contents of this layer.voidDeprecated.Sets the textual representation of thisILcdLayer.voidsetMapScaleRange(TLspPaintRepresentation aPaintRepresentation, TLcdDimensionInterval<TLcdMapScale> aMapScaleRange) Deprecated.Sets the scale range of this layer to the given unitless map scale ratio range.voidDeprecated.Sets theILcdModelto this layer.voidsetSelectable(boolean aSelectable) Deprecated.Sets the Selectable property of thisILcdLayer.voidsetSnapTarget(boolean aSnapTarget) Deprecated.Sets whether this object should be regarded as a source for snapping points.voidsetVisible(boolean aVisible) Deprecated.Sets whether or not the layer's content is painted.voidsetVisible(TLspPaintRepresentation aPaintRepresentation, boolean aVisible) Deprecated.Enables or disables allTLspPaintRepresentationStates of the specifiedTLspPaintRepresentation.voidsetVisible(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, unregisterViewMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListenerMethods inherited from interface com.luciad.util.ILcdSelection
getSelectedObjectsMethods inherited from interface com.luciad.view.lightspeed.layer.ILspLayer
addLayerStateListener, addStatusListener, getBounds, getCurrentViews, getLayerStyle, getMapScaleProvider, invalidate, registerView, removeLayerStateListener, removeStatusListener, setLayerStyle, unregisterViewMethods 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
aGXYLayeris aTLcdLayer, it may only have anullfilter or a non-nullILcdDynamicFilter. It is also not allowed to set a filter which is not aILcdDynamicFilterinstance onaGXYLayeras long asaGXYLayeris contained in aTLspGXYLayerAdapter.- Parameters:
aGXYLayer- a synchronous layer to visualize and interact withaLayerType- theLayerTypeof 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. Ifnullthe currently installed label algorithm will be removed
-
getGXYLayerLabelingAlgorithm
Deprecated.Method to retrieve anILcdGXYLabelingAlgorithmused to place the labels of the internal GXY layer. In case no labeling algorithm is installed, this method returnsnull.- Returns:
- An
ILcdGXYLabelingAlgorithmused to declutter the labels of the internal GXY layer.nullin case no labeling algorithm is installed.
-
getLayerType
Deprecated.Returns the layer type set via this layer's constructor. If a constructor without aLayerTypeargument is used, the default value isILspLayer.LayerType.EDITABLE.- Specified by:
getLayerTypein interfaceILspLayer- Overrides:
getLayerTypein 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:ILspSnappableDetermines whether this object should be regarded as a source for snapping points.- Specified by:
isSnapTargetin 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:ILspSnappableSets whether this object should be regarded as a source for snapping points.- Specified by:
setSnapTargetin 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:ALspLayerFires a status event.- Overrides:
fireStatusEventin classALspLayer- Parameters:
aStatusEvent- the status event
-
getPainter
Deprecated.Description copied from interface:ILspInteractivePaintableLayerReturns the painter currently associated with the specified paint representation, ornullif no painter is associated.- Specified by:
getPainterin interfaceILspInteractivePaintableLayer- Parameters:
aPaintRepresentation- the paint representation for which to obtain a painter- Returns:
- the associated painter if it exists, or
nullotherwise
-
getEditor
Deprecated.Description copied from interface:ILspInteractivePaintableLayerReturns the editor currently associated with the given paint representation, ornullif no editor is associated.- Specified by:
getEditorin interfaceILspInteractivePaintableLayer- Parameters:
aPaintRepresentation- the paint representation for which to retrieve an editor- Returns:
- the associated editor if it exists, or
nullotherwise
-
isVisible
Deprecated.Description copied from interface:ILspLayerReturns whether one of theTLspPaintRepresentationStates of the the specifiedTLspPaintRepresentationis enabled. -
setVisible
public void setVisible(boolean aVisible) Deprecated.Description copied from class:ALspLayerSets 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:
setVisiblein interfaceILcdLayer- Specified by:
setVisiblein interfaceILspLayer- Overrides:
setVisiblein classALspLayer- Parameters:
aVisible-trueif the layer should be visible,falseotherwise.- See Also:
-
isVisible
public boolean isVisible()Deprecated.Description copied from interface:ILcdLayerReturns whether or not the layer's content is painted. -
setVisible
Deprecated.Description copied from interface:ILspLayerEnables 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:
setVisiblein interfaceILspLayer- Overrides:
setVisiblein 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:ILspLayerReturns whether the specifiedPaintRepresentationStateis enabled or not. -
setVisible
Deprecated.Description copied from interface:ILspLayerEnables or disables allTLspPaintRepresentationStates 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:
setVisiblein interfaceILspLayer- Overrides:
setVisiblein 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:ILspLayerEnables 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:
setEditablein interfaceILspLayer- Overrides:
setEditablein 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:ILspLayerReturns whether the specifiedPaintRepresentationis editable or not.- Specified by:
isEditablein interfaceILspLayer- Overrides:
isEditablein classALspLayer- Parameters:
aPaintRepresentation- the paint representation to check- Returns:
- whether the specified
PaintRepresentationis editable or not - See Also:
-
setFilter
Deprecated.Sets the
ILcdDynamicFilterto 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
nullfilter, 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
TLcdLayerinstances. AnUnsupportedOperationExceptionwill be thrown when the inner layer is not aTLcdLayer. -
getFilter
Deprecated.Returns the currentILcdDynamicFilterthat 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:ILspPaintableLayerReturns the minimum required OpenGL profile that a view must support in order to be compatible with this layer.- Specified by:
getRequiredOpenGLProfilein interfaceILspPaintableLayer- Returns:
- a
TLspGLProfile
-
paint
public TLspPaintProgress paint(ILcdGLDrawable aGLDrawable, TLspPaintPhase aPhase, TLspPaintRepresentationState aPaintRepresentationState, ILspView aView) Deprecated.Description copied from interface:ILspPaintableLayerRenders the specified paint representation of this layer into a view. The view invokes this method for each enabled paint representation and supplies anILcdGLDrawableas 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 aTLspPaintProgressobject 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:
paintin 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:ILspInteractivePaintableLayerReturns 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:
getObjectsWithPaintStatein interfaceILspInteractivePaintableLayer- Parameters:
aState- a paint state- Returns:
- the objects
-
editedObjectChanged
Deprecated.Description copied from interface:ILspInteractivePaintableLayerThis 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:
editedObjectChangedin interfaceILspInteractivePaintableLayer- Parameters:
aObject- the object- See Also:
-
editedObjectsChanged
Deprecated.Description copied from interface:ILspInteractivePaintableLayerThis 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:
editedObjectsChangedin 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:ILspInteractivePaintableLayerAdds anILspEditingStateListenerto thisILspInteractivePaintableLayer.- Specified by:
addEditingStateListenerin interfaceILspInteractivePaintableLayer- Parameters:
aListener- theILspEditingStateListenerto be added.
-
removeEditingStateListener
Deprecated.Description copied from interface:ILspInteractivePaintableLayerRemoves anILspEditingStateListenerfrom thisILspInteractivePaintableLayer.- Specified by:
removeEditingStateListenerin interfaceILspInteractivePaintableLayer- Parameters:
aListener- theILspEditingStateListenerto 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.BODYandTLspPaintRepresentation.LABELpaint representations.- Specified by:
getPaintRepresentationsin interfaceILspLayer- Overrides:
getPaintRepresentationsin classALspLayer- Returns:
- a collection of
PaintRepresentations, nevernull
-
getModelXYZWorldTransformation
Deprecated.Description copied from class:ALspLayerReturns 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
ILcdModelXYZWorldTransformationfor differentILcdModelReferencesorILcdXYZWorldReference.By default this method calls
createModelXYZWorldTransformationto create a new transformation instance.- Specified by:
getModelXYZWorldTransformationin interfaceILspLayer- Overrides:
getModelXYZWorldTransformationin 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:ILcdLayerReturns whether the layer's objects can be selected, for example, by clicking on them.- Specified by:
isSelectablein interfaceILcdLayer- Overrides:
isSelectablein classALspLayer- Returns:
trueif the layer allows selection,falseotherwise.- See Also:
-
setSelectable
public void setSelectable(boolean aSelectable) Deprecated.Description copied from interface:ILcdLayerSets the Selectable property of thisILcdLayer. CheckisSelectableSupportedto see if the layer supports selection.- Specified by:
setSelectablein interfaceILcdLayer- Overrides:
setSelectablein classALspLayer- Parameters:
aSelectable-trueif the layer allows selection,falseotherwise.- See Also:
-
isSelectableSupported
public boolean isSelectableSupported()Deprecated.Description copied from interface:ILcdLayerReturnstrueif this layer supports selecting objects,falseotherwise.- Specified by:
isSelectableSupportedin interfaceILcdLayer- Overrides:
isSelectableSupportedin classALspLayer- Returns:
true- See Also:
-
addSelectionListener
Deprecated.Description copied from interface:ILcdSelectionAdds 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 aALcdWeakSelectionListenerinstance as selection listener.- Specified by:
addSelectionListenerin interfaceILcdSelection<Object>- Overrides:
addSelectionListenerin classALspLayer- Parameters:
aSelectionListener- theILcdSelectionListenerto be added.
-
removeSelectionListener
Deprecated.Description copied from interface:ILcdSelectionRemoves anILcdSelectionListenerfrom thisILcdSelection.- Specified by:
removeSelectionListenerin interfaceILcdSelection<Object>- Overrides:
removeSelectionListenerin classALspLayer- Parameters:
aSelectionListener- theILcdSelectionListenerto be removed.
-
clearSelection
public void clearSelection(int aDispatchEventMode) Deprecated.Description copied from interface:ILcdLayerDeselect all the Objects in thisILcdLayer, i.e., the selection of thisILcdLayeris empty afterward.- Specified by:
clearSelectionin interfaceILcdLayer- Overrides:
clearSelectionin 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:ILcdLayerFires aTLcdSelectionChangedEventthat contains all the selection changes appended by successively callingselectObject(Object, boolean, ILcdFireEventMode.FIRE_LATER).- Specified by:
fireCollectedSelectionChangesin interfaceILcdLayer- Overrides:
fireCollectedSelectionChangesin classALspLayer
-
selectObjects
Deprecated.Description copied from class:ALspLayerChanges the selection state for the given collection of objects contained in theILcdModelthis layer refers to. This method shall have an effect only if ALspLayer.isSelectableSupported() and ALspLayer.isSelectable() returntrue.- Overrides:
selectObjectsin classALspLayer- Parameters:
aObjects- the collection of objects to select or deselectaSelection- the selection state,trueto select,falseto deselectaDispatchEventMode- shall be one amongILcdFireEventMode.FIRE_NOW,ILcdFireEventMode.FIRE_LATER,ILcdFireEventMode.NO_EVENT- See Also:
-
selectObject
Deprecated.Description copied from interface:ILcdLayerChanges the selection state of any element contained in theILcdModelthisILcdLayerrefers to. This method shall have an effect only if isSelectableSupported and isSelectable return true.- Specified by:
selectObjectin interfaceILcdLayer- Overrides:
selectObjectin classALspLayer- Parameters:
aObject- theObjectto 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,trueto select,falseto deselect.aDispatchEventMode- shall be one amongILcdFireEventMode.FIRE_NOW,ILcdFireEventMode.FIRE_LATER,ILcdFireEventMode.NO_EVENT- See Also:
-
isSelected
Deprecated.Description copied from interface:ILcdSelectionChecks whether the givenObjectis currently in the set of selected objects.- Specified by:
isSelectedin interfaceILcdSelection<Object>- Overrides:
isSelectedin classALspLayer- Parameters:
aObject- theObjectto be checked.- Returns:
trueif theObjectis in thisILcdSelection, false otherwise.- Throws:
IllegalArgumentException
-
getSelectionCount
public int getSelectionCount()Deprecated.Description copied from interface:ILcdSelectionReturns the number of objects in this selection.- Specified by:
getSelectionCountin interfaceILcdSelection<Object>- Overrides:
getSelectionCountin classALspLayer- Returns:
- the number of objects in this
ILcdSelection.
-
selectedObjects
Deprecated.Description copied from interface:ILcdSelectionReturns the objects in this selection.- Specified by:
selectedObjectsin interfaceILcdSelection<Object>- Overrides:
selectedObjectsin classALspLayer- Returns:
- the objects currently in this
ILcdSelection.
-
getModel
Deprecated.Description copied from class:ALspLayerGets theILcdModelcurrently associated to this layer. -
setModel
Deprecated.Description copied from class:ALspLayerSets theILcdModelto 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:ILcdLayerReturnstrueif the layer supports editing its objects.- Specified by:
isEditableSupportedin interfaceILcdLayer- Overrides:
isEditableSupportedin classALspLayer- Returns:
true- See Also:
-
setEditable
public void setEditable(boolean aEditable) Deprecated.Description copied from interface:ILcdLayerSets whether the layer should allow editing the content that it visualizes. CheckisEditableSupportedto see if the layer supports editing.- Specified by:
setEditablein interfaceILcdLayer- Specified by:
setEditablein interfaceILspLayer- Overrides:
setEditablein classALspLayer- Parameters:
aEditable- true if the layer content can be edited- See Also:
-
isEditable
public boolean isEditable()Deprecated.Description copied from interface:ILcdLayerReturns whether the layer allows editing the content that it visualizes.- Specified by:
isEditablein interfaceILcdLayer- Overrides:
isEditablein classALspLayer- Returns:
trueif thisILcdLayeris editable,falseotherwise- See Also:
-
getLabel
Deprecated.Description copied from interface:ILcdLayerA short textual representation of thisILcdLayer. -
setLabel
Deprecated.Description copied from class:ALspLayerSets 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:ILcdLayerReturns 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:ILcdLayerSets 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:
getStylerin 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:ILspInteractivePaintableLayerRetrieves a set of domain objects and data based on the parameters given by the query.- Specified by:
queryin 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:
getMapScaleRangein 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:
setMapScaleRangein classALspLayer- Parameters:
aPaintRepresentation- the paint representationaMapScaleRange- the new scale range of this layer, ornullto deactivate any scale restriction- Throws:
UnsupportedOperationException- always- See Also:
-
GXY view, or use Lightspeed layers.