Package detectionPlotFX.plots.simple2d
Class Simple2DPlot
java.lang.Object
detectionPlotFX.plots.simple2d.Simple2DPlot
- Direct Known Subclasses:
Bearing2DPlot
,TOADPairPlot
Class for a simple 2D plot which can hold both
a data array and a related image. No scrolling since only
intended for small quantities of data.
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLineData
(SimpleLineData lineData, boolean repaint) void
addSymbol
(PamSymbolFX symbol, double x, double y) void
addSymbol
(PamSymbolFX symbol, javafx.geometry.Point2D pt) void
clearLineData
(boolean repaint) double[][]
javafx.scene.Node
getNode()
javafx.geometry.Point2D
boolean
boolean
void
repaint()
void
Repaint on the FX thread.void
setAutoScale
(boolean autoScale) void
setBottomAxisRange
(double minVal, double maxVal) Set the XAxis rangevoid
setBottomAxisRange
(double minVal, double maxVal, double labelScale, String axisLabel) Set the XAxis range, scale and label.void
setBottomLabel
(String label) Set the X Axis labelvoid
setData
(double[][] data, double[] rangeX, double[] rangeY) void
setLeftAxisRange
(double minVal, double maxVal) Set the Y Axis rangevoid
setLeftAxisRange
(double minVal, double maxVal, double labelScale, String axisLabel) Set the Y Axis rangevoid
setLeftLabel
(String label) Set the Y Axis labelvoid
setPaintPeakPos
(boolean paintPeakPos) void
setPeakPoint
(javafx.geometry.Point2D peakPoint) void
setPeakSymbol
(PamSymbolFX peakSymbol) void
setRightAxisRange
(double minVal, double maxVal) Set the Right Y Axis rangevoid
setRightAxisRange
(double minVal, double maxVal, double labelScale, String axisLabel) Set the right Y Axis rangevoid
setRightLabel
(String label) Set the right Y Axis labelvoid
setTopAxisRange
(double minVal, double maxVal) Set the Right Y Axis rangevoid
setTopAxisRange
(double minVal, double maxVal, double labelScale, String axisLabel) Set the right Y Axis rangevoid
setTopLabel
(String label) Set the right Y Axis label
-
Constructor Details
-
Simple2DPlot
-
-
Method Details
-
getNode
public javafx.scene.Node getNode() -
setBottomAxisRange
Set the XAxis range, scale and label.- Parameters:
minVal
- minimum valuemaxVal
- maximum valuelabelScale
- label scale for the axisaxisLabel
- label for the axis.
-
setBottomAxisRange
public void setBottomAxisRange(double minVal, double maxVal) Set the XAxis range- Parameters:
minVal
- minimum valuemaxVal
- maximum valueaxisLabel
-axisScale
-
-
setBottomLabel
Set the X Axis label- Parameters:
label
-
-
setLeftAxisRange
Set the Y Axis range- Parameters:
minVal
- minimum valuemaxVal
- maximum valuelabelScale
- label scale for the axisaxisLabel
- label for the axis.
-
setLeftAxisRange
public void setLeftAxisRange(double minVal, double maxVal) Set the Y Axis range- Parameters:
minVal
- minimum valuemaxVal
- maximum value
-
setLeftLabel
Set the Y Axis label- Parameters:
label
-
-
setRightAxisRange
Set the right Y Axis range- Parameters:
minVal
- minimum valuemaxVal
- maximum valuelabelScale
- label scale for the axisaxisLabel
- label for the axis.
-
setRightAxisRange
public void setRightAxisRange(double minVal, double maxVal) Set the Right Y Axis range- Parameters:
minVal
- minimum valuemaxVal
- maximum value
-
setRightLabel
Set the right Y Axis label- Parameters:
label
-
-
setTopAxisRange
Set the right Y Axis range- Parameters:
minVal
- minimum valuemaxVal
- maximum valuelabelScale
- label scale for the axisaxisLabel
- label for the axis.
-
setTopAxisRange
public void setTopAxisRange(double minVal, double maxVal) Set the Right Y Axis range- Parameters:
minVal
- minimum valuemaxVal
- maximum value
-
setTopLabel
Set the right Y Axis label- Parameters:
label
-
-
setData
public void setData(double[][] data, double[] rangeX, double[] rangeY) -
repaintLater
public void repaintLater()Repaint on the FX thread. -
repaint
public void repaint() -
addSymbol
-
addSymbol
-
isAutoScale
public boolean isAutoScale()- Returns:
- the autoScale
-
setAutoScale
public void setAutoScale(boolean autoScale) - Parameters:
autoScale
- the autoScale to set
-
getPlotPane
- Returns:
- the plotPane
-
getSpectrogramColours
- Returns:
- the spectrogramColours
-
getCurrentData
public double[][] getCurrentData()- Returns:
- the currentData
-
isPaintPeakPos
public boolean isPaintPeakPos()- Returns:
- the paintPeakPos
-
setPaintPeakPos
public void setPaintPeakPos(boolean paintPeakPos) - Parameters:
paintPeakPos
- the paintPeakPos to set
-
clearLineData
public void clearLineData(boolean repaint) -
addLineData
-
getPeakPoint
public javafx.geometry.Point2D getPeakPoint()- Returns:
- the peakPoint
-
setPeakPoint
public void setPeakPoint(javafx.geometry.Point2D peakPoint) - Parameters:
peakPoint
- the peakPoint to set
-
getPeakSymbol
- Returns:
- the peakSymbol
-
setPeakSymbol
- Parameters:
peakSymbol
- the peakSymbol to set
-