public class WaveformPreview extends Object
| Modifier and Type | Field and Description |
|---|---|
DataReference |
dataReference
The unique identifier that was used to request this waveform preview.
|
Message |
rawMessage
The message holding the preview as it was read over the network.
|
| Constructor and Description |
|---|
WaveformPreview(DataReference reference,
Message message)
Constructor when reading from the network or a cache file.
|
| Modifier and Type | Method and Description |
|---|---|
JComponent |
createViewComponent(TrackMetadata metadata)
Create a standard Swing component which can be added to a user interface that will draw this waveform preview,
optionally including annotations like the current playback position and minute markers (if you supply
TrackMetadata so the total length can be determined), and cue markers (if you also supply a
CueList). |
ByteBuffer |
getData()
Get the raw bytes of the waveform preview data
|
String |
toString() |
public final DataReference dataReference
public final Message rawMessage
public WaveformPreview(DataReference reference, Message message)
reference - the unique database reference that was used to request this waveform previewmessage - the response that contains the previewpublic ByteBuffer getData()
public JComponent createViewComponent(TrackMetadata metadata)
TrackMetadata so the total length can be determined), and cue markers (if you also supply a
CueList). The playback position can bemetadata - Information about the track whose waveform we are drawing, so we can translate times into
positionsCopyright © 2016–2018 Deep Symmetry, LLC. All rights reserved.