Class McVHistogramWrapper

All Implemented Interfaces:
KeyListener, PropertyChangeListener, EventListener, Sharable

public class McVHistogramWrapper extends HistogramWrapper
Wraps a JFreeChart histogram to ease working with VisAD data.
  • Constructor Details

    • McVHistogramWrapper

      public McVHistogramWrapper()
      Default ctor
    • McVHistogramWrapper

      public McVHistogramWrapper(String name, List dataChoices, DisplayControlImpl control)
      Ctor
      Parameters:
      name - The name.
      dataChoices - List of data choices.
      control - "Parent" control.
  • Method Details

    • doMakeContents

      public JComponent doMakeContents()
      _more_
      Overrides:
      doMakeContents in class HistogramWrapper
      Returns:
      _more_
    • clearHistogram

      public void clearHistogram()
      Clear the histogram.
    • saveImage

      public void saveImage()
      _more_
    • loadData

      public void loadData(FlatField data) throws IllegalArgumentException, RemoteException, VisADException
      Create the histogram.
      Parameters:
      data - Data to use in histogram.
      Throws:
      IllegalArgumentException - if data is all NaNs.
      RemoteException - On badness
      VisADException - On badness
    • modifyRange

      protected boolean modifyRange(double lowVal, double hiVal)
      Modify the low and high values of the domain axis.
      Parameters:
      lowVal - Low value.
      hiVal - High value.
      Returns:
      false if plot is null. true otherwise.
    • modifyRange

      protected boolean modifyRange(double lowVal, double hiVal, boolean notify)
      Modify the low and high values of the domain axis.
      Parameters:
      lowVal - Low value.
      hiVal - High value.
      notify - Whether or not listeners should be notified.
      Returns:
      false if plot is null. true otherwise.
    • getRange

      protected org.jfree.data.Range getRange()
      _more_
      Returns:
      _more_
    • doReset

      protected void doReset()
      _more_
    • resetPlot

      public void resetPlot()
      reset the histogram to its previous range
    • getLow

      public double getLow()
      _more_
      Returns:
      _more_
    • setLow

      public void setLow(double val)
      _more_
      Parameters:
      val - _more_
    • getHigh

      public double getHigh()
      _more_
      Returns:
      _more_
    • setHigh

      public void setHigh(double val)
      _more_
      Parameters:
      val - _more_
    • showPopup

      public void showPopup(JComponent where, int x, int y)
      SHow the popup menu
      Overrides:
      showPopup in class DisplayComponent
      Parameters:
      where - component to show near to
      x - x
      y - y
    • getPopupMenuItems

      protected List getPopupMenuItems(List items)
      Add the default menu items
      Overrides:
      getPopupMenuItems in class PlotWrapper
      Parameters:
      items - List of menu items
      Returns:
      The items list
    • showProperties

      public boolean showProperties()
      Show the properties dialog
      Overrides:
      showProperties in class DisplayComponent
      Returns:
      Was it ok
    • hasDisplayControl

      public boolean hasDisplayControl()
      _more_
      Returns:
      _more_
    • removeDisplayComponent

      public boolean removeDisplayComponent()
      Remove me
      Overrides:
      removeDisplayComponent in class DisplayComponent
      Returns:
      was removed
    • doApplyProperties

      protected boolean doApplyProperties()
      Apply the properties
      Overrides:
      doApplyProperties in class ChartWrapper
      Returns:
      Success
    • doRemove

      public void doRemove()
      Been removed, do any cleanup
      Overrides:
      doRemove in class ChartWrapper