public class TimeSeriesChartWrapper extends PlotWrapper
PlotWrapper.MyChartPanelChartWrapper.FieldProperties| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_TIMERANGE
Property change id
|
chart, chartPanel, EVENT_DONTPASSON, EVENT_PASSONanimationWidget, dataChoiceWrappers, PROP_SELECTEDTIME, timeFilterSource, timeSelectSourceCMD_SAVEIMAGE, CMD_SAVEMOVIE, displayControl, displayLabel, hasBeenInitialized, isRemoved, PROP_REMOVEDpropertiesDialog| Constructor and Description |
|---|
TimeSeriesChartWrapper()
Default ctor
|
TimeSeriesChartWrapper(java.lang.String name,
java.util.List dataChoices)
Ctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSegment(WayPoint[] wps)
Add a segment between the 2 waypoints
|
void |
annotationChanged(ChartAnnotation chartAnnotation)
The annotaiton has changed.
|
protected boolean |
applyProperties()
Apply properties
|
protected boolean |
canDoColors()
Can we do the data area colors in the properties dialog
|
protected boolean |
canDoDriveTime()
We can set the time in the main display
|
protected boolean |
canDoJython()
The timeseries can have jython applied to it
|
protected boolean |
canDoTimeFilters()
Can we add time subsetting to this chart
|
protected boolean |
canDoTimeSelect()
Can this chart use time selects
This is used to determine whether the checkbox should be shown
in the menus
|
boolean |
canDoWrapperColor()
Show colors in fields properties
|
boolean |
canDoWrapperSide()
SHow side menu in fields properties
|
void |
centerOn(RangeFilter rangeFilter)
Center the range axis
|
void |
centerOn(WayPoint wayPoint)
Center the domain axis about
|
java.lang.String |
chartPanelGetToolTipText(java.awt.event.MouseEvent event)
Get the tool tip text
|
boolean |
chartPanelMouseClicked(java.awt.event.MouseEvent event)
Callback method for receiving notification of a mouse click on a chart.
|
boolean |
chartPanelMouseDragged(java.awt.event.MouseEvent event)
Handle event in chart
|
boolean |
chartPanelMousePressed(java.awt.event.MouseEvent event)
Callback method for receiving notification of a mouse click on a chart.
|
boolean |
chartPanelMouseReleased(java.awt.event.MouseEvent event)
Handle event in chart
|
protected javax.swing.JComponent |
doMakeContents()
Create the chart if needed
|
void |
doRemove()
remove me
|
void |
editAnnotation(ChartAnnotation annotation)
Show the properties
|
ChartAnnotation |
findClosestAnnotation(java.util.List list,
int x,
int y,
boolean andSetSelected,
boolean addToSelected)
Find the closest annotation
|
java.util.List |
getDisplayables()
Get the list of displayables we use
|
double |
getDomainValue(int x)
Get the domain value of the x position
|
org.jfree.chart.plot.XYPlot |
getPlot()
Get the plot we use
|
protected java.util.List |
getPopupMenuItems(java.util.List items)
Get the popup menu items
|
protected void |
getPropertiesComponents(java.util.List comps,
int tabIdx)
Add to the properties components
|
java.util.List |
getRangeFilters()
Get the RangeFilters property.
|
double |
getRangeValue(int y)
Get the range value of y
|
java.util.List |
getRangeValues(int dataset)
Get the List of range values for the given dataset
|
java.util.List |
getSegments()
Get the Segments property.
|
java.util.List |
getSelected(java.util.List annotations)
Get list of selected annotations
|
boolean |
getShowDots()
Get the ShowDots property.
|
java.util.List |
getTimeRanges()
Create a list of time ranges from the segments
|
WayPoint |
getTimeWayPoint()
Get the TimeWayPoint property.
|
java.lang.String |
getTypeName()
Return the human readable name of this chart
|
java.util.List |
getWayPoints()
Get the WayPoints property.
|
void |
initDone()
Do final initialization
|
protected void |
initializeJython(org.python.util.PythonInterpreter interpreter)
Add the state of this chart to the interpreter
|
void |
loadData()
Create the charts
|
void |
loadDatax()
Create the charts
|
boolean |
okToDraw(ChartAnnotation annotation)
Is it ok to draw the annotation
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
Handle the event
|
void |
rangeFiltersChanged()
Range filters changed
|
boolean |
rangeValueOk(int dataset,
double value)
Does the value apss the range filters
|
void |
removeAnnotation(ChartAnnotation annotation)
Remove the annotation
|
void |
removeAnnotations(java.util.List annotations)
Remove all of the annotations in the list.
|
void |
removeSelectedAnnotations(java.util.List annotations)
Remove the selected annotations in the list.
|
void |
setRangeFilters(java.util.List value)
Set the RangeFilters property.
|
void |
setSegments(java.util.List value)
Set the Segments property.
|
void |
setSelectedAnnotation(ChartAnnotation annotation,
java.util.List list,
boolean dontClear)
Set the given annotation as selected.
|
void |
setShowDots(boolean value)
Set the ShowDots property.
|
protected void |
setTime(double value,
boolean andDriveAnimation)
Set the time we're at
|
void |
setTimeFromAnimation(visad.Real time)
Animation in main display changed.
|
void |
setTimeWayPoint(WayPoint value)
Set the TimeWayPoint property.
|
void |
setWayPoints(java.util.List value)
Set the WayPoints property.
|
java.lang.String |
toString()
to string
|
boolean |
valuesOk(int dataset,
double domainValue,
double rangeValue)
Are the values ok to render
|
void |
zoomTo(RangeFilter rangeFilter)
Zoom the range axis
|
void |
zoomTo(TrackSegment segment)
Zoom the domain axis
|
doMakeChartPanel, getAutoRange, getBackgroundColor, getChartPanel, getDataAreaColor, getDomainLineState, getPreferredChartSize, getPropertyTabs, getRangeLineState, initXYPlot, keyPressed, keyReleased, keyTyped, panPlot, panPlot, setAutoRange, setBackgroundColor, setDataAreaColor, setDomainLineState, setName, setRangeLineState, signalChartChangedaddDataChoice, addDataChoices, addField, animationTimeChanged, applyJython, applyJython, canBeASourceForTimeSelectionEvents, canDoDataChoiceList, canDoMinMaxDate, canDoParameters, canDoRemoveParameters, canDoResolution, createDataChoiceWrapper, doApplyProperties, doMakeWrapperDisplayComponent, doMultipleAddFields, filterData, formatValue, getAnimationShareGroup, getCategories, getDataChoices, getDataChoiceWrappers, getDriveTime, getFieldSelectionLabels, getFlatField, getInterpreter, getJython, getMaxDate, getMinDate, getResolution, getShowTime, getTimeFilterRanges, getTimeFilterSource, getTimeSelectSource, getTimeValues, init, removeTimeFilterSource, removeTimeSelectSource, setAnimationShareGroup, setDataChoiceWrappers, setDriveTime, setJython, setMaxDate, setMinDate, setResolution, setShowTime, setTimeFilterSource, setTimeSelectSource, wrapDataChoicesaddGroupMenuItems, doMakeDisplayLabel, doSaveImage, doSaveMovie, getContents, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, initAfterUnPersistence, removeDisplayComponent, setDisplayControl, setDisplayGroup, setIsRemoved, setLabelShown, showPopup, showPropertiesaddPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, isShowing, removePropertyChangeListener, showPropertiesapplySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogpublic static final java.lang.String PROP_TIMERANGE
public TimeSeriesChartWrapper()
public TimeSeriesChartWrapper(java.lang.String name,
java.util.List dataChoices)
name - The namedataChoices - List of data choicespublic org.jfree.chart.plot.XYPlot getPlot()
public java.lang.String getTypeName()
getTypeName in class ChartWrapperprotected javax.swing.JComponent doMakeContents()
doMakeContents in class DisplayComponentpublic java.util.List getDisplayables()
getDisplayables in class DisplayComponentpublic void loadData()
throws visad.VisADException,
java.rmi.RemoteException
loadData in class ChartWrapperjava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void loadDatax()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic java.lang.String toString()
toString in class DisplayComponentpublic void setSelectedAnnotation(ChartAnnotation annotation, java.util.List list, boolean dontClear)
annotation - The annotationlist - List its indontClear - Dont clear the others in the listpublic void removeAnnotations(java.util.List annotations)
annotations - The list of annotationspublic void removeAnnotation(ChartAnnotation annotation)
annotation - The annotationpublic void editAnnotation(ChartAnnotation annotation)
annotation - The annotationpublic void removeSelectedAnnotations(java.util.List annotations)
annotations - The list of annotationspublic boolean chartPanelMousePressed(java.awt.event.MouseEvent event)
chartPanelMousePressed in class PlotWrapperevent - information about the event.public boolean chartPanelMouseClicked(java.awt.event.MouseEvent event)
chartPanelMouseClicked in class PlotWrapperevent - information about the event.public double getDomainValue(int x)
x - The x positionpublic double getRangeValue(int y)
y - The y positionpublic java.util.List getTimeRanges()
getTimeRanges in class ChartWrapperpublic void setTimeFromAnimation(visad.Real time)
setTimeFromAnimation in class ChartWrappertime - the animation timeprotected void setTime(double value,
boolean andDriveAnimation)
value - timeandDriveAnimation - Set the time in the animation widgetpublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class ChartWrapperevent - the eventpublic void zoomTo(TrackSegment segment)
segment - The track segmentpublic void zoomTo(RangeFilter rangeFilter)
rangeFilter - The range filterpublic void centerOn(WayPoint wayPoint)
wayPoint - The way pointpublic void centerOn(RangeFilter rangeFilter)
rangeFilter - The range filterpublic boolean chartPanelMouseReleased(java.awt.event.MouseEvent event)
chartPanelMouseReleased in class PlotWrapperevent - The eventprotected void getPropertiesComponents(java.util.List comps,
int tabIdx)
getPropertiesComponents in class PlotWrappercomps - List of componentstabIdx - Which tab in the properties dialogprotected boolean applyProperties()
applyProperties in class PlotWrapperpublic void annotationChanged(ChartAnnotation chartAnnotation)
annotationChanged in class PlotWrapperchartAnnotation - The annotation that changedpublic void addSegment(WayPoint[] wps)
wps - 2 waypointspublic boolean okToDraw(ChartAnnotation annotation)
okToDraw in class PlotWrapperannotation - The annotationpublic java.util.List getSelected(java.util.List annotations)
annotations - The list of annotationsprotected java.util.List getPopupMenuItems(java.util.List items)
getPopupMenuItems in class PlotWrapperitems - list to add topublic ChartAnnotation findClosestAnnotation(java.util.List list, int x, int y, boolean andSetSelected, boolean addToSelected)
list - List of annotationsx - The x positiony - The y positionandSetSelected - If true set the closest as selectedaddToSelected - If true add to selected. Else remove selection set (if andSetSelected
is true.protected boolean canDoDriveTime()
canDoDriveTime in class ChartWrapperprotected boolean canDoTimeSelect()
canDoTimeSelect in class ChartWrapperprotected boolean canDoJython()
canDoJython in class ChartWrapperprotected void initializeJython(org.python.util.PythonInterpreter interpreter)
initializeJython in class ChartWrapperinterpreter - The interpreter to initializeprotected boolean canDoColors()
canDoColors in class PlotWrapperprotected boolean canDoTimeFilters()
canDoTimeFilters in class ChartWrapperpublic boolean canDoWrapperColor()
canDoWrapperColor in class ChartWrapperpublic boolean canDoWrapperSide()
canDoWrapperSide in class ChartWrapperpublic boolean valuesOk(int dataset,
double domainValue,
double rangeValue)
dataset - Which data setdomainValue - The domain valuerangeValue - The range valuepublic java.util.List getRangeValues(int dataset)
dataset - The data setpublic boolean rangeValueOk(int dataset,
double value)
dataset - Which datasetvalue - The range valuepublic boolean chartPanelMouseDragged(java.awt.event.MouseEvent event)
chartPanelMouseDragged in class PlotWrapperevent - The eventpublic java.lang.String chartPanelGetToolTipText(java.awt.event.MouseEvent event)
chartPanelGetToolTipText in class PlotWrapperevent - The eventpublic void rangeFiltersChanged()
public void doRemove()
doRemove in class ChartWrapperpublic void initDone()
initDone in class ChartWrapperpublic void setWayPoints(java.util.List value)
value - The new value for WayPointspublic java.util.List getWayPoints()
public void setSegments(java.util.List value)
value - The new value for Segmentspublic java.util.List getSegments()
public void setRangeFilters(java.util.List value)
value - The new value for RangeFilterspublic java.util.List getRangeFilters()
public void setTimeWayPoint(WayPoint value)
value - The new value for TimeWayPointpublic WayPoint getTimeWayPoint()
public void setShowDots(boolean value)
value - The new value for ShowDotspublic boolean getShowDots()