Module uk.co.caprica.vlcj
Class FixedCallbackImagePainter
java.lang.Object
uk.co.caprica.vlcj.player.component.callback.FixedCallbackImagePainter
- All Implemented Interfaces:
CallbackImagePainter
Implementation of a painter that centers and paints at a fixed size.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
paint
(Graphics2D g2, JComponent component, BufferedImage image) Paint the image.void
prepare
(Graphics2D g2, JComponent component) Prepare the drawing context.
-
Constructor Details
-
FixedCallbackImagePainter
public FixedCallbackImagePainter()
-
-
Method Details
-
prepare
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
Description copied from interface:CallbackImagePainter
Paint the image.- Specified by:
paint
in interfaceCallbackImagePainter
- Parameters:
g2
- graphics contextcomponent
- component to paintimage
- image to paint
-