Class MultilayerBitmaskOverlayPropertyChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MultilayerBitmaskOverlayPropertyChooser extends OverlayPropertyChooser
The MultilayerBitmaskOverlayPropertyChooser class is an implementation of an OverlayPropertyChooser that allows the user to edit the properties of a MultilayerBitmaskOverlay.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • MultilayerBitmaskOverlayPropertyChooser

      public MultilayerBitmaskOverlayPropertyChooser(MultilayerBitmaskOverlay multilayer)
      Creates a new multilayer overlay property chooser panel. The assumption is that the number of bitmasks in the list is a multiple of 8.
  • Method Details

    • createBitmaskList

      public static List createBitmaskList(int startBit, int length, EarthDataReader reader, List variableList, String gridName)
      Creates a list of bitmask overlays using the specified starting bit and length. Each bitmask is given a unique name according to the bit number it represents, as well as a unique color from an arrangement of unique predefined colors. The overlays are initially assigned layer values such that the lowest bit value is rendered last. Each bitmask is given the integer mask that coincides with its bit number, for example, bit 1 will have 0x01 as a mask, bit 2 will have 0x02, bit 3 0x04, and so on.
      Parameters:
      startBit - the starting bit value, in the range [1..32].
      length - the number of desired bitmask overlays.
      reader - the reader to use for bitmask data.
      variableList - the list of variables to use for bitmask data.
      gridName - the initial bitmask grid name.
    • getTitle

      protected String getTitle()
      Gets the chooser panel title.
      Specified by:
      getTitle in class OverlayPropertyChooser