Class SubsetOptionPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SubsetOptionPanel extends JPanel
The SubsetOptionPanel class allows the user to choose from a set of data export subset options.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Field Details

    • SUBSET_ALL

      public static final int SUBSET_ALL
      The subset type for all data.
      See Also:
    • SUBSET_CURRENT

      public static final int SUBSET_CURRENT
      The subset type for current data.
      See Also:
    • SUBSET_IMAGE

      public static final int SUBSET_IMAGE
      The subset type for image coordinates.
      See Also:
    • SUBSET_GEOGRAPHIC

      public static final int SUBSET_GEOGRAPHIC
      The subset type for geographic coordinates.
      See Also:
  • Constructor Details

    • SubsetOptionPanel

      public SubsetOptionPanel(int[] upperLeft, int[] dimensions, EarthLocation[] bounds)
      Creates a new subset option panel.
      Parameters:
      upperLeft - the upper-left data coordinate as [row, column].
      dimensions - the data dimensions as [rows, columns].
      bounds - the data bounds as [upper-left, lower-right].
  • Method Details

    • getSubsetType

      public int getSubsetType()
      Gets the subset type.
    • getImageCoords

      public void getImageCoords(int[] upperLeft, int[] dimensions)
      Gets the image coordinates.
      Parameters:
      upperLeft - the upper-left data image coordinate as [row, column] (modified).
      dimensions - the data image dimensions as [rows, columns] (modified).
    • getGeographicCoords

      public void getGeographicCoords(EarthLocation upperLeft, EarthLocation lowerRight)
      Gets the geographic coordinates.
      Parameters:
      upperLeft - the upper-left geographic coordinate (modified).
      lowerRight - the lower-right geographic coordinate (modified).
    • main

      public static void main(String[] argv)
      Tests this class.
      Parameters:
      argv - the array of command line parameters.