Package org.esa.snap.ui
Class BoundsInputPanel
- java.lang.Object
-
- org.esa.snap.ui.BoundsInputPanel
-
public class BoundsInputPanel extends Object
Component which provides a panel where lat/lon bounds may be entered and bound to a givenBindingContext
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_EAST_BOUND
static String
PROPERTY_NORTH_BOUND
static String
PROPERTY_PIXEL_SIZE_X
static String
PROPERTY_PIXEL_SIZE_Y
static String
PROPERTY_SOUTH_BOUND
static String
PROPERTY_WEST_BOUND
-
Constructor Summary
Constructors Constructor Description BoundsInputPanel(com.bc.ceres.swing.binding.BindingContext bindingContext, String enablePropertyKey)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JPanel
createBoundsInputPanel(boolean disableUIProperty)
Creates the UI component.void
updatePixelUnit(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
-
-
-
Field Detail
-
PROPERTY_WEST_BOUND
public static final String PROPERTY_WEST_BOUND
- See Also:
- Constant Field Values
-
PROPERTY_NORTH_BOUND
public static final String PROPERTY_NORTH_BOUND
- See Also:
- Constant Field Values
-
PROPERTY_EAST_BOUND
public static final String PROPERTY_EAST_BOUND
- See Also:
- Constant Field Values
-
PROPERTY_SOUTH_BOUND
public static final String PROPERTY_SOUTH_BOUND
- See Also:
- Constant Field Values
-
PROPERTY_PIXEL_SIZE_X
public static final String PROPERTY_PIXEL_SIZE_X
- See Also:
- Constant Field Values
-
PROPERTY_PIXEL_SIZE_Y
public static final String PROPERTY_PIXEL_SIZE_Y
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BoundsInputPanel
public BoundsInputPanel(com.bc.ceres.swing.binding.BindingContext bindingContext, String enablePropertyKey)
Default constructor.- Parameters:
bindingContext
- The binding context, in which the properties given by the constantsPROPERTY_WEST_BOUND
,PROPERTY_NORTH_BOUND
,PROPERTY_EAST_BOUND
, andPROPERTY_SOUTH_BOUND
are bound accordingly.enablePropertyKey
- The key for the property which specifies whether the sub-components of this component are enabled.
-
-
Method Detail
-
createBoundsInputPanel
public JPanel createBoundsInputPanel(boolean disableUIProperty)
Creates the UI component. The enable state of the UI is controlled via the parameterdisableUIProperty
. If it matches the value of the property provided in the constructor, the UI will be disabled.- Parameters:
disableUIProperty
- Controls the enable state of the UI.- Returns:
- The UI component.
-
updatePixelUnit
public void updatePixelUnit(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
-
-