Package gpl.swing
Class GPLDisplayPanel
java.lang.Object
Layout.DisplayPanel
gpl.swing.GPLDisplayPanel
-
Constructor Summary
ConstructorDescriptionGPLDisplayPanel
(GPLControlledUnit gplControl, DisplayPanelProvider displayPanelProvider, DisplayPanelContainer displayPanelContainer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
containerNotification
(DisplayPanelContainer displayContainer, int noteType) Called by the DisplayPanelContainer whenever the scales change - e.g.void
The displayPanelContainer should call destroyPanel when the panel is no longer required so that the displayPanel can unsubscribe to any data it was observing.void
Called just before the image is drawn so that it can be drawn on.Methods inherited from class Layout.DisplayPanel
clearImage, clearImage, clearImage, getDisplayImage, getDisplayPanelContainer, getDisplayPanelProvider, getEastAxis, getInnerHeight, getInnerPanel, getInnerWidth, getNorthAxis, getPanel, getPanelBorder, getSouthAxis, repaint, repaint, setPanelBorder, spectrogramMousePosition
-
Constructor Details
-
GPLDisplayPanel
public GPLDisplayPanel(GPLControlledUnit gplControl, DisplayPanelProvider displayPanelProvider, DisplayPanelContainer displayPanelContainer)
-
-
Method Details
-
destroyPanel
public void destroyPanel()Description copied from class:DisplayPanel
The displayPanelContainer should call destroyPanel when the panel is no longer required so that the displayPanel can unsubscribe to any data it was observing.- Specified by:
destroyPanel
in classDisplayPanel
-
containerNotification
Description copied from class:DisplayPanel
Called by the DisplayPanelContainer whenever the scales change - e.g. every time new data is drawn on the spectrogram.The display panel can use this information in two ways:
Firstly, it should clear the region of the display just ahead of the current spectrogram x coordinate. Secondly, it may draw additional data on the display.
- Specified by:
containerNotification
in classDisplayPanel
-
prepareImage
public void prepareImage()Description copied from class:DisplayPanel
Called just before the image is drawn so that it can be drawn on.- Overrides:
prepareImage
in classDisplayPanel
-
getWestAxis
- Overrides:
getWestAxis
in classDisplayPanel
-