Package org.esa.snap.ui
Class RegionSelectableWorldMapPane
- java.lang.Object
-
- org.esa.snap.ui.RegionSelectableWorldMapPane
-
public class RegionSelectableWorldMapPane extends Object
This class wraps aWorldMapPane
and extends it by functionality to draw and resize a selection rectangle.
-
-
Constructor Summary
Constructors Constructor Description RegionSelectableWorldMapPane(WorldMapPaneDataModel dataModel, com.bc.ceres.swing.binding.BindingContext bindingContext)
Creates a RegionSelectableWorldMapPane.
-
-
-
Constructor Detail
-
RegionSelectableWorldMapPane
public RegionSelectableWorldMapPane(WorldMapPaneDataModel dataModel, com.bc.ceres.swing.binding.BindingContext bindingContext)
Creates a RegionSelectableWorldMapPane.- Parameters:
dataModel
- The data model to be usedbindingContext
- The binding context which has to contain at least the following properties:northBound
,southBound
,westBound
, andeastBound
. If all these property values are null, default values will be used. The property values are considered valid when the latitude values are within the allowed latitude range [-90, 90], the longitude values are within the allowed longitude range [-180, 180], the northBound is bigger than the southBound, the eastBound is bigger than the westBound, and no value is null. In this case, the world map will be initialized with these values.- Throws:
IllegalArgumentException
- If the bindingContext is null, it does not contain the expected properties or the properties do not contain valid values
-
-
Method Detail
-
createUI
public JPanel createUI()
-
-