Class FoundDataUnit

java.lang.Object
dataPlots.data.FoundDataUnit

public class FoundDataUnit extends Object
Utility class to return details of a data unit found on a graph.

This is essentially a wrapper around a PamDataUnit which provides some more info on graph data type and selection method.

Author:
Doug Gillespie
  • Field Details

    • SINGLE_SELECTION

      public static final int SINGLE_SELECTION
      Data unit was found by a single mouse click or finger tap.
      See Also:
    • MARKED_AREA_DETECTION

      public static final int MARKED_AREA_DETECTION
      Data unit was found byt being part of a selction area- i.e. was marked up with a series of other units.
      See Also:
    • selectionType

      public int selectionType
    • dataInfo

      public TDDataInfo dataInfo
    • dataUnit

      public PamDataUnit dataUnit
    • distance

      public double distance
  • Constructor Details

    • FoundDataUnit

      public FoundDataUnit(TDDataInfo dataInfo, PamDataUnit dataUnit, int type)
      Create a FoundDataUnit
      Parameters:
      dataInfo - - dataInfo i.e. what typoe of unit this is.
      dataUnit - - the data unit
      type - - the selection type.