|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.collab.PropertiedThing
ucar.unidata.idv.control.multi.DisplayComponent
ucar.unidata.idv.control.chart.ChartWrapper
ucar.unidata.idv.control.chart.PlotWrapper
ucar.unidata.idv.control.chart.TimeSeriesChartWrapper
public class TimeSeriesChartWrapper
Provides a time series chart
| 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 | |
|---|---|
static String |
PROP_TIMERANGE
Property change id |
| 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, 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 | |
|---|---|
TimeSeriesChartWrapper()
Default ctor |
|
TimeSeriesChartWrapper(String name,
List dataChoices)
Ctor |
|
| Method Summary | |
|---|---|
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 |
String |
chartPanelGetToolTipText(MouseEvent event)
Get the tool tip text |
boolean |
chartPanelMouseClicked(MouseEvent event)
Callback method for receiving notification of a mouse click on a chart. |
boolean |
chartPanelMouseDragged(MouseEvent event)
Handle event in chart |
boolean |
chartPanelMousePressed(MouseEvent event)
Callback method for receiving notification of a mouse click on a chart. |
boolean |
chartPanelMouseReleased(MouseEvent event)
Handle event in chart |
protected JComponent |
doMakeContents()
Create the chart if needed |
void |
doRemove()
remove me |
void |
editAnnotation(ChartAnnotation annotation)
Show the properties |
ChartAnnotation |
findClosestAnnotation(List list,
int x,
int y,
boolean andSetSelected,
boolean addToSelected)
Find the closest annotation |
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 List |
getPopupMenuItems(List items)
Get the popup menu items |
protected void |
getPropertiesComponents(List comps,
int tabIdx)
Add to the properties components |
List |
getRangeFilters()
Get the RangeFilters property. |
double |
getRangeValue(int y)
Get the range value of y |
List |
getRangeValues(int dataset)
Get the List of range values for the given dataset |
List |
getSegments()
Get the Segments property. |
List |
getSelected(List annotations)
Get list of selected annotations |
boolean |
getShowDots()
Get the ShowDots property. |
List |
getTimeRanges()
Create a list of time ranges from the segments |
WayPoint |
getTimeWayPoint()
Get the TimeWayPoint property. |
String |
getTypeName()
Return the human readable name of this chart |
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(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(List annotations)
Remove all of the annotations in the list. |
void |
removeSelectedAnnotations(List annotations)
Remove the selected annotations in the list. |
void |
setRangeFilters(List value)
Set the RangeFilters property. |
void |
setSegments(List value)
Set the Segments property. |
void |
setSelectedAnnotation(ChartAnnotation annotation,
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(Real time)
Animation in main display changed. |
void |
setTimeWayPoint(WayPoint value)
Set the TimeWayPoint property. |
void |
setWayPoints(List value)
Set the WayPoints property. |
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 |
| Methods inherited from class ucar.unidata.idv.control.chart.PlotWrapper |
|---|
doMakeChartPanel, getAutoRange, getBackgroundColor, getChartPanel, getDataAreaColor, getDomainLineState, getPreferredChartSize, getPropertyTabs, getRangeLineState, initXYPlot, keyPressed, keyReleased, keyTyped, panPlot, panPlot, setAutoRange, setBackgroundColor, setDataAreaColor, setDomainLineState, setName, setRangeLineState, signalChartChanged |
| Methods inherited from class ucar.unidata.idv.control.multi.DisplayComponent |
|---|
addGroupMenuItems, doMakeDisplayLabel, doSaveImage, doSaveMovie, getContents, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, initAfterUnPersistence, removeDisplayComponent, setDisplayControl, setDisplayGroup, setIsRemoved, setLabelShown, 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 |
| Field Detail |
|---|
public static final String PROP_TIMERANGE
| Constructor Detail |
|---|
public TimeSeriesChartWrapper()
public TimeSeriesChartWrapper(String name,
List dataChoices)
name - The namedataChoices - List of data choices| Method Detail |
|---|
public org.jfree.chart.plot.XYPlot getPlot()
public String getTypeName()
getTypeName in class ChartWrapperprotected JComponent doMakeContents()
doMakeContents in class DisplayComponentpublic List getDisplayables()
getDisplayables in class DisplayComponent
public void loadData()
throws VisADException,
RemoteException
loadData in class ChartWrapperRemoteException - On badness
VisADException - On badness
public void loadDatax()
throws VisADException,
RemoteException
RemoteException - On badness
VisADException - On badnesspublic String toString()
toString in class DisplayComponent
public void setSelectedAnnotation(ChartAnnotation annotation,
List list,
boolean dontClear)
annotation - The annotationlist - List its indontClear - Dont clear the others in the listpublic void removeAnnotations(List annotations)
annotations - The list of annotationspublic void removeAnnotation(ChartAnnotation annotation)
annotation - The annotationpublic void editAnnotation(ChartAnnotation annotation)
annotation - The annotationpublic void removeSelectedAnnotations(List annotations)
annotations - The list of annotationspublic boolean chartPanelMousePressed(MouseEvent event)
chartPanelMousePressed in class PlotWrapperevent - information about the event.
public boolean chartPanelMouseClicked(MouseEvent event)
chartPanelMouseClicked in class PlotWrapperevent - information about the event.
public double getDomainValue(int x)
x - The x position
public double getRangeValue(int y)
y - The y position
public List getTimeRanges()
getTimeRanges in class ChartWrapperpublic void setTimeFromAnimation(Real time)
setTimeFromAnimation in class ChartWrappertime - the animation time
protected void setTime(double value,
boolean andDriveAnimation)
value - timeandDriveAnimation - Set the time in the animation widgetpublic void propertyChange(PropertyChangeEvent event)
propertyChange in interface 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(MouseEvent event)
chartPanelMouseReleased in class PlotWrapperevent - The event
protected void getPropertiesComponents(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 annotation
public List getSelected(List annotations)
annotations - The list of annotations
protected List getPopupMenuItems(List items)
getPopupMenuItems in class PlotWrapperitems - list to add to
public ChartAnnotation findClosestAnnotation(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 ChartWrapper
public boolean valuesOk(int dataset,
double domainValue,
double rangeValue)
dataset - Which data setdomainValue - The domain valuerangeValue - The range value
public List getRangeValues(int dataset)
dataset - The data set
public boolean rangeValueOk(int dataset,
double value)
dataset - Which datasetvalue - The range value
public boolean chartPanelMouseDragged(MouseEvent event)
chartPanelMouseDragged in class PlotWrapperevent - The event
public String chartPanelGetToolTipText(MouseEvent event)
chartPanelGetToolTipText in class PlotWrapperevent - The event
public void rangeFiltersChanged()
public void doRemove()
doRemove in class ChartWrapperpublic void initDone()
initDone in class ChartWrapperpublic void setWayPoints(List value)
value - The new value for WayPointspublic List getWayPoints()
public void setSegments(List value)
value - The new value for Segmentspublic List getSegments()
public void setRangeFilters(List value)
value - The new value for RangeFilterspublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||