Class FeatureGroupFilterChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FeatureGroupFilterChooser extends JPanel
The FeatureGroupFilterChooser class is a panel that allows the user to manipulate a FeatureGroupFilter. If no filter is set, an initial default filter is created and displayed. The chooser signals a change in the filter by firing a PropertyChangeEvent with property name FILTER_PROPERTY, and new value containing an object of type FeatureGroupFilter.
Since:
3.3.2
Author:
Peter Hollemans
See Also:
  • Field Details

    • FILTER_PROPERTY

      public static final String FILTER_PROPERTY
      The name for filter property change events.
      See Also:
  • Constructor Details

    • FeatureGroupFilterChooser

      public FeatureGroupFilterChooser(List<Attribute> attributeList, Map<String,Integer> attributeNameMap, Date defaultDate)
      Creates a new empty feature group filter chooser.
      Parameters:
      attributeList - the list of attributes to use for the feature grouping and selection. rules.
      attributeNameMap - the map of attribute name to index for features to be filtered.
      defaultDate - the default date to use for date attributes.
  • Method Details

    • getFilter

      public FeatureGroupFilter getFilter()
      Gets the currently configured filter.
      Returns:
      the filter created/modified by the user.
    • setFilter

      public void setFilter(FeatureGroupFilter filter)
      Sets the group filter displayed and manipulated by this chooser.
      Parameters:
      filter - the filter to use.
    • main

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