Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.image.painter
Class PaintContextProxy

java.lang.Object
  |
  +--oracle.cabo.image.painter.PaintContextProxy
All Implemented Interfaces:
PaintContext

public abstract class PaintContextProxy
extends java.lang.Object
implements PaintContext

PaintContext that delegates all PaintContext calls to the PaintContext returned by the abstract method getPaintContext(). This class is used in situations where an Object already has a PaintCOntext but wishes to override a few of that PaintContext's methods.

See Also:
getPaintContext(), PaintContext

Fields inherited from interface oracle.cabo.image.painter.PaintContext
ICON_KEY, IMAGE_KEY, IMAGESET_KEY, LABEL_KEY, MNEMONIC_INDEX_KEY, STATE_ARMED, STATE_BACKGROUND_NOT_FILLED, STATE_DISABLED, STATE_FOCUSED, STATE_INACTIVE, STATE_ISDEFAULT, STATE_MOUSE_OVER, STATE_SELECTED, STATE_SET
 
Constructor Summary
PaintContextProxy()
          Create a PaintContextProxy.
 
Method Summary
 java.awt.FontMetrics getFontMetrics(java.awt.Font font)
          Returns a font metrics object for the specified font.
 ImageContext getImageContext()
          Returns the color scheme to used when painting in this PaintContext.
 java.awt.image.ImageObserver getImageObserver()
          Returns an image observer object that can be used to monitor progress in loading images.
 float getInteriorAlignmentX()
          Returns the horizontal interior alignment of the PaintContext.
 float getInteriorAlignmentY()
          Returns the vertical interior alignment of the PaintContext.
 java.awt.Color getPaintBackground()
          Returns the background color of the PaintContext.
protected abstract  PaintContext getPaintContext()
          Subclasses should override this method to return the PaintContext that the PaintContextProxy will delegate to.
 java.lang.Object getPaintData(java.lang.Object key)
          Returns the data Object for the specified key.
 java.awt.Font getPaintFont()
          Returns the font of the PaintContext.
 java.awt.Color getPaintForeground()
          Returns the foreground color of the PaintContext.
 java.awt.Graphics getPaintGraphics()
           
 java.util.Locale getPaintLocale()
          Returns the Locale of the PaintContext.
 int getPaintState()
          Returns a mask for the current state.
 int getReadingDirection()
          Returns the reading direction of the PaintContext.
 java.awt.Color getSurroundingColor()
          Returns the color surrounding the Object to be painted with the PaintContext.
 void setResponseProperty(java.lang.Object key, java.lang.Object value)
          Sets a property on the response dictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaintContextProxy

public PaintContextProxy()
Create a PaintContextProxy.
Method Detail

setResponseProperty

public void setResponseProperty(java.lang.Object key,
                                java.lang.Object value)
Sets a property on the response dictionary
Specified by:
setResponseProperty in interface PaintContext

getPaintGraphics

public java.awt.Graphics getPaintGraphics()
Specified by:
getPaintGraphics in interface PaintContext

getPaintState

public int getPaintState()
Returns a mask for the current state.

Specified by:
getPaintState in interface PaintContext
Returns:
A bitmask indicating the current state of the PaintContext.

getImageContext

public ImageContext getImageContext()
Returns the color scheme to used when painting in this PaintContext.

Specified by:
getImageContext in interface PaintContext
Returns:
the color scheme to use.

getPaintForeground

public java.awt.Color getPaintForeground()
Returns the foreground color of the PaintContext.

Specified by:
getPaintForeground in interface PaintContext
Returns:
The foreground color of the PaintContext.

getPaintBackground

public java.awt.Color getPaintBackground()
Returns the background color of the PaintContext.

Specified by:
getPaintBackground in interface PaintContext
Returns:
The background color of the PaintContext.

getSurroundingColor

public java.awt.Color getSurroundingColor()
Returns the color surrounding the Object to be painted with the PaintContext. This color is typically used to determine the UIDefaults object to associate with the Object painted with

Specified by:
getSurroundingColor in interface PaintContext
Returns:
The Color surrounding the Object to be painted.

getPaintFont

public java.awt.Font getPaintFont()
Returns the font of the PaintContext.

Specified by:
getPaintFont in interface PaintContext
Returns:
The Font of the PaintContext.

getFontMetrics

public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
Returns a font metrics object for the specified font.

Specified by:
getFontMetrics in interface PaintContext
Parameters:
font - Font object to return FontMetrics of.

Returns:
The FontMetrics of the specified Font.

getImageObserver

public java.awt.image.ImageObserver getImageObserver()
Returns an image observer object that can be used to monitor progress in loading images.

Specified by:
getImageObserver in interface PaintContext
Returns:
The ImageObserver of the PaintContext.

getPaintLocale

public java.util.Locale getPaintLocale()
Returns the Locale of the PaintContext.

Specified by:
getPaintLocale in interface PaintContext
Returns:
The Locale of the PaintContext.

getPaintData

public java.lang.Object getPaintData(java.lang.Object key)
Returns the data Object for the specified key.

Specified by:
getPaintData in interface PaintContext
Parameters:
key - The key specifying which data Object the PaintContext should return.

Returns:
The data Object specified by key or null if no Object for that key is supported.

getInteriorAlignmentX

public float getInteriorAlignmentX()
Returns the horizontal interior alignment of the PaintContext.

Specified by:
getInteriorAlignmentX in interface PaintContext
Returns:
The horizontal interior alignment of the PaintContext as a floating point number where 0.0 should be interpreted as left aligned, 0.5 as center aligned, and 1.0 as right aligned.

getInteriorAlignmentY

public float getInteriorAlignmentY()
Returns the vertical interior alignment of the PaintContext.

Specified by:
getInteriorAlignmentY in interface PaintContext
Returns:
The vertical interior alignment of the PaintContext as a floating point number where 0.0 should be interpreted as top aligned, 0.5 as center aligned, and 1.0 as bottom aligned.

getReadingDirection

public int getReadingDirection()
Description copied from interface: PaintContext
Returns the reading direction of the PaintContext.

Specified by:
getReadingDirection in interface PaintContext
Following copied from interface: oracle.cabo.image.painter.PaintContext
Returns:
The reading direction of the PaintContext.

See Also:
LocaleUtils

getPaintContext

protected abstract PaintContext getPaintContext()
Subclasses should override this method to return the PaintContext that the PaintContextProxy will delegate to.

Returns:
The PaintContext that the PaintContextProxy will delegate to.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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