McVHistogramWrapper.public class McIDASVHistogramWrapper extends ucar.unidata.idv.control.chart.HistogramWrapper
| Modifier and Type | Field and Description | 
|---|---|
| private double | highDeprecated.  | 
| private ucar.unidata.idv.DisplayControl | imageControlDeprecated.  | 
| private static org.slf4j.Logger | loggerDeprecated.  | 
| private double | lowDeprecated.  | 
| private org.jfree.chart.plot.XYPlot | plotDeprecated.  The plot | 
chart, chartPanel, EVENT_DONTPASSON, EVENT_PASSONanimationWidget, dataChoiceWrappers, PROP_SELECTEDTIME, PROP_TIMERANGE, timeFilterSource, timeSelectSource| Constructor and Description | 
|---|
| McIDASVHistogramWrapper()Deprecated.  Default ctor | 
| McIDASVHistogramWrapper(java.lang.String name,
                       java.util.List dataChoices,
                       ucar.unidata.idv.control.DisplayControlImpl control)Deprecated.  Ctor | 
| Modifier and Type | Method and Description | 
|---|---|
| private java.awt.event.ActionListener | buildHistoPropsListener()Deprecated.  | 
| void | clearHistogram()Deprecated.  Clear the histogram. | 
| private void | createChart()Deprecated.  Create the chart. | 
| protected boolean | doApplyProperties()Deprecated.  Apply the properties | 
| javax.swing.JComponent | doMakeContents()Deprecated.  | 
| void | doRemove()Deprecated.  Been removed, do any cleanup | 
| protected void | doReset()Deprecated.  | 
| double | getHigh()Deprecated.  | 
| double | getLow()Deprecated.  | 
| protected java.util.List | getPopupMenuItems(java.util.List items)Deprecated.  Add the default menu items | 
| protected org.jfree.data.Range | getRange()Deprecated.  | 
| boolean | hasDisplayControl()Deprecated.  | 
| void | loadData(visad.FlatField data)Deprecated.  Create the histogram. | 
| protected boolean | modifyRange(double lowVal,
           double hiVal)Deprecated.  Modify the low and high values of the domain axis. | 
| protected boolean | modifyRange(double lowVal,
           double hiVal,
           boolean notify)Deprecated.  Modify the low and high values of the domain axis. | 
| private void | reallyLoadData(visad.FlatField data)Deprecated.  Assumes that  datahas been validated and is okay to actually try
 loading. | 
| boolean | removeDisplayComponent()Deprecated.  Remove me | 
| void | resetPlot()Deprecated.  reset the histogram to its previous range | 
| void | saveImage()Deprecated.  _more_ | 
| void | setHigh(double val)Deprecated.  | 
| void | setLow(double val)Deprecated.  | 
| void | showPopup(javax.swing.JComponent where,
         int x,
         int y)Deprecated.  SHow the popup menu | 
| boolean | showProperties()Deprecated.  Show the properties dialog | 
applyProperties, canDoColors, canDoWrapperColor, getBins, getPropertiesComponents, getStacked, getTypeName, loadData, setBins, setStackedannotationChanged, chartPanelGetToolTipText, chartPanelMouseClicked, chartPanelMouseDragged, chartPanelMousePressed, chartPanelMouseReleased, doMakeChartPanel, getAutoRange, getBackgroundColor, getChartPanel, getControl, getDataAreaColor, getDomainLineState, getPreferredChartSize, getPropertyTabs, getRangeLineState, initXYPlot, keyPressed, keyReleased, keyTyped, okToDraw, panPlot, panPlot, setAutoRange, setBackgroundColor, setDataAreaColor, setDomainLineState, setName, setRangeLineState, signalChartChangedaddDataChoice, addDataChoices, addField, animationTimeChanged, applyJython, applyJython, canBeASourceForTimeSelectionEvents, canDoDataChoiceList, canDoDriveTime, canDoJython, canDoMinMaxDate, canDoParameters, canDoRemoveParameters, canDoResolution, canDoTimeFilters, canDoTimeSelect, canDoWrapperSide, createDataChoiceWrapper, doMakeWrapperDisplayComponent, doMultipleAddFields, filterData, formatValue, getAnimationShareGroup, getCategories, getDataChoices, getDataChoiceWrappers, getDriveTime, getFieldSelectionLabels, getFlatField, getInterpreter, getJython, getMaxDate, getMinDate, getResolution, getShowTime, getTimeFilterRanges, getTimeFilterSource, getTimeRanges, getTimeSelectSource, getTimeValues, init, initDone, initializeJython, propertyChange, removeTimeFilterSource, removeTimeSelectSource, setAnimationShareGroup, setDataChoiceWrappers, setDriveTime, setJython, setMaxDate, setMinDate, setResolution, setShowTime, setTimeFilterSource, setTimeFromAnimation, setTimeSelectSource, wrapDataChoicesaddGroupMenuItems, doMakeDisplayLabel, doSaveImage, doSaveMovie, getContents, getDisplayables, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, initAfterUnPersistence, setDisplayControl, setDisplayGroup, setIsRemoved, setLabelShown, toStringaddPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, isShowing, removePropertyChangeListener, showPropertiesapplySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogprivate static final org.slf4j.Logger logger
private ucar.unidata.idv.DisplayControl imageControl
private org.jfree.chart.plot.XYPlot plot
private double low
private double high
public McIDASVHistogramWrapper()
public McIDASVHistogramWrapper(java.lang.String name, java.util.List dataChoices, ucar.unidata.idv.control.DisplayControlImpl control)
name - The name.dataChoices - List of data choices.control - "Parent" control.private void createChart()
public javax.swing.JComponent doMakeContents()
doMakeContents in class ucar.unidata.idv.control.chart.HistogramWrapperpublic void clearHistogram()
public void saveImage()
public void loadData(visad.FlatField data) throws java.lang.IllegalArgumentException, java.rmi.RemoteException, visad.VisADException
data - Data to use in histogram.java.lang.IllegalArgumentException - if data is all NaNs.java.rmi.RemoteException - On badnessvisad.VisADException - On badnessprivate void reallyLoadData(visad.FlatField data) throws visad.VisADException, java.rmi.RemoteException
data has been validated and is okay to actually try
 loading.data - Data to use in histogram. Cannot be null or all NaNs.visad.VisADExceptionjava.rmi.RemoteExceptionprotected boolean modifyRange(double lowVal, double hiVal)
lowVal - Low value.hiVal - High value.false if plot is null. true
 otherwise.protected boolean modifyRange(double lowVal, double hiVal, boolean notify)
lowVal - Low value.hiVal - High value.notify - Whether or not listeners should be notified.false if plot is null. true
 otherwise.protected org.jfree.data.Range getRange()
protected void doReset()
public void resetPlot()
public double getLow()
public void setLow(double val)
public double getHigh()
public void setHigh(double val)
public void showPopup(javax.swing.JComponent where, int x, int y)
showPopup in class ucar.unidata.idv.control.multi.DisplayComponentwhere - component to show near tox - xy - yprotected java.util.List getPopupMenuItems(java.util.List items)
getPopupMenuItems in class ucar.unidata.idv.control.chart.PlotWrapperitems - List of menu itemsprivate java.awt.event.ActionListener buildHistoPropsListener()
ActionListener that listens for
 ChartPanel.PROPERTIES_COMMAND events and shows the histogram
 properties.public boolean showProperties()
showProperties in class ucar.unidata.idv.control.multi.DisplayComponentpublic boolean hasDisplayControl()
public boolean removeDisplayComponent()
removeDisplayComponent in class ucar.unidata.idv.control.multi.DisplayComponentprotected boolean doApplyProperties()
doApplyProperties in class ucar.unidata.idv.control.chart.ChartWrapperpublic void doRemove()
doRemove in class ucar.unidata.idv.control.chart.ChartWrapper