Class FilledCallbackImagePainter
- java.lang.Object
-
- uk.co.caprica.vlcj.player.component.callback.FilledCallbackImagePainter
-
- All Implemented Interfaces:
CallbackImagePainter
public class FilledCallbackImagePainter extends Object implements CallbackImagePainter
Implementation of a painter that scales to fit the full size of the container.The default implementation uses bilinear interpolation when painting the scaled image.
Aspect ratio is not preserved, see
ScaledCallbackImagePainter
instead.
-
-
Constructor Summary
Constructors Constructor Description FilledCallbackImagePainter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
paint(Graphics2D g2, JComponent component, BufferedImage image)
Paint the image.void
prepare(Graphics2D g2, JComponent component)
Prepare the drawing context.
-
-
-
Method Detail
-
prepare
public void prepare(Graphics2D g2, JComponent component)
Description copied from interface:CallbackImagePainter
Prepare the drawing context.This is intended to set context attributes like
RenderingHints
before painting the image itself.- Specified by:
prepare
in interfaceCallbackImagePainter
- Parameters:
g2
- graphics contextcomponent
- component to paint
-
paint
public void paint(Graphics2D g2, JComponent component, BufferedImage image)
Description copied from interface:CallbackImagePainter
Paint the image.- Specified by:
paint
in interfaceCallbackImagePainter
- Parameters:
g2
- graphics contextcomponent
- component to paintimage
- image to paint
-
-