Package org.jjazz.ss_editor.rpviewer.api
Interface RpViewerRenderer
- All Known Subinterfaces:
RpViewerEditableRenderer
- All Known Implementing Classes:
MeterRpRenderer
,StringRpRenderer
public interface RpViewerRenderer
A renderer for a RpViewer.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
A change event is fired when this RpRenderer configuration has changed for some reason (e.g. user has changed some settings).The preferred size of this Renderer.The target RpViewer for which we perform the rendering.getSong()
The Song context.The SongPart context.void
Render the RpViewer.void
void
setRpViewer
(RpViewer rpv) Set the target RpViewer for which we perform the rendering.
-
Method Details
-
setRpViewer
Set the target RpViewer for which we perform the rendering.- Parameters:
rpv
-
-
getRpViewer
RpViewer getRpViewer()The target RpViewer for which we perform the rendering.- Returns:
-
getSongPart
SongPart getSongPart()The SongPart context.- Returns:
- Might be null.
-
getSong
Song getSong()The Song context.- Returns:
- Might be null.
-
getPreferredSize
Dimension getPreferredSize()The preferred size of this Renderer.- Returns:
-
paintComponent
Render the RpViewer.- Parameters:
g
-
-
addChangeListener
A change event is fired when this RpRenderer configuration has changed for some reason (e.g. user has changed some settings).A change event means the preferredSize() and/or the paintComponent() behavior might have changed.
- Parameters:
l
-
-
removeChangeListener
-