Interface CallbackImagePainter

    • Method Detail

      • 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