Class ImageLayerController
java.lang.Object
org.netbeans.spi.options.OptionsPanelController
org.esa.snap.rcp.preferences.DefaultConfigController
org.esa.snap.rcp.preferences.layer.ImageLayerController
* 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
FieldsModifier and TypeFieldDescriptionstatic final String
Preferences key for the background colorstatic final String
Preferences key for image border colorstatic final String
Preferences key for showing image borderstatic final String
Preferences key for image border sizestatic final String
Preferences key for pixel border colorstatic final String
Preferences key for showing pixel image borderstatic final String
Preferences key for pixel border sizeFields inherited from class org.netbeans.spi.options.OptionsPanelController
PROP_CHANGED, PROP_HELP_CTX, PROP_VALID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
Create aPropertySet
object instance that holds all parameters.org.openide.util.HelpCtx
Methods inherited from class org.esa.snap.rcp.preferences.DefaultConfigController
addPropertyChangeListener, applyChanges, cancel, createPropertySet, getBindingContext, getComponent, isChanged, isInitialised, isValid, removePropertyChangeListener, setChanged, update
Methods inherited from class org.netbeans.spi.options.OptionsPanelController
createAdvanced, getLookup, handleSuccessfulSearch, setCurrentSubcategory, setSubcategory
-
Field Details
-
PROPERTY_KEY_IMAGE_BG_COLOR
Preferences key for the background color- See Also:
-
PROPERTY_KEY_IMAGE_BORDER_SHOWN
Preferences key for showing image border- See Also:
-
PROPERTY_KEY_IMAGE_BORDER_SIZE
Preferences key for image border size- See Also:
-
PROPERTY_KEY_IMAGE_BORDER_COLOR
Preferences key for image border color- See Also:
-
PROPERTY_KEY_PIXEL_BORDER_SHOWN
Preferences key for showing pixel image border- See Also:
-
PROPERTY_KEY_PIXEL_BORDER_SIZE
Preferences key for pixel border size- See Also:
-
PROPERTY_KEY_PIXEL_BORDER_COLOR
Preferences key for pixel border color- See Also:
-
-
Constructor Details
-
ImageLayerController
public ImageLayerController()
-
-
Method Details
-
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:
-
createPanel
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:
-
getHelpCtx
public org.openide.util.HelpCtx getHelpCtx()- Specified by:
getHelpCtx
in classorg.netbeans.spi.options.OptionsPanelController
-