UIX 2.2.8

oracle.cabo.image.painter
Class ColorChange

java.lang.Object
  |
  +--oracle.cabo.image.painter.AbstractPainter
        |
        +--oracle.cabo.image.painter.AbstractWrappingPainter
              |
              +--oracle.cabo.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.


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 oracle.cabo.image.painter.AbstractWrappingPainter
getMinimumSize, getPreferredSize, getWrappedPainter
 
Methods inherited from class oracle.cabo.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.
Overrides:
paint in class AbstractWrappingPainter
Following copied from class: oracle.cabo.image.painter.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)

UIX 2.2.8