public class SpectrogramProjector extends GeneralProjector
DirectDrawProjector
GeneralProjector.ParameterType, GeneralProjector.ParameterUnits
NPARAMETERS
Modifier and Type | Method and Description |
---|---|
double |
dataToX(double d1,
double d2) |
double |
dataToY(double d1,
double frequency) |
int |
getChannel() |
Coordinate3d |
getCoord3d(double d1,
double d2,
double d3)
Function ultimately used by a PamDataBlock to convert it's own data, in
whatever form that is in into screen coordinates.
|
SpectrogramDisplay |
getSpectrogramDisplay() |
long |
getTimeOffsetMillis() |
void |
setChannel(int channel) |
void |
setOffset(long timeOffsetMillis,
int timeOffsetPixs)
Set the x and the time offset
|
void |
setScales(double xScale,
double yScale,
int specWidth,
int specHeight) |
addHoverData, addHoverData, clearHoverList, findClosestDataUnitIndex, findClosestDataUnitIndex, getHoveredDataUnit, getHoverText, getMouseHoverAdapter, getParmeterType, getParmeterUnits, isViewer, setParmeterType, setParmeterUnits
public long getTimeOffsetMillis()
public void setScales(double xScale, double yScale, int specWidth, int specHeight)
xScale
- pixels per millisecondyScale
- 2/fftLengthspecWidth
- display widthspecHeight
- display heightpublic void setOffset(long timeOffsetMillis, int timeOffsetPixs)
timeOffsetMillis
- time offset in Java millisecondstimeOffsetPixs
- position in pixelspublic Coordinate3d getCoord3d(double d1, double d2, double d3)
GeneralProjector
getCoord3d
in class GeneralProjector
d1
- d2 and d3 are data representing whatever is appropriate for
the concrete instance of the projector (e.g. Latitude,
Longitude, depth, Time Frequency, etc)public double dataToX(double d1, double d2)
public double dataToY(double d1, double frequency)
public SpectrogramDisplay getSpectrogramDisplay()
public void setChannel(int channel)
channel
- the channel to setpublic int getChannel()