McVHistogramWrapper
.public class McIDASVHistogramWrapper extends ucar.unidata.idv.control.chart.HistogramWrapper
Modifier and Type | Field and Description |
---|---|
private double |
high
Deprecated.
|
private ucar.unidata.idv.DisplayControl |
imageControl
Deprecated.
|
private static org.slf4j.Logger |
logger
Deprecated.
|
private double |
low
Deprecated.
|
private org.jfree.chart.plot.XYPlot |
plot
Deprecated.
The plot
|
chart, chartPanel, EVENT_DONTPASSON, EVENT_PASSON
animationWidget, 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(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(FlatField data)
Deprecated.
Assumes that
data has 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, setStacked
annotationChanged, 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, signalChartChanged
addDataChoice, 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, wrapDataChoices
addGroupMenuItems, doMakeDisplayLabel, doSaveImage, doSaveMovie, getContents, getDisplayables, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, initAfterUnPersistence, setDisplayControl, setDisplayGroup, setIsRemoved, setLabelShown, toString
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, isShowing, removePropertyChangeListener, showProperties
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
private 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.HistogramWrapper
public void clearHistogram()
public void saveImage()
public void loadData(FlatField data) throws java.lang.IllegalArgumentException, java.rmi.RemoteException, VisADException
data
- Data to use in histogram.java.lang.IllegalArgumentException
- if data
is all NaNs.java.rmi.RemoteException
- On badnessVisADException
- On badnessprivate void reallyLoadData(FlatField data) throws 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.VisADException
java.rmi.RemoteException
protected 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.DisplayComponent
where
- component to show near tox
- xy
- yprotected java.util.List getPopupMenuItems(java.util.List items)
getPopupMenuItems
in class ucar.unidata.idv.control.chart.PlotWrapper
items
- 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.DisplayComponent
public boolean hasDisplayControl()
public boolean removeDisplayComponent()
removeDisplayComponent
in class ucar.unidata.idv.control.multi.DisplayComponent
protected boolean doApplyProperties()
doApplyProperties
in class ucar.unidata.idv.control.chart.ChartWrapper
public void doRemove()
doRemove
in class ucar.unidata.idv.control.chart.ChartWrapper