Package dataPlotsFX.projector
Class TimeProjectorFX
- Direct Known Subclasses:
RawFFTPlot.FreqTimeProjector
,TDProjectorFX
-
Nested Class Summary
Nested classes/interfaces inherited from class PamView.GeneralProjector
GeneralProjector.ParameterType, GeneralProjector.ParameterUnits
-
Field Summary
Fields inherited from class PamView.GeneralProjector
NPARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the length of the time axis in pixels.Get the time axisdouble
getTimePix
(double timeMillis) Get the location in pixels for a time in millis.double
Get time range in milliseconds.void
setTimeAxis
(PamAxisFX axis) Set the time axis.Methods inherited from class PamView.GeneralProjector
addHoverData, addHoverData, addHoverData, addHoverData, addHoverData, addHoverData, clearHoverList, findClosestDataUnitIndex, findClosestDataUnitIndex, getCoord3d, getCoord3d, getDataPosition, getDataSelector, getHoverDataList, getHoverDataSynchroniser, getHoveredDataUnit, getHoverText, getHoverText, getMouseHoverAdapter, getPamSymbolChooser, getParameterTypes, getParameterUnits, getParmeterType, getParmeterUnits, getProjectorDrawingOptions, isViewer, setDataSelector, setPamSymbolChooser, setParmeterType, setParmeterUnits, setProjectorDrawingOptions
-
Constructor Details
-
TimeProjectorFX
-
TimeProjectorFX
public TimeProjectorFX()
-
-
Method Details
-
getTimeAxis
Get the time axis -
setTimeAxis
Set the time axis.- Parameters:
axis
- - the axis to set.
-
getVisibleTime
public double getVisibleTime()Get time range in milliseconds.- Returns:
- time range (max-min) in millis.
-
getGraphTimePixels
public double getGraphTimePixels()Get the length of the time axis in pixels.- Returns:
- the length of the axis in pixel.
-
getTimePix
public double getTimePix(double timeMillis) Get the location in pixels for a time in millis.- Parameters:
timeMillis
- - the time along the axis in millis (Note: the axis start at timeMillis=0).- Returns:
- - the pixel location along the x axis (if horizontal)
-