public interface ILspInteractivePaintableLayer extends ILspPaintableLayer, ILspStyledLayer
ILspPaintableLayer
that paints the contents of its model using an
ILspPainter
. This interface also defines the ability to graphically select and edit
domain objects using an ILspEditor
.ILspLayer.LayerType
Modifier and Type | Method and Description |
---|---|
void |
addEditingStateListener(ILspEditingStateListener aListener)
/**
Adds an
ILspEditingStateListener to this ILspInteractivePaintableLayer . |
void |
editedObjectChanged(Object aObject)
This method should be called when an object that is being edited has changed significantly.
|
default void |
editedObjectsChanged(Collection<Object> aObjectList)
This method should be called when a group of objects that is being edited has changed significantly.
|
ILspEditor |
getEditor(TLspPaintRepresentation aPaintRepresentation)
Returns the editor currently associated with the given paint representation, or
null
if no editor is associated. |
ILcdCollection<Object> |
getObjectsWithPaintState(TLspPaintState aState)
Returns the objects in the specified paint state.
|
ILspPainter |
getPainter(TLspPaintRepresentation aPaintRepresentation)
Returns the painter currently associated with the specified paint
representation, or
null if no painter is associated. |
<T> T |
query(ALspPaintQuery<T> aQuery,
TLspContext aContext)
Retrieves a set of domain objects and data based on the parameters given by the query.
|
void |
removeEditingStateListener(ILspEditingStateListener aListener)
Removes an
ILspEditingStateListener from this ILspInteractivePaintableLayer . |
getRequiredOpenGLProfile, paint
getStyler
addLayerStateListener, addStatusListener, getBounds, getCurrentViews, getLayerStyle, getLayerType, getMapScaleProvider, getModelXYZWorldTransformation, getPaintRepresentations, invalidate, isEditable, isVisible, isVisible, registerView, removeLayerStateListener, removeStatusListener, setEditable, setEditable, setLayerStyle, setVisible, setVisible, setVisible, unregisterView
clearSelection, fireCollectedSelectionChanges, getIcon, getLabel, getModel, isEditable, isEditableSupported, isSelectable, isSelectableSupported, isVisible, selectObject, setIcon, setLabel, setSelectable
addSelectionListener, getSelectedObjects, getSelectionCount, isSelected, removeSelectionListener, selectedObjects
addPropertyChangeListener, removePropertyChangeListener
ILspPainter getPainter(TLspPaintRepresentation aPaintRepresentation)
null
if no painter is associated.aPaintRepresentation
- the paint representation for which to obtain a painternull
otherwiseIllegalArgumentException
- if aPaintRepresentation
is not supportedILspEditor getEditor(TLspPaintRepresentation aPaintRepresentation)
null
if no editor is associated.aPaintRepresentation
- the paint representation for which to retrieve an editornull
otherwiseIllegalArgumentException
- if aPaintRepresentation
is not supportedILcdCollection<Object> getObjectsWithPaintState(TLspPaintState aState)
TLspPaintState.REGULAR
, you can use 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.aState
- a paint statevoid editedObjectChanged(Object aObject)
aObject
- the objectTLspEditingStateEvent.ChangeType.EDITING_CHANGE
,
addEditingStateListener(com.luciad.view.lightspeed.editor.operation.ILspEditingStateListener)
default void editedObjectsChanged(Collection<Object> aObjectList)
aObjectList
- A list of domain objects (in this layer) that have changed significantly. Never null.TLspEditingStateEvent.ChangeType.EDITING_CHANGE
,
addEditingStateListener(com.luciad.view.lightspeed.editor.operation.ILspEditingStateListener)
void addEditingStateListener(ILspEditingStateListener aListener)
ILspEditingStateListener
to this ILspInteractivePaintableLayer
.aListener
- the ILspEditingStateListener
to be added.void removeEditingStateListener(ILspEditingStateListener aListener)
ILspEditingStateListener
from this ILspInteractivePaintableLayer
.aListener
- the ILspEditingStateListener
to be removed.<T> T query(ALspPaintQuery<T> aQuery, TLspContext aContext)
T
- the type of the return value of ALspPaintQuery.getResult()
aQuery
- the queryaContext
- the contextALspPaintQuery.getResult()
after processing is finishedUnsupportedOperationException
- if an aspect of the query is not supported by this layer