Class TDScaleInfo

java.lang.Object
dataPlotsFX.data.TDScaleInfo
Direct Known Subclasses:
GenericScaleInfo, LinePlotScaleInfo, Scrolling2DScaleInfo, TriggerDataScaleInfo

public class TDScaleInfo extends Object
Information about the scale requirements of a set of plotable data. Contains an ever increasing set of options !
Author:
Doug Gillespie and Jamie Macaulay
  • Property Details

    • minVal

      public javafx.beans.property.DoubleProperty minValProperty
      Get the minimum value property for the scale information.
      See Also:
    • maxVal

      public javafx.beans.property.DoubleProperty maxValProperty
      Get the maximum value property for the scale information.
      See Also:
    • nPlots

      public javafx.beans.property.IntegerProperty nPlotsProperty
      Integer property for the number of plots. This is NOT the number of visible plots.
      See Also:
  • Field Details

    • BASE_PRIORITY

      public static final int BASE_PRIORITY
      Override other nPlots and display number of panels
      See Also:
    • INLIST_PRIORITY

      public static final int INLIST_PRIORITY
      Priority for number of plots is dependent on position of associated TDDataInfo in data info list.
      See Also:
  • Constructor Details

  • Method Details

    • addDivisorListener

      public void addDivisorListener()
      The divisor listener.
    • calcDivisor

      public void calcDivisor()
      Automatically calculate the unit divisor.
    • getDivisorString

      public String getDivisorString()
      Get a string representing the divisor unit.
    • minValProperty

      public javafx.beans.property.DoubleProperty minValProperty()
      Get the minimum value property for the scale information.
      Returns:
      minimum axis value property
    • maxValProperty

      public javafx.beans.property.DoubleProperty maxValProperty()
      Get the maximum value property for the scale information.
      Returns:
      maximum axis value property
    • getMinVal

      public double getMinVal()
      Get the minimum value of the y axis (x axis when vertical).
      Returns:
      the minVal
    • setMinVal

      public void setMinVal(double minVal)
      Set the minimum value of the y axis (x axis when vertical).
      Parameters:
      minVal - the minVal to set
    • getMaxVal

      public double getMaxVal()
      Get the maximum value of the y axis (x axis when vertical).
      Returns:
      the maximum value.
    • setMaxVal

      public void setMaxVal(double maxVal)
      Set the maximum value of the y axis (x axis when vertical).
      Parameters:
      maxVal - the maxVal to set
    • getNPlots

      public int getNPlots()
      The number of plot panes.
      Returns:
      the number of separate plot graphs to display.
    • setnPlots

      public void setnPlots(int nPlots)
      Set the number of plot panes.
      Parameters:
      nPlots - the number of plot graphs to show.
    • getPlotPriority

      public int getPlotPriority()
      Get the plot priority.The plot is used to determine how many plot panes should show in a graph when there are multiple data blocks displayed. Note: if a base priority then it is the responsibility of the associated TDDataInfo to draw a wrap line.
      Returns:
      the plot priority.
    • setPlotPriority

      public void setPlotPriority(int plotPriority)
      Set the plot priority.
      Parameters:
      plotPriority -
    • getPlotChannels

      public int[] getPlotChannels()
      Get the channels/sequence numbers associated with each plot pane. 0 indicates pane can show all channels (although will not necessarily show all channels depending on TDDataInof settings).
      Returns:
      a list of channel/sequence bitmaps indicating which channels are associated with which plot panes.
    • getVisibleChannels

      public boolean[] getVisibleChannels()
      Get plot panes which are shown on the graph .
    • setPlotChannels

      public void setPlotChannels(int[] plotChannels)
      Set the channels/sequences associated with each plot pane.
      Parameters:
      plotChannels - a list of channel/sequence bitmaps indicating which channels are associated with which plot panes.
    • setUnitDivisor

      public void setUnitDivisor(double unitDivisor)
      Set a unit divisor for display purposes. e.g 1000 would divide by 1000 and make Hz kHz.
      Parameters:
      unitDivisor - - unit divisor.
    • getUnitDivisor

      public double getUnitDivisor()
      Get a unit divisor for display purposes. e.g 1000 would divide by 1000 and make Hz kHz.
      Returns:
      unitDivisor - unit divisor.
    • getDataTypeInfo

      public DataTypeInfo getDataTypeInfo()
      The DataTypeInfo. Contains both data type and unit.
      Returns:
      the dataTypeInfo for the scale information.
    • getDataType

      public GeneralProjector.ParameterType getDataType()
      The data type e.g. bearing.
      Returns:
      the data type
    • getDataUnit

      public GeneralProjector.ParameterUnits getDataUnit()
      The data units. e.g. Hz
      Returns:
      the data units.
    • isAvailable

      public boolean isAvailable()
      Is this scale type currently available ? This is needed for data types which may change their localisation content dynamically. For instance, if a datablock has a beam former added to it's output, it will then have bearing information which it would not have if the datablock was not linked up to a localiser.
      Returns:
      True if it's currently possible to plot data units on this axis type.
    • getAxisName

      public String getAxisName()
      Get the name of the axis.
      Returns:
      name of the axis.
    • getAxisName

      public static String getAxisName(DataTypeInfo axisType)
    • getUnitName

      public static String getUnitName(DataTypeInfo axisType)
    • nPlotsProperty

      public javafx.beans.property.IntegerProperty nPlotsProperty()
      Integer property for the number of plots. This is NOT the number of visible plots.
      Returns:
      the number of plots property
    • getVisiblePlots

      public boolean[] getVisiblePlots()
      The visible plots. This follows follows @link getPlotChannels. True indicates a plot is shown and false indicates a plot is not visible.
      Returns:
      an array indicating which plots are shown and which are not.
    • getNVisiblePlots

      public int getNVisiblePlots()
      Get the number of visible plots
      Returns:
      the number of visible plots.
    • getScaleInfoData

      public TDScaleInfoData getScaleInfoData()
      Get the scale info data.
      Returns:
      the scaleInfoData
    • setScaleInfoData

      public void setScaleInfoData(TDScaleInfoData scaleInfoData)
      Set the scale info values based on scale info data.
      Parameters:
      scaleInfoData - the scaleInfoData to set
    • setReverseAxis

      public void setReverseAxis(boolean reverseAxis)
      If true then the axis is reversed
      Parameters:
      b - - true to reverse the axis
    • getReverseAxis

      public boolean getReverseAxis()
      Get the reverse axis.
      Returns:
      the reverse axis.