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
public abstract class AbstractLayerEditor extends Object implements LayerEditor
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 Modifier Constructor Description protectedAbstractLayerEditor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract JComponentcreateControl()Creates the editor control for this editor.JComponentcreateControl(Layer layer)Creates the control for the user interface which is displayed in the Layer Editor Toolview.protected LayergetCurrentLayer()voidhandleEditorAttached()Called y the framework in order to inform this editor that it has been attached to the Layer Editor Toolview.voidhandleEditorDetached()Called y the framework in order to inform this editor that it has been detached from the Layer Editor Toolview.voidhandleLayerContentChanged()Called y the framework in order to inform this editor that the current layer has changed.
-
-
-
Method Detail
-
createControl
public final JComponent createControl(Layer layer)
Description copied from interface:LayerEditorCreates the control for the user interface which is displayed in the Layer Editor Toolview.- Specified by:
createControlin interfaceLayerEditor- Parameters:
layer- The layer to create the control for.- Returns:
- The control.
-
handleEditorAttached
public void handleEditorAttached()
Description copied from interface:LayerEditorCalled y the framework in order to inform this editor that it has been attached to the Layer Editor Toolview.- Specified by:
handleEditorAttachedin interfaceLayerEditor
-
handleEditorDetached
public void handleEditorDetached()
Description copied from interface:LayerEditorCalled y the framework in order to inform this editor that it has been detached from the Layer Editor Toolview.- Specified by:
handleEditorDetachedin interfaceLayerEditor
-
handleLayerContentChanged
public void handleLayerContentChanged()
Description copied from interface:LayerEditorCalled 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:
handleLayerContentChangedin interfaceLayerEditor
-
createControl
protected abstract JComponent createControl()
Creates the editor control for this editor.- Returns:
- The editor control.
-
getCurrentLayer
protected Layer getCurrentLayer()
- Returns:
- The current layer.
-
-