Class GeoSelectionPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class GeoSelectionPanel extends JPanel
Holds geo-location information - lat/lon bounding box, image size, etc. This is used to pass information from a chooser into a datasource.
See Also:
  • Constructor Details

    • GeoSelectionPanel

      public GeoSelectionPanel(GeoSelection geoSelection, boolean fullVersion, boolean enabled, boolean doStride, boolean doBoundingBox, ucar.unidata.geoloc.ProjectionImpl sampleProjection, JComponent extraComponent)
      ctor
      Parameters:
      geoSelection - The geo selection
      fullVersion - If true we show the decimation along with the area subset in one component
      enabled - Initially enabled
      doStride - Show decimation
      doBoundingBox - Show area subset
      sampleProjection - Sample projection for the area map. May be null.
      extraComponent - Extra stuff for gui. example: the grid size label. May be null.
  • Method Details

    • initWith

      public void initWith(GeoSelectionPanel p)
      Initialize this object with the given object
      Parameters:
      p - object to init with
    • getStrideComponent

      public JComponent getStrideComponent()
      Get the component that shows the stride. Used by the DataControlDialog to show the stride in a separate tab
      Returns:
      stride component
    • getAreaComponent

      public JComponent getAreaComponent()
      Get the component that shows the area map. Used by the DataControlDialog to show the map in a separate tab
      Returns:
      area map component
    • reSetBoundsFromFields

      public void reSetBoundsFromFields()
      Set the bounds from the field
    • getEnabled

      public boolean getEnabled()
      Is enabled
      Returns:
      enabled
    • getGeoSelection

      public GeoSelection getGeoSelection()
      Apply the gui settings to the geo selection and return it
      Returns:
      current geo selection
    • applyProperties

      public boolean applyProperties(GeoSelection geoSelection)
      Apply the properties
      Parameters:
      geoSelection - The geo selection to apply to
      Returns:
      false if it failed
    • getUseDisplayArea

      public boolean getUseDisplayArea()
      _more_
      Returns:
      _more_
    • enableZComponents

      public void enableZComponents(boolean enable)
      _more_
      Parameters:
      enable - _more_
    • selectedRegionChanged

      protected void selectedRegionChanged(ucar.unidata.geoloc.LatLonRect llr)
      Region changed. Update the latlon widgets
      Parameters:
      llr - new region