Interface CallbackImagePainter
-
- All Known Implementing Classes:
FilledCallbackImagePainter
,FixedCallbackImagePainter
,ScaledCallbackImagePainter
public interface CallbackImagePainter
Specification for a component that paints a video frame in theCallbackMediaPlayerComponent
.
-
-
Method Summary
All Methods Instance Methods Abstract 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
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 contextcomponent
- component to paint
-
paint
void paint(Graphics2D g2, JComponent component, BufferedImage image)
Paint the image.- Parameters:
g2
- graphics contextcomponent
- component to paintimage
- image to paint
-
-