org.apache.myfaces.trinidadinternal.image.painter
Class ColorChange

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.image.painter.AbstractPainter
      extended by org.apache.myfaces.trinidadinternal.image.painter.AbstractWrappingPainter
          extended by org.apache.myfaces.trinidadinternal.image.painter.ColorChange
All Implemented Interfaces:
Painter

public abstract class ColorChange
extends AbstractWrappingPainter

Abstract baseclass for Painters that change the color of the graphics state passed to their wrapped painters.

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

Constructor Summary
ColorChange(Painter wrappedPainter)
           
 
Method Summary
protected abstract  java.awt.Color getColor(PaintContext context)
           
 void paint(PaintContext context, java.awt.Graphics g, int x, int y, int width, int height)
          Paints the text at the specified coordinates.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.image.painter.AbstractWrappingPainter
getMinimumSize, getPreferredSize, getWrappedPainter
 
Methods inherited from class org.apache.myfaces.trinidadinternal.image.painter.AbstractPainter
getData, getDataKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorChange

public ColorChange(Painter wrappedPainter)
Method Detail

paint

public void paint(PaintContext context,
                  java.awt.Graphics g,
                  int x,
                  int y,
                  int width,
                  int height)
Paints the text at the specified coordinates.

Specified by:
paint in interface Painter
Overrides:
paint in class AbstractWrappingPainter
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.

getColor

protected abstract java.awt.Color getColor(PaintContext context)


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