Class CPODPlotInfoFX


public class CPODPlotInfoFX extends GenericDataPlotInfo
CPOD plot info.
Author:
Jamie Macaulay
  • Constructor Details

  • Method Details

    • getGraphSettingsPane

      public TDSettingsPane getGraphSettingsPane()
      Description copied from class: TDDataInfoFX
      Return a hiding settings node which will get incorporated into a larger tabbed sliding pane.
      Overrides:
      getGraphSettingsPane in class GenericDataPlotInfo
      Returns:
      sliding dialog component.
    • createSymbolChooser

      public TDSymbolChooserFX createSymbolChooser()
      Overrides:
      createSymbolChooser in class GenericDataPlotInfo
    • getCPODDataSelector

      public DataSelector getCPODDataSelector()
      Get the data selector for clicks. This handles plotting clicks of different species
      Returns:
      the data selector.
    • 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.
      Overrides:
      getDataValue in class GenericDataPlotInfo
      Returns:
      data value or null if this data point should not be plotted.
    • 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 GenericDataPlotInfo
      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.
    • drawFrequencyData

      public javafx.scene.shape.Polygon drawFrequencyData(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type)
      Draw a frequency line
      Overrides:
      drawFrequencyData in class GenericDataPlotInfo
      Parameters:
      plotNumber -
      pamDataUnit -
      g -
      scrollStart -
      tdProjector -
      type -
      Returns:
    • shouldDraw

      public boolean shouldDraw(int plotNumber, PamDataUnit dataUnit)
      Description copied from class: TDDataInfoFX
      Do we want to draw this data unit on this plot ?
      Overrides:
      shouldDraw in class TDDataInfoFX
      Returns:
      true if unit should be drawn.