Package org.deepsymmetry.beatlink.data
Interface RepaintDelegate
-
public interface RepaintDelegate
Supports delegation of Swing repaint calls to a host component. This is currently used by theWaveformPreviewComponent
to operate in a soft-loaded manner in user interfaces which display lists of large numbers of waveforms, so that the ones not on the screen at the moment can be garbage collected and reloaded later. It still needs some way to communicate which areas of the screen need to be redrawn when responding to changes in playback position marker locations, so this interface is used along withWaveformPreviewComponent.setRepaintDelegate(RepaintDelegate)
to enable those changes to be communicated to the lighter component which is hosting it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
repaint(int x, int y, int width, int height)
Request that a region of this component be scheduled for repaint even though it is not actually in any on-screen container.
-
-
-
Method Detail
-
repaint
void repaint(int x, int y, int width, int height)
Request that a region of this component be scheduled for repaint even though it is not actually in any on-screen container. The host component delegates to its ownComponent.repaint(int, int, int, int)
implementation.- Parameters:
x
- the left edge of the region that we want to have redrawny
- the top edge of the region that we want to have redrawnwidth
- the width of the region that we want to have redrawnheight
- the height of the region that we want to have redrawn
-
-