UIX 2.2.16

oracle.cabo.image.laf.browser
Class CompositeButtonPainter

java.lang.Object
  |
  +--oracle.cabo.image.painter.AbstractPainter
        |
        +--oracle.cabo.image.painter.AbstractWrappingPainter
              |
              +--oracle.cabo.image.painter.AbstractBorderPainter
                    |
                    +--oracle.cabo.image.laf.browser.CompositeButtonPainter
All Implemented Interfaces:
BorderPainter, ImageConstants, Painter

public class CompositeButtonPainter
extends AbstractBorderPainter
implements ImageConstants

Painter used to paint composite button objects with the correct Oracle Look and Feel. The values of the following keys from the ImageConstants interface affect how the button is rendered:


Fields inherited from interface oracle.cabo.image.ImageConstants
ACCESS_KEY_KEY, BACKGROUND_KEY, BORDER_COLOR_KEY, BUTTON_BOTTOM_BACKGROUND_ICON_KEY, BUTTON_END_ICON_KEY, BUTTON_NAME, BUTTON_START_ICON_KEY, BUTTON_TOP_BACKGROUND_ICON_KEY, COLORIZED_ICON_NAME, COMPOSITE_BUTTON_NAME, DARK_ACCENT_COLOR_KEY, DARK_COLOR_KEY, DIRECTION_KEY, DISABLED_BACKGROUND_KEY, DISABLED_FONT_KEY, DISABLED_FOREGROUND_KEY, DISABLED_KEY, ENCODING_TYPE_KEY, END_ROUNDED_KEY, FLIPPED_ICON_NAME, FONT_KEY, FOREGROUND_KEY, GLOBAL_BUTTON_NAME, HEIGHT_RESPONSE_KEY, IMAGE_MAP_AREAS_RESPONSE_KEY, IMAGE_PROVIDER_PROPERTY, IMAGE_TYPE_MANAGER_PROPERTY, LAF_KEY, LOOK_AND_FEEL_ID_KEY, NAME_KEY, SELECTED_BACKGROUND_KEY, SELECTED_FONT_KEY, SELECTED_FOREGROUND_KEY, SELECTED_INDEX_KEY, SELECTED_KEY, SERVLET_URL_PROPERTY, SOURCE_INPUT_STREAM_PROVIDER_KEY, SOURCE_KEY, START_ROUNDED_KEY, SURROUNDING_COLOR_KEY, TAB_BAR_NAME, TABS_KEY, TECATE_NAMESPACE, TEXT_ANTIALIAS_KEY, TEXT_KEY, VERSION_KEY, WIDTH_RESPONSE_KEY
 
Constructor Summary
CompositeButtonPainter()
          Creates an CompositeButtonPainter.
 
Method Summary
static java.awt.Color getDefaultBackground(ImageContext context, boolean disabled)
           
static FontProxy getDefaultFont()
           
static java.awt.Color getDefaultForeground(ImageContext context, boolean disabled)
           
protected  ImmInsets getOwnInsets(PaintContext context)
          Returns the insets of just this BorderPainter, as opposed to the entire nested stack of BorderPainters like getInsets does.
protected  void paintBorder(PaintContext context, java.awt.Graphics g, int x, int y, int width, int height)
          Paint just the border of the BorderPainter.
 
Methods inherited from class oracle.cabo.image.painter.AbstractBorderPainter
getFillInsets, getInsets, getMinimumSize, getOwnFillInsets, getPreferredSize, paint
 
Methods inherited from class oracle.cabo.image.painter.AbstractWrappingPainter
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

CompositeButtonPainter

public CompositeButtonPainter()
Creates an CompositeButtonPainter.
Method Detail

getOwnInsets

protected ImmInsets getOwnInsets(PaintContext context)
Description copied from class: AbstractBorderPainter
Returns the insets of just this BorderPainter, as opposed to the entire nested stack of BorderPainters like getInsets does.

Overrides:
getOwnInsets in class AbstractBorderPainter
Following copied from class: oracle.cabo.image.painter.AbstractBorderPainter
Parameters:
context - PaintContext to use when getting our own Insets

Returns:
The insets of just this BorderPainter.

See Also:
AbstractBorderPainter.getInsets(oracle.cabo.image.painter.PaintContext)

paintBorder

protected void paintBorder(PaintContext context,
                           java.awt.Graphics g,
                           int x,
                           int y,
                           int width,
                           int height)
Description copied from class: AbstractBorderPainter
Paint just the border of the BorderPainter. Subclasses should override this method rather than paint when modifying the manner in which the border is painted

Painters that modify the Graphics context are responsible for returning it to its initial state when done painting. Further Painters that paint outside the bounds of x, y, width, and height or inside the area inset by their insets are responsible for clipping themselves.

Overrides:
paintBorder in class AbstractBorderPainter
Following copied from class: oracle.cabo.image.painter.AbstractBorderPainter
Parameters:
context - PaintContext to use when painting the Border
g - Graphics context to use when painting
x - x coordinate to begin painting at
y - y coordinate to begin painting at
width - width of area to paint
height - height of area to paint

Returns:
The insets of just this BorderPainter.

See Also:
AbstractBorderPainter.paint(oracle.cabo.image.painter.PaintContext, java.awt.Graphics, int, int, int, int)

getDefaultForeground

public static java.awt.Color getDefaultForeground(ImageContext context,
                                                  boolean disabled)

getDefaultBackground

public static java.awt.Color getDefaultBackground(ImageContext context,
                                                  boolean disabled)

getDefaultFont

public static FontProxy getDefaultFont()

UIX 2.2.16