Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.image.laf.browser
Class TabBarPainter

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

public class TabBarPainter
extends AbstractPainter
implements ImageConstants

Painter that renderers a TabBar given various properties in the PaintContext. Clients should pass in these properties using the KEY constants.

At a minimum clients should supply an array of Tab objects using the TABS_KEY constant and the selected index using the SELECTED_INDEX_KEY constant.

Image map area information is returned via the IMAGE_MAP_AREAS_RESPONSE_KEY.

See Also:
Tab

Fields inherited from interface oracle.cabo.image.ImageConstants
ACCESS_KEY_KEY, BACKGROUND_KEY, BORDER_COLOR_KEY, BUTTON_NAME, COLORIZED_ICON_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, 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, WIDTH_RESPONSE_KEY
 
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
TabBarPainter()
           
 
Method Summary
static java.awt.Color getDefaultBackground(ImageContext context, boolean disabled, boolean selected)
           
static FontProxy getDefaultFont(boolean disabled, boolean selected)
           
static java.awt.Color getDefaultForeground(ImageContext context, boolean disabled, boolean selected)
           
 java.awt.Dimension getMinimumSize(PaintContext context)
          Painter Interface: get the size of the tab bar.
 void paint(PaintContext context, java.awt.Graphics g, int x, int y, int width, int height)
          Painter interface: paint the tab bar.
 
Methods inherited from class oracle.cabo.image.painter.AbstractPainter
contains, getData, getDataKey, getInvalidateFlags, getMaximumSize, getPainterAt, getPreferredSize, getRepaintFlags, getSize, isTransparent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabBarPainter

public TabBarPainter()
Method Detail

getDefaultBackground

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

getDefaultForeground

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

getDefaultFont

public static FontProxy getDefaultFont(boolean disabled,
                                       boolean selected)

getMinimumSize

public java.awt.Dimension getMinimumSize(PaintContext context)
Painter Interface: get the size of the tab bar.
Following copied from interface: oracle.cabo.image.painter.Painter
Parameters:
context - Context for determining the minimum size.

Returns:
The minimum size of the Painter.

paint

public void paint(PaintContext context,
                  java.awt.Graphics g,
                  int x,
                  int y,
                  int width,
                  int height)
Painter interface: paint the tab bar.
Following copied from interface: oracle.cabo.image.painter.Painter
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.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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