Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.image.painter
Class BooleanDataSwitcher

java.lang.Object
  |
  +--oracle.cabo.image.painter.AbstractPainter
        |
        +--oracle.cabo.image.painter.AbstractWrappingPainter
              |
              +--oracle.cabo.image.painter.AbstractPainterSwitcher
                    |
                    +--oracle.cabo.image.painter.BooleanDataSwitcher
All Implemented Interfaces:
Painter

public class BooleanDataSwitcher
extends AbstractPainterSwitcher

Switches between two painters depending on the value of some boolean paint data.


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
BooleanDataSwitcher(Painter truePainter, Painter falsePainter, java.lang.Object key)
           
 
Method Summary
protected  boolean useTruePainter(PaintContext context)
          Returns true if the true painter should be used.
 
Methods inherited from class oracle.cabo.image.painter.AbstractPainterSwitcher
getWrappedPainter
 
Methods inherited from class oracle.cabo.image.painter.AbstractWrappingPainter
getInvalidateFlags, getMaximumSize, getMinimumSize, getPainterAt, getPreferredSize, getRepaintFlags, getSize, isTransparent, paint
 
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

BooleanDataSwitcher

public BooleanDataSwitcher(Painter truePainter,
                           Painter falsePainter,
                           java.lang.Object key)
Method Detail

useTruePainter

protected boolean useTruePainter(PaintContext context)
Description copied from class: AbstractPainterSwitcher
Returns true if the true painter should be used. False if the false painter should be used.
Overrides:
useTruePainter in class AbstractPainterSwitcher

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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