org.apache.myfaces.trinidadinternal.image.painter
Interface Painter

All Known Subinterfaces:
BorderPainter
All Known Implementing Classes:
AbstractBorderPainter, AbstractPainter, AbstractWrappingPainter, AdjustableBorderPainter, ButtonPainter, ColorChange, CompositeButtonPainter, NullPainter, OffscreenWrappingPainter, TextPainter

public interface Painter

Interface implemented by objects that paint something.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/image/painter/Painter.java#0 $) $Date: 10-nov-2005.19:05:02 $
Author:
The Oracle ADF Faces Team

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

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

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

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.


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.