Class GenericLinePlotInfo

java.lang.Object
dataPlotsFX.data.TDDataInfoFX
dataPlotsFX.data.generic.GenericLinePlotInfo
Direct Known Subclasses:
DLPredictionPlotInfoFX, IshmaelFnPlotInfo

public abstract class GenericLinePlotInfo extends TDDataInfoFX
A Data Info which plots 1D line data i.e. usually used to plot continuous 1D data e.g. deep learning predictions, Ishmael data, click trigger data.
Author:
Jamie Macaulay
  • Constructor Details

  • Method Details

    • drawDataUnit

      public javafx.scene.shape.Polygon drawDataUnit(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type)
      Description copied from class: TDDataInfoFX
      Draw a data unit.
      Overrides:
      drawDataUnit in class TDDataInfoFX
      Parameters:
      pamDataUnit - data unit to draw
      g - graphicsContext handle to draw on
      type - flag for which type of symbol to draw. e.g normal or highlighted.
      Returns:
      polygon of area drawn on.
    • getDetData

      public abstract double[][] getDetData(PamDataUnit pamDataUnit)
      Get the line data. Each double[] is a separate line with N evenly spaced data points.
      Parameters:
      pamDataUnit - - the pam data unit containing the data.
      Returns:
      the line data.
    • drawPredicition

      public javafx.scene.shape.Polygon drawPredicition(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type)
      Draw the prediction as a line.
      Parameters:
      plotNumber - - the plot number.
      pamDataUnit - - the PAM data unit.
      g - - the graphics context.
      scrollStart - - the scroll start.
      tdProjector - - the TDProjectorFX.
      type - - the type flag.
      Returns:
      the polygon of the shape.
    • getSymbolChooser

      public TDSymbolChooserFX getSymbolChooser()
      Specified by:
      getSymbolChooser in class TDDataInfoFX
      Returns:
      a class containing functions to chose a symbol to plot.
    • getColor

      public abstract LineInfo getColor(int i)
      Get the color.
      Parameters:
      i - - the prediction index
      Returns:
      the color for that prediciton
    • getDataValue

      public Double getDataValue(PamDataUnit pamDataUnit)
      Description copied from class: TDDataInfoFX
      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 TDDataInfoFX
      Returns:
      data value or null if this data point should not be plotted.
    • notifyChange

      public void notifyChange(int changeType)
      Notifications from the PamController are passed to this function.
      Overrides:
      notifyChange in class TDDataInfoFX
      Parameters:
      changeType - - notification flag.