Package org.esa.snap.ui
Class RegionBoundsInputUI
java.lang.Object
org.esa.snap.ui.RegionBoundsInputUI
This user interface provides a world map and text fields to define region bounds.
 The input values from the text fields and from the world map are reflected in the 
BindingContext, which can
 be retrieved using getBindingContext().- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionInitializes a RegionBoundsInputUI.RegionBoundsInputUI(double northBound, double eastBound, double southBound, double westBound) Initializes a RegionBoundsInputUI with the given parameters.RegionBoundsInputUI(com.bc.ceres.swing.binding.BindingContext bindingContext) Initializes a RegionBoundsInputUI with the givenbindingContext. - 
Method Summary
Modifier and TypeMethodDescriptioncom.bc.ceres.swing.binding.BindingContextReturns the binding context which contains property valuesnorthBound,southBound,westBound, andeastBound.getUI()voidsetEnabled(boolean enabled) Enables or disables all child components. 
- 
Field Details
- 
PROPERTY_NORTH_BOUND
- See Also:
 
 - 
PROPERTY_EAST_BOUND
- See Also:
 
 - 
PROPERTY_SOUTH_BOUND
- See Also:
 
 - 
PROPERTY_WEST_BOUND
- See Also:
 
 
 - 
 - 
Constructor Details
- 
RegionBoundsInputUI
public RegionBoundsInputUI()Initializes a RegionBoundsInputUI. This constructor creates the user interface and a binding context with default values. The created binding context can be retrieved viagetBindingContext(). - 
RegionBoundsInputUI
public RegionBoundsInputUI(double northBound, double eastBound, double southBound, double westBound) Initializes a RegionBoundsInputUI with the given parameters. If the parameters are valid geographic coordinates, they are used to initialize the user interface and to create a binding context. If the values are invalid, default values will be used. The created binding context can be retrieved viagetBindingContext().- Parameters:
 northBound- The northern bounding latitude valueeastBound- The eastern bound longitude valuesouthBound- The southern bound latitude valuewestBound- The western bound longitude value
 - 
RegionBoundsInputUI
public RegionBoundsInputUI(com.bc.ceres.swing.binding.BindingContext bindingContext) Initializes a RegionBoundsInputUI with the givenbindingContext. The bindingContext has to contain four parameters:northBound,southBound,westBoundandeastBound. If the bindingContext contains geographic coordinates, these coordinates are used to initialize the user interface.- Parameters:
 bindingContext- The binding context which is needed for initialisation.
 
 - 
 - 
Method Details
- 
setEnabled
public void setEnabled(boolean enabled) Enables or disables all child components.- Parameters:
 enabled- -
 - 
getUI
- Returns:
 - a 
JPanelwhich contains the user interface elements 
 - 
getBindingContext
public com.bc.ceres.swing.binding.BindingContext getBindingContext()Returns the binding context which contains property valuesnorthBound,southBound,westBound, andeastBound. This method should be used to get the bounds set by the UI components. It is needed when no binding context has been passed to the RegionBoundsInputUI initially.- Returns:
 - the binding context.
 
 
 -