Class InteractiveHistogramComponent

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
cz.fidentis.analyst.gui.elements.histogram.InteractiveHistogramComponent
All Implemented Interfaces:
EventGenerator, ImageObserver, MenuContainer, Serializable, Accessible

public class InteractiveHistogramComponent extends JPanel implements EventGenerator

High-level interactive histogram component.

Dispatches ActionEvent with the following action commands:

See Also:
  • Field Details

  • Constructor Details

    • InteractiveHistogramComponent

      public InteractiveHistogramComponent()
      Creates a new instance.
  • Method Details

    • setValues

      public void setValues(Collection<Double> values)
      Set the values that the histogram will use. Ignores values that aren't considered finite by Double.isFinite(double) predicate.
      Parameters:
      values - values
      See Also:
    • getLowerBoundValue

      public double getLowerBoundValue()
      Returns:
      lower value from the duo of bound-sliders
      See Also:
    • getUpperBoundValue

      public double getUpperBoundValue()
      Returns:
      higher value from the duo of bound-sliders
      See Also:
    • resetChartZoom

      public void resetChartZoom()
      Reset zoom level on a chart.
      See Also:
    • resetChart

      public void resetChart()
      Reset zoom level on a chart and move bounds to their original position.
      See Also:
    • addActionListener

      public boolean addActionListener(ActionListener listener)
      Specified by:
      addActionListener in interface EventGenerator
      Parameters:
      listener - listener
      Returns:
      true if listener was successfully added to the collection
    • removeActionListener

      public boolean removeActionListener(ActionListener listener)
      Specified by:
      removeActionListener in interface EventGenerator
      Parameters:
      listener - listener
      Returns:
      true if listener was successfully removed from the collection