ucar.unidata.idv.control.chart
Class TableChartWrapper

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

public class TableChartWrapper
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
TableChartWrapper()
          Default ctor
TableChartWrapper(String name, List dataChoices)
          Ctor
 
Method Summary
protected  boolean canBeASourceForTimeSelectionEvents()
          Can this component be a source for time selection events
protected  boolean canDoResolution()
          Don't do resolution in the properties dialog
protected  JComponent doMakeContents()
          make the gui
 void exportData()
          Export the table data as csv
protected  List getPopupMenuItems(List items)
          Get the popup menu items
 boolean getShowRawData()
          Get the ShowRawData property.
 String getTypeName()
          Return the human readable name of this chart
 void loadData()
          Create the charts
 void setShowRawData(boolean value)
          Set the ShowRawData property.
 String toString()
          to string
 
Methods inherited from class ucar.unidata.idv.control.chart.ChartWrapper
addDataChoice, addDataChoices, addField, animationTimeChanged, applyJython, applyJython, applyProperties, 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, getPropertiesComponents, 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, getPropertyTabs, 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

TableChartWrapper

public TableChartWrapper()
Default ctor


TableChartWrapper

public TableChartWrapper(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 contents

getPopupMenuItems

protected List getPopupMenuItems(List items)
Get the popup menu items

Overrides:
getPopupMenuItems in class ChartWrapper
Parameters:
items - menu items list
Returns:
The items list

exportData

public void exportData()
Export the table data as csv


loadData

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

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

canDoResolution

protected boolean canDoResolution()
Don't do resolution in the properties dialog

Overrides:
canDoResolution in class ChartWrapper
Returns:
do resolution in the properties dialog

canBeASourceForTimeSelectionEvents

protected boolean canBeASourceForTimeSelectionEvents()
Can this component be a source for time selection events

Overrides:
canBeASourceForTimeSelectionEvents in class ChartWrapper
Returns:
true

toString

public String toString()
to string

Overrides:
toString in class DisplayComponent
Returns:
string

setShowRawData

public void setShowRawData(boolean value)
Set the ShowRawData property.

Parameters:
value - The new value for ShowRawData

getShowRawData

public boolean getShowRawData()
Get the ShowRawData property.

Returns:
The ShowRawData