Interface AcousticScrollerGraphics
- All Known Implementing Classes:
AcousticDataGramGraphics
,FFTScrollBarGraphics
,RawScrollBarGraphics
public interface AcousticScrollerGraphics
Handles the graphics for an acopustic scroller.
- Author:
- Jamie Macaulay
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Flag for a sample rate chnage. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewData
(PamDataUnit rawData) Add new data units.void
Clear all data in the store.Set colours for the datagram.The data block represented in the graphics.getName()
Name of the graphics.void
notifyUpdate
(int flag) Notifies of updates form the acoustic scroller.boolean
True if the data block requires offline loading of data.void
repaint()
Repaint the canvas with the graphics.void
setColors
(Plot2DColours specColors) Set colours for the datagram.
-
Field Details
-
SAMPLE_RATE_CHANGE
static final int SAMPLE_RATE_CHANGEFlag for a sample rate chnage.- See Also:
-
-
Method Details
-
getDataBlock
PamDataBlock getDataBlock()The data block represented in the graphics.- Returns:
- the data block.
-
addNewData
Add new data units. These will be used to create graphics- Parameters:
rawData
- . A dataunit. Can be any type of data unit.
-
repaint
void repaint()Repaint the canvas with the graphics. -
getName
String getName()Name of the graphics.- Returns:
- the graphics
-
clearStore
void clearStore()Clear all data in the store. -
orderOfflineData
boolean orderOfflineData()True if the data block requires offline loading of data. -
setColors
Set colours for the datagram.- Parameters:
specColors
-
-
getColors
Plot2DColours getColors()Set colours for the datagram.- Parameters:
specColors
-
-
notifyUpdate
void notifyUpdate(int flag) Notifies of updates form the acoustic scroller.- Parameters:
flag
- - the update flag.
-