Class ImageLayerController
- java.lang.Object
-
- org.netbeans.spi.options.OptionsPanelController
-
- org.esa.snap.rcp.preferences.DefaultConfigController
-
- org.esa.snap.rcp.preferences.layer.ImageLayerController
-
public final class ImageLayerController extends DefaultConfigController
* Panel handling image layer preferences. Sub-panel of the "Layer"-panel.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.netbeans.spi.options.OptionsPanelController
org.netbeans.spi.options.OptionsPanelController.ContainerRegistration, org.netbeans.spi.options.OptionsPanelController.Keywords, org.netbeans.spi.options.OptionsPanelController.KeywordsRegistration, org.netbeans.spi.options.OptionsPanelController.SubRegistration, org.netbeans.spi.options.OptionsPanelController.TopLevelRegistration
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_KEY_IMAGE_BG_COLOR
Preferences key for the background colorstatic String
PROPERTY_KEY_IMAGE_BORDER_COLOR
Preferences key for image border colorstatic String
PROPERTY_KEY_IMAGE_BORDER_SHOWN
Preferences key for showing image borderstatic String
PROPERTY_KEY_IMAGE_BORDER_SIZE
Preferences key for image border sizestatic String
PROPERTY_KEY_PIXEL_BORDER_COLOR
Preferences key for pixel border colorstatic String
PROPERTY_KEY_PIXEL_BORDER_SHOWN
Preferences key for showing pixel image borderstatic String
PROPERTY_KEY_PIXEL_BORDER_SIZE
Preferences key for pixel border size
-
Constructor Summary
Constructors Constructor Description ImageLayerController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure(com.bc.ceres.swing.binding.BindingContext context)
Configure the passed binding context.protected JPanel
createPanel(com.bc.ceres.swing.binding.BindingContext context)
Create a panel that allows the user to set the parameters in the givenBindingContext
.protected PropertySet
createPropertySet()
Create aPropertySet
object instance that holds all parameters.org.openide.util.HelpCtx
getHelpCtx()
-
Methods inherited from class org.esa.snap.rcp.preferences.DefaultConfigController
addPropertyChangeListener, applyChanges, cancel, createPropertySet, getBindingContext, getComponent, isChanged, isInitialised, isValid, removePropertyChangeListener, setChanged, update
-
-
-
-
Field Detail
-
PROPERTY_KEY_IMAGE_BG_COLOR
public static final String PROPERTY_KEY_IMAGE_BG_COLOR
Preferences key for the background color- See Also:
- Constant Field Values
-
PROPERTY_KEY_IMAGE_BORDER_SHOWN
public static final String PROPERTY_KEY_IMAGE_BORDER_SHOWN
Preferences key for showing image border- See Also:
- Constant Field Values
-
PROPERTY_KEY_IMAGE_BORDER_SIZE
public static final String PROPERTY_KEY_IMAGE_BORDER_SIZE
Preferences key for image border size- See Also:
- Constant Field Values
-
PROPERTY_KEY_IMAGE_BORDER_COLOR
public static final String PROPERTY_KEY_IMAGE_BORDER_COLOR
Preferences key for image border color- See Also:
- Constant Field Values
-
PROPERTY_KEY_PIXEL_BORDER_SHOWN
public static final String PROPERTY_KEY_PIXEL_BORDER_SHOWN
Preferences key for showing pixel image border- See Also:
- Constant Field Values
-
PROPERTY_KEY_PIXEL_BORDER_SIZE
public static final String PROPERTY_KEY_PIXEL_BORDER_SIZE
Preferences key for pixel border size- See Also:
- Constant Field Values
-
PROPERTY_KEY_PIXEL_BORDER_COLOR
public static final String PROPERTY_KEY_PIXEL_BORDER_COLOR
Preferences key for pixel border color- See Also:
- Constant Field Values
-
-
Method Detail
-
createPropertySet
protected PropertySet createPropertySet()
Description copied from class:DefaultConfigController
Create aPropertySet
object instance that holds all parameters. Clients that want to maintain properties need to overwrite this method.- Specified by:
createPropertySet
in classDefaultConfigController
- Returns:
- An instance of
PropertySet
, holding all configuration parameters. - See Also:
DefaultConfigController.createPropertySet(Object)
-
createPanel
protected JPanel createPanel(com.bc.ceres.swing.binding.BindingContext context)
Description copied from class:DefaultConfigController
Create a panel that allows the user to set the parameters in the givenBindingContext
. Clients that want to create their own panel representation on the given properties need to overwrite this method.- Overrides:
createPanel
in classDefaultConfigController
- Parameters:
context
- TheBindingContext
for the panel.- Returns:
- A JPanel instance for the given
BindingContext
, nevernull
.
-
configure
protected void configure(com.bc.ceres.swing.binding.BindingContext context)
Description copied from class:DefaultConfigController
Configure the passed binding context. This is intended to be used to createenablements
in order to add dependencies between property states. The default implementation does nothing.- Overrides:
configure
in classDefaultConfigController
- Parameters:
context
- TheBindingContext
to configure.- See Also:
Enablement
,BindingContext.bindEnabledState(String, boolean, com.bc.ceres.swing.binding.Enablement.Condition)
,BindingContext.bindEnabledState(String, boolean, String, Object)
-
getHelpCtx
public org.openide.util.HelpCtx getHelpCtx()
- Specified by:
getHelpCtx
in classorg.netbeans.spi.options.OptionsPanelController
-
-