UIX 2.2.16

oracle.cabo.image.painter
Interface Painter

All Known Subinterfaces:
BorderPainter
All Known Implementing Classes:
AbstractPainter

public interface Painter

Interface implemented by objects that paint something.


Method Summary
 java.awt.Dimension getMinimumSize(PaintContext context)
          Returns the minimum size of the painter.
 java.awt.Dimension getPreferredSize(PaintContext context)
          Returns the preferred size of the painter.
 void paint(PaintContext context, java.awt.Graphics g, int x, int y, int width, int height)
          Paints the Painter at the given location.
 

Method Detail

getPreferredSize

public java.awt.Dimension getPreferredSize(PaintContext context)
Returns the preferred size of the painter.

Parameters:
context - Context for determining the preferred size.

Returns:
The preferred size of the Painter.

getMinimumSize

public java.awt.Dimension getMinimumSize(PaintContext context)
Returns the minimum size of the painter.

Parameters:
context - Context for determining the minimum size.

Returns:
The minimum size of the Painter.

paint

public void paint(PaintContext context,
                  java.awt.Graphics g,
                  int x,
                  int y,
                  int width,
                  int height)
Paints the Painter at the given location.

Parameters:
context - Context for painting.
g - Graphics object to draw into.
x - X position to draw at.
y - Y position to draw at.
width - Width to draw into.
height - Height to draw into.

UIX 2.2.16