Interface RepaintDelegate


  • public interface RepaintDelegate
    Supports delegation of Swing repaint calls to a host component. This is currently used by the WaveformPreviewComponent 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 with WaveformPreviewComponent.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 own Component.repaint(int, int, int, int) implementation.
        Parameters:
        x - the left edge of the region that we want to have redrawn
        y - the top edge of the region that we want to have redrawn
        width - the width of the region that we want to have redrawn
        height - the height of the region that we want to have redrawn