Package d3.plots

Class D3PlotInfo


public class D3PlotInfo extends TDDataInfo
  • Constructor Details

  • Method Details

    • getDataValue

      public Double getDataValue(PamDataUnit pamDataUnit)
      Description copied from class: TDDataInfo
      Gets a value for a specific data unit which should be in the same units as the scale information. This will then be converted into a plot position by the TDGraph.
      Specified by:
      getDataValue in class TDDataInfo
      Returns:
      data value or null if this data poit should not be plotted.
    • drawDataUnit

      public Polygon drawDataUnit(PamDataUnit pamDataUnit, Graphics g, Rectangle windowRect, int orientation, PamAxis timeAxis, long scrollStart, PamAxis yAxis, int type)
      Description copied from class: TDDataInfo
      Draw a data unit.
      Overrides:
      drawDataUnit in class TDDataInfo
      Parameters:
      pamDataUnit - data unit to draw
      g - graphics handle to draw on
      orientation - orientation of the display
      timeAxis - start time of the display
      yAxis - yAxis (used for scale information for the data point)
      type - flag for which type of symbol to draw. e.g normal or highlighted.
      Returns:
      polygon of area drawn on.
    • getSymbolChooser

      public TDSymbolChooser getSymbolChooser()
      Specified by:
      getSymbolChooser in class TDDataInfo
      Returns:
      a class containing functions to chose a symbol to plot.
    • notifyModelChanged

      public void notifyModelChanged(int changeType)
      Description copied from class: TDDataInfo
      Get notifications from the main controller.
      Overrides:
      notifyModelChanged in class TDDataInfo
    • clearDraw

      public void clearDraw()
      Description copied from class: TDDataInfo
      Clear any residual drawing objects that get held between calls, e.g. the point of the previous unit plotted which may have been held so that lines can be drawn between points.
      Overrides:
      clearDraw in class TDDataInfo