Class TimeSeriesChart

All Implemented Interfaces:
ImageObserver

public class TimeSeriesChart extends XYChartManager
A time series chart
Version:
$Revision: 1.12 $
Author:
MetApps Development Team
  • Field Details

    • MACRO_PARAMETER

      public static final String MACRO_PARAMETER
      macro for substituting the param name into the chart line name
      See Also:
  • Constructor Details

    • TimeSeriesChart

      public TimeSeriesChart()
      ctor
    • TimeSeriesChart

      public TimeSeriesChart(DisplayControlImpl control)
      Default constructor.
      Parameters:
      control - control that this is associated with
    • TimeSeriesChart

      public TimeSeriesChart(DisplayControlImpl control, String chartName)
      Default constructor.
      Parameters:
      control - control that this is associated with
      chartName - name for the chart
  • Method Details

    • doMakePlot

      public org.jfree.chart.plot.Plot doMakePlot()
      Make the plot
      Specified by:
      doMakePlot in class ChartManager
      Returns:
      The plot_
    • showAnimationTime

      public void showAnimationTime(boolean value)
      Show time
      Parameters:
      value - show time
    • addSeries

      protected org.jfree.chart.axis.Axis addSeries(org.jfree.data.time.TimeSeries series, LineState lineState, int paramIdx, org.jfree.chart.renderer.xy.XYItemRenderer renderer, boolean rangeVisible)
      Add the series
      Parameters:
      series - The data
      lineState - describes how to draw the line
      paramIdx - which parameter
      renderer - renderer
      rangeVisible - do we show range axis
      Returns:
      the newly created range axis
    • addSeries

      protected org.jfree.chart.axis.Axis addSeries(org.jfree.data.time.TimeSeries series, LineState lineState, int paramIdx, org.jfree.chart.renderer.xy.XYItemRenderer renderer, boolean rangeVisible, boolean addAxis)
      Add the series
      Parameters:
      series - The data
      lineState - describes how to draw the line
      paramIdx - which parameter
      renderer - renderer
      rangeVisible - do we show range axis
      addAxis - include the axis
      Returns:
      the newly created range axis
    • setProbeSamples

      public void setProbeSamples(List<ProbeRowInfo> rowInfos) throws VisADException, RemoteException
      Set the samples from the probe
      Parameters:
      rowInfos - the data
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • initPlot

      protected void initPlot(org.jfree.chart.plot.Plot plot)
      init plot
      Overrides:
      initPlot in class ChartManager
      Parameters:
      plot - plot
    • setProbeSamplesInner

      public void setProbeSamplesInner() throws VisADException, RemoteException
      Set samples
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • setPointObs

      public void setPointObs(List<PointOb> obs, List plotVars) throws VisADException, RemoteException
      set chart from point data
      Parameters:
      obs - obs
      plotVars - the vars to plot
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • setTracks

      public void setTracks(List<LineState> lines) throws VisADException, RemoteException
      set chart from track data
      Parameters:
      lines - LineStates
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • setShowAnimationTime

      public void setShowAnimationTime(boolean value)
      Set the ShowAnimationTime property.
      Parameters:
      value - The new value for ShowAnimationTime
    • getShowAnimationTime

      public boolean getShowAnimationTime()
      Get the ShowAnimationTime property.
      Returns:
      The ShowAnimationTime
    • getDummyDataset

      public org.jfree.data.xy.XYDataset getDummyDataset()
      utility
      Returns:
      dummy
    • setLocation

      public void setLocation(ucar.unidata.geoloc.LatLonPoint llp)
      Set the location for this chart
      Parameters:
      llp - the location
    • setDateFormat

      public void setDateFormat(String format)
      Set the date format
      Parameters:
      format - the date format
    • getDateFormat

      public String getDateFormat()
      Get the date format
      Returns:
      the date format