public interface DataViewOverlayControl
DataViewOverlayControl
class is an interface
that can be implemented by any class that acts to control the
overlay content of an EarthDataViewPanel
. The control
signals a change in the overlays that should be displayed on
the view using OVERLAY_LIST_PROPERTY
, and a change in
the operation mode using OPERATION_MODE_PROPERTY
.
The operation mode property controls what drawing mode the
view should use, and uses mode constants from the LightTable
class.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPERATION_MODE_PROPERTY
The operation mode property.
|
static java.lang.String |
OVERLAY_LIST_PROPERTY
The overlay list property.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Adds a change listener to the list.
|
void |
deactivate()
Deactivates the control.
|
LightTable.Mode |
getOperationMode()
Gets the current operation mode.
|
boolean |
isActive()
Gets the control activity state.
|
void |
performOperation(java.awt.Shape shape)
Performs a view control operation using the specified shape.
|
static final java.lang.String OVERLAY_LIST_PROPERTY
static final java.lang.String OPERATION_MODE_PROPERTY
void deactivate()
void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
OVERLAY_LIST_PROPERTY
and OPERATION_MODE_PROPERTY
.propertyName
- the property to listen for.listener
- the listener to call when a property change
occurs.void performOperation(java.awt.Shape shape)
shape
- the shape to perform the operation for.boolean isActive()
performOperation(java.awt.Shape)
.LightTable.Mode getOperationMode()
LightTable
class.