ucar.unidata.idv.control.chart
Class StatisticsChartWrapper

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.StatisticsChartWrapper
All Implemented Interfaces:
KeyListener, PropertyChangeListener, EventListener, Sharable

public class StatisticsChartWrapper
extends ChartWrapper

Provides a table view

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

Nested Class Summary
 
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.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
StatisticsChartWrapper()
          Default ctor
StatisticsChartWrapper(String name, List dataChoices)
          Ctor
 
Method Summary
protected  boolean applyProperties()
          Apply properties
protected  boolean canDoResolution()
          Don't show resolution property
protected  JComponent doMakeContents()
          Make the gui
 List getExpressions()
          Get the Expressions property.
 List getLabels()
          Get the Labels property.
protected  void getPropertiesComponents(List comps, int tabIdx)
          add to the properties gui
 String[] getPropertyTabs()
          return the array of tab names for the proeprties dialog
 String getTypeName()
          Return the human readable name of this chart
 void loadData()
          Create the charts
 void setExpressions(List value)
          Set the Expressions property.
 void setLabels(List value)
          Set the Labels property.
 String toString()
          to string
 
Methods inherited from class ucar.unidata.idv.control.chart.ChartWrapper
addDataChoice, addDataChoices, addField, animationTimeChanged, applyJython, applyJython, canBeASourceForTimeSelectionEvents, canDoDataChoiceList, canDoDriveTime, canDoJython, canDoMinMaxDate, canDoParameters, canDoRemoveParameters, canDoTimeFilters, canDoTimeSelect, canDoWrapperColor, canDoWrapperSide, createDataChoiceWrapper, doApplyProperties, doMakeWrapperDisplayComponent, doMultipleAddFields, doRemove, filterData, formatValue, getAnimationShareGroup, getCategories, getDataChoices, getDataChoiceWrappers, getDriveTime, getFieldSelectionLabels, getFlatField, getInterpreter, getJython, getMaxDate, getMinDate, getPopupMenuItems, getResolution, getShowTime, getTimeFilterRanges, getTimeFilterSource, getTimeRanges, getTimeSelectSource, getTimeValues, init, initDone, initializeJython, keyPressed, keyReleased, keyTyped, 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, getBackgroundColor, getContents, getDisplayables, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, initAfterUnPersistence, removeDisplayComponent, setBackgroundColor, setDisplayControl, setDisplayGroup, setIsRemoved, setLabelShown, setName, showPopup, showProperties
 
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

StatisticsChartWrapper

public StatisticsChartWrapper()
Default ctor


StatisticsChartWrapper

public StatisticsChartWrapper(String name,
                              List dataChoices)
Ctor

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

getTypeName

public String getTypeName()
Return the human readable name of this chart

Specified by:
getTypeName in class ChartWrapper
Returns:
Chart type name

doMakeContents

protected JComponent doMakeContents()
Make the gui

Specified by:
doMakeContents in class DisplayComponent
Returns:
The gui

loadData

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

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

applyProperties

protected boolean applyProperties()
Apply properties

Overrides:
applyProperties in class ChartWrapper
Returns:
Was successful

getPropertyTabs

public String[] getPropertyTabs()
return the array of tab names for the proeprties dialog

Overrides:
getPropertyTabs in class PropertiedThing
Returns:
array of tab names

getPropertiesComponents

protected void getPropertiesComponents(List comps,
                                       int tabIdx)
add to the properties gui

Overrides:
getPropertiesComponents in class ChartWrapper
Parameters:
comps - List of components
tabIdx - which tab

canDoResolution

protected boolean canDoResolution()
Don't show resolution property

Overrides:
canDoResolution in class ChartWrapper
Returns:
show resolution property

toString

public String toString()
to string

Overrides:
toString in class DisplayComponent
Returns:
string

setExpressions

public void setExpressions(List value)
Set the Expressions property.

Parameters:
value - The new value for Expressions

getExpressions

public List getExpressions()
Get the Expressions property.

Returns:
The Expressions

setLabels

public void setLabels(List value)
Set the Labels property.

Parameters:
value - The new value for Labels

getLabels

public List getLabels()
Get the Labels property.

Returns:
The Labels