ucar.unidata.idv.control.chart
Class HistogramWrapper

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.collab.PropertiedThing
          extended by ucar.unidata.idv.control.multi.DisplayComponent
              extended by ucar.unidata.idv.control.chart.ChartWrapper
                  extended by ucar.unidata.idv.control.chart.PlotWrapper
                      extended by ucar.unidata.idv.control.chart.HistogramWrapper
All Implemented Interfaces:
KeyListener, PropertyChangeListener, EventListener, Sharable

public class HistogramWrapper
extends PlotWrapper

Provides a time series chart

Version:
$Revision: 1.16 $
Author:
IDV Development Team

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.unidata.idv.control.chart.PlotWrapper
PlotWrapper.MyChartPanel
 
Nested classes/interfaces inherited from class ucar.unidata.idv.control.chart.ChartWrapper
ChartWrapper.FieldProperties
 
Field Summary
 
Fields inherited from class ucar.unidata.idv.control.chart.PlotWrapper
chart, chartPanel, EVENT_DONTPASSON, EVENT_PASSON
 
Fields inherited from class ucar.unidata.idv.control.chart.ChartWrapper
animationWidget, dataChoiceWrappers, PROP_SELECTEDTIME, PROP_TIMERANGE, timeFilterSource, timeSelectSource
 
Fields inherited from class ucar.unidata.idv.control.multi.DisplayComponent
CMD_SAVEIMAGE, CMD_SAVEMOVIE, displayControl, displayLabel, hasBeenInitialized, isRemoved, PROP_REMOVED
 
Fields inherited from class ucar.unidata.collab.PropertiedThing
propertiesDialog
 
Constructor Summary
HistogramWrapper()
          Default ctor
HistogramWrapper(String name, List dataChoices)
          Ctor
 
Method Summary
protected  boolean applyProperties()
          Apply properties
protected  boolean canDoColors()
          Can we do chart colors
 boolean canDoWrapperColor()
          Can we have colors on the data chocie wrappers in the properties dialog
protected  JComponent doMakeContents()
          Create the chart if needed
 int getBins()
          Get the Bins property.
protected  void getPropertiesComponents(List comps, int tabIdx)
          Add components to properties dialog
 boolean getStacked()
          Get the Stacked property.
 String getTypeName()
          Type name
 void loadData()
          Create the charts
 void setBins(int value)
          Set the Bins property.
 void setStacked(boolean value)
          Set the Stacked property.
 
Methods inherited from class ucar.unidata.idv.control.chart.PlotWrapper
annotationChanged, chartPanelGetToolTipText, chartPanelMouseClicked, chartPanelMouseDragged, chartPanelMousePressed, chartPanelMouseReleased, doMakeChartPanel, getAutoRange, getBackgroundColor, getChartPanel, getDataAreaColor, getDomainLineState, getPopupMenuItems, getPreferredChartSize, getPropertyTabs, getRangeLineState, initXYPlot, keyPressed, keyReleased, keyTyped, okToDraw, panPlot, panPlot, setAutoRange, setBackgroundColor, setDataAreaColor, setDomainLineState, setName, setRangeLineState, signalChartChanged
 
Methods inherited from class ucar.unidata.idv.control.chart.ChartWrapper
addDataChoice, addDataChoices, addField, animationTimeChanged, applyJython, applyJython, canBeASourceForTimeSelectionEvents, canDoDataChoiceList, canDoDriveTime, canDoJython, canDoMinMaxDate, canDoParameters, canDoRemoveParameters, canDoResolution, canDoTimeFilters, canDoTimeSelect, canDoWrapperSide, createDataChoiceWrapper, doApplyProperties, doMakeWrapperDisplayComponent, doMultipleAddFields, doRemove, 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
 
Methods inherited from class ucar.unidata.idv.control.multi.DisplayComponent
addGroupMenuItems, doMakeDisplayLabel, doSaveImage, doSaveMovie, getContents, getDisplayables, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, initAfterUnPersistence, removeDisplayComponent, setDisplayControl, setDisplayGroup, setIsRemoved, setLabelShown, showPopup, showProperties, toString
 
Methods inherited from class ucar.unidata.collab.PropertiedThing
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, isShowing, removePropertyChangeListener, showProperties
 
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HistogramWrapper

public HistogramWrapper()
Default ctor


HistogramWrapper

public HistogramWrapper(String name,
                        List dataChoices)
Ctor

Parameters:
name - The name
dataChoices - List of data choices
Method Detail

getTypeName

public String getTypeName()
Type name

Specified by:
getTypeName in class ChartWrapper
Returns:
Type name

doMakeContents

protected JComponent doMakeContents()
Create the chart if needed

Specified by:
doMakeContents in class DisplayComponent
Returns:
The gui contents

loadData

public void loadData()
              throws VisADException,
                     RemoteException
Create the charts

Overrides:
loadData in class ChartWrapper
Throws:
RemoteException - On badness
VisADException - On badness

getPropertiesComponents

protected void getPropertiesComponents(List comps,
                                       int tabIdx)
Add components to properties dialog

Overrides:
getPropertiesComponents in class PlotWrapper
Parameters:
comps - List of components
tabIdx - Which tab in properties dialog

applyProperties

protected boolean applyProperties()
Apply properties

Overrides:
applyProperties in class PlotWrapper
Returns:
Was successful

canDoColors

protected boolean canDoColors()
Can we do chart colors

Overrides:
canDoColors in class PlotWrapper
Returns:
can do colors

canDoWrapperColor

public boolean canDoWrapperColor()
Can we have colors on the data chocie wrappers in the properties dialog

Overrides:
canDoWrapperColor in class ChartWrapper
Returns:
can do wrapper color

setBins

public void setBins(int value)
Set the Bins property.

Parameters:
value - The new value for Bins

getBins

public int getBins()
Get the Bins property.

Returns:
The Bins

setStacked

public void setStacked(boolean value)
Set the Stacked property.

Parameters:
value - The new value for Stacked

getStacked

public boolean getStacked()
Get the Stacked property.

Returns:
The Stacked