Interface CallbackImagePainter

All Known Implementing Classes:
FilledCallbackImagePainter, FixedCallbackImagePainter, ScaledCallbackImagePainter

public interface CallbackImagePainter
Specification for a component that paints a video frame in the CallbackMediaPlayerComponent.
  • Method Details

    • prepare

      void prepare(Graphics2D g2, JComponent component)
      Prepare the drawing context.

      This is intended to set context attributes like RenderingHints before painting the image itself.

      Parameters:
      g2 - graphics context
      component - component to paint
    • paint

      void paint(Graphics2D g2, JComponent component, BufferedImage image)
      Paint the image.
      Parameters:
      g2 - graphics context
      component - component to paint
      image - image to paint