org.apache.myfaces.trinidadinternal.image.laf.browser
Class ButtonPainter
java.lang.Object
org.apache.myfaces.trinidadinternal.image.painter.AbstractPainter
org.apache.myfaces.trinidadinternal.image.painter.AbstractWrappingPainter
org.apache.myfaces.trinidadinternal.image.painter.AbstractBorderPainter
org.apache.myfaces.trinidadinternal.image.laf.browser.ButtonPainter
- All Implemented Interfaces:
- ImageConstants, BorderPainter, Painter
public class ButtonPainter
- extends AbstractBorderPainter
- implements ImageConstants
Painter used to paint action 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:
- TEXT_KEY
- FOREGROUND_KEY
- BACKGROUND_KEY
- FONT_KEY
- TEXT_ANTIALIAS_KEY
- DISABLED_KEY
- START_ROUNDED_KEY
- END_ROUNDED_KEY
- Version:
- $Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/image/laf/browser/ButtonPainter.java#0 $) $Date: 10-nov-2005.19:05:05 $
- Author:
- The Oracle ADF Faces Team
Fields inherited from interface org.apache.myfaces.trinidadinternal.image.ImageConstants |
ACCESS_KEY_KEY, BACKGROUND_KEY, BORDER_COLOR_KEY, BUTTON_BOTTOM_BACKGROUND_ICON_KEY, BUTTON_END_ICON_KEY, 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, HEIGHT_RESPONSE_KEY, IMAGE_MAP_AREAS_RESPONSE_KEY, IMAGE_PROVIDER_PROPERTY, LAF_KEY, LOOK_AND_FEEL_ID_KEY, NAME_KEY, SELECTED_BACKGROUND_KEY, SELECTED_FONT_KEY, SELECTED_FOREGROUND_KEY, SELECTED_KEY, SOURCE_INPUT_STREAM_PROVIDER_KEY, SOURCE_KEY, START_ROUNDED_KEY, SURROUNDING_COLOR_KEY, TABS_KEY, TECATE_NAMESPACE, TEXT_ANTIALIAS_KEY, TEXT_KEY, VERSION_KEY, WIDTH_RESPONSE_KEY |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ButtonPainter
public ButtonPainter()
- Creates an ButtonPainter.
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()
getDefaultBorderColor
public static java.awt.Color getDefaultBorderColor(ImageContext context,
boolean disabled)
getOwnInsets
protected ImmInsets getOwnInsets(PaintContext context)
- Returns the insets of just the ButtonPainter.
- Overrides:
getOwnInsets
in class AbstractBorderPainter
- Parameters:
context
- PaintContext to use when getting our own Insets
- Returns:
- The insets of just this BorderPainter.
- See Also:
AbstractBorderPainter.getInsets(org.apache.myfaces.trinidadinternal.image.painter.PaintContext)
paintBorder
protected void paintBorder(PaintContext context,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Paint just the border of the ButtonPainter.
- Overrides:
paintBorder
in class AbstractBorderPainter
- Parameters:
context
- PaintContext to use when painting the Borderg
- Graphics context to use when paintingx
- x coordinate to begin painting aty
- y coordinate to begin painting atwidth
- width of area to paintheight
- height of area to paint
- See Also:
AbstractBorderPainter.paint(org.apache.myfaces.trinidadinternal.image.painter.PaintContext, java.awt.Graphics, int, int, int, int)
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.