Package org.esa.snap.ui.layer
Class AbstractLayerEditor
java.lang.Object
org.esa.snap.ui.layer.AbstractLayerEditor
- All Implemented Interfaces:
LayerEditor
- Direct Known Subclasses:
AbstractLayerConfigurationEditor
,FeatureLayerEditor
Base class for layer editors.
- Since:
- BEAM 4.10
-
Field Summary
Fields inherited from interface org.esa.snap.ui.layer.LayerEditor
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract JComponent
Creates the editor control for this editor.final JComponent
createControl
(Layer layer) Creates the control for the user interface which is displayed in the Layer Editor Toolview.protected Layer
void
Called y the framework in order to inform this editor that it has been attached to the Layer Editor Toolview.void
Called y the framework in order to inform this editor that it has been detached from the Layer Editor Toolview.void
Called y the framework in order to inform this editor that the current layer has changed.
-
Constructor Details
-
AbstractLayerEditor
protected AbstractLayerEditor()
-
-
Method Details
-
createControl
Description copied from interface:LayerEditor
Creates the control for the user interface which is displayed in the Layer Editor Toolview.- Specified by:
createControl
in interfaceLayerEditor
- Parameters:
layer
- The layer to create the control for.- Returns:
- The control.
-
handleEditorAttached
public void handleEditorAttached()Description copied from interface:LayerEditor
Called y the framework in order to inform this editor that it has been attached to the Layer Editor Toolview.- Specified by:
handleEditorAttached
in interfaceLayerEditor
-
handleEditorDetached
public void handleEditorDetached()Description copied from interface:LayerEditor
Called y the framework in order to inform this editor that it has been detached from the Layer Editor Toolview.- Specified by:
handleEditorDetached
in interfaceLayerEditor
-
handleLayerContentChanged
public void handleLayerContentChanged()Description copied from interface:LayerEditor
Called y the framework in order to inform this editor that the current layer has changed. Usually the the editor control must be updated in this case.- Specified by:
handleLayerContentChanged
in interfaceLayerEditor
-
createControl
Creates the editor control for this editor.- Returns:
- The editor control.
-
getCurrentLayer
- Returns:
- The current layer.
-