Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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.


Fields inherited from interface oracle.cabo.image.painter.Painter
STATE_ACTIVE_CHANGED, STATE_ARMED_CHANGED, STATE_BACKGROUND_CHANGED, STATE_ENABLED_CHANGED, STATE_FOCUSED_CHANGED, STATE_FONT_CHANGED, STATE_FOREGROUND_CHANGED, STATE_ISDEFAULT_CHANGED, STATE_MOUSE_OVER_CHANGED, STATE_READING_DIRECTION_CHANGED, STATE_SELECTED_CHANGED, STATE_SET_CHANGED, STATE_SIZE_CHANGED, STATE_XALIGNMENT_CHANGED, STATE_YALIGNMENT_CHANGED
 
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
getInvalidateFlags, getMaximumSize, getMinimumSize, getPainterAt, getPreferredSize, getRepaintFlags, getSize, getWrappedPainter, isTransparent
 
Methods inherited from class oracle.cabo.image.painter.AbstractPainter
contains, 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)

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.