APIdia Launch Partner
Top Fields Constructors Methods
javax.swing.plaf.nimbus

pack-priv final Class ButtonPainter

extends AbstractRegionPainter
Class Inheritance
Imports
java.awt.*, java.awt.geom.*, java.awt.image.*, javax.swing.*, .Painter

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Color
private Object[]
private AbstractRegionPainter.PaintContext
private Ellipse2D
private Path2D
private Rectangle2D
private RoundRectangle2D
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Paint
private Paint
private Paint
private Paint
private Paint
private Paint
private Paint
private Paint
private Paint
private Paint
private Paint
private RoundRectangle2D
private RoundRectangle2D
private RoundRectangle2D
private RoundRectangle2D
private RoundRectangle2D
protected void
doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys)

Implements abstract javax.swing.plaf.nimbus.AbstractRegionPainter.doPaint.

Actually performs the painting operation.

protected Object[]
getExtendedCacheKeys(JComponent c)

Overrides javax.swing.plaf.nimbus.AbstractRegionPainter.getExtendedCacheKeys.

Get any extra attributes which the painter implementation would like to include in the image cache lookups.

protected final AbstractRegionPainter.PaintContext
getPaintContext()

Implements abstract javax.swing.plaf.nimbus.AbstractRegionPainter.getPaintContext.

Gets the PaintContext for this painting operation.

private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
Inherited from javax.swing.plaf.nimbus.AbstractRegionPainter:
configureGraphicsdecodeAnchorXdecodeAnchorYdecodeColordecodeColordecodeGradientdecodeRadialGradientdecodeXdecodeYgetComponentColorpaint

Field Detail

BACKGROUND_DEFAULTback to summary
pack-priv static final int BACKGROUND_DEFAULT
BACKGROUND_DEFAULT_FOCUSEDback to summary
pack-priv static final int BACKGROUND_DEFAULT_FOCUSED
BACKGROUND_DISABLEDback to summary
pack-priv static final int BACKGROUND_DISABLED
BACKGROUND_ENABLEDback to summary
pack-priv static final int BACKGROUND_ENABLED
BACKGROUND_FOCUSEDback to summary
pack-priv static final int BACKGROUND_FOCUSED
BACKGROUND_MOUSEOVERback to summary
pack-priv static final int BACKGROUND_MOUSEOVER
BACKGROUND_MOUSEOVER_DEFAULTback to summary
pack-priv static final int BACKGROUND_MOUSEOVER_DEFAULT
BACKGROUND_MOUSEOVER_DEFAULT_FOCUSEDback to summary
pack-priv static final int BACKGROUND_MOUSEOVER_DEFAULT_FOCUSED
BACKGROUND_MOUSEOVER_FOCUSEDback to summary
pack-priv static final int BACKGROUND_MOUSEOVER_FOCUSED
BACKGROUND_PRESSEDback to summary
pack-priv static final int BACKGROUND_PRESSED
BACKGROUND_PRESSED_DEFAULTback to summary
pack-priv static final int BACKGROUND_PRESSED_DEFAULT
BACKGROUND_PRESSED_DEFAULT_FOCUSEDback to summary
pack-priv static final int BACKGROUND_PRESSED_DEFAULT_FOCUSED
BACKGROUND_PRESSED_FOCUSEDback to summary
pack-priv static final int BACKGROUND_PRESSED_FOCUSED
color1back to summary
private Color color1
color10back to summary
private Color color10
color11back to summary
private Color color11
color12back to summary
private Color color12
color13back to summary
private Color color13
color14back to summary
private Color color14
color15back to summary
private Color color15
color16back to summary
private Color color16
color17back to summary
private Color color17
color18back to summary
private Color color18
color19back to summary
private Color color19
color2back to summary
private Color color2
color20back to summary
private Color color20
color21back to summary
private Color color21
color22back to summary
private Color color22
color23back to summary
private Color color23
color24back to summary
private Color color24
color25back to summary
private Color color25
color26back to summary
private Color color26
color27back to summary
private Color color27
color28back to summary
private Color color28
color29back to summary
private Color color29
color3back to summary
private Color color3
color30back to summary
private Color color30
color31back to summary
private Color color31
color32back to summary
private Color color32
color33back to summary
private Color color33
color34back to summary
private Color color34
color35back to summary
private Color color35
color36back to summary
private Color color36
color37back to summary
private Color color37
color38back to summary
private Color color38
color39back to summary
private Color color39
color4back to summary
private Color color4
color40back to summary
private Color color40
color41back to summary
private Color color41
color42back to summary
private Color color42
color43back to summary
private Color color43
color44back to summary
private Color color44
color45back to summary
private Color color45
color46back to summary
private Color color46
color47back to summary
private Color color47
color48back to summary
private Color color48
color49back to summary
private Color color49
color5back to summary
private Color color5
color50back to summary
private Color color50
color51back to summary
private Color color51
color6back to summary
private Color color6
color7back to summary
private Color color7
color8back to summary
private Color color8
color9back to summary
private Color color9
componentColorsback to summary
private Object[] componentColors
ctxback to summary
private AbstractRegionPainter.PaintContext ctx

Hides javax.swing.plaf.nimbus.AbstractRegionPainter.ctx.

ellipseback to summary
private Ellipse2D ellipse
pathback to summary
private Path2D path
rectback to summary
private Rectangle2D rect
roundRectback to summary
private RoundRectangle2D roundRect
stateback to summary
private int state

Constructor Detail

ButtonPainterback to summary
public ButtonPainter(AbstractRegionPainter.PaintContext ctx, int state)

Method Detail

decodeGradient1back to summary
private Paint decodeGradient1(Shape s)
decodeGradient10back to summary
private Paint decodeGradient10(Shape s)
decodeGradient11back to summary
private Paint decodeGradient11(Shape s)
decodeGradient2back to summary
private Paint decodeGradient2(Shape s)
decodeGradient3back to summary
private Paint decodeGradient3(Shape s)
decodeGradient4back to summary
private Paint decodeGradient4(Shape s)
decodeGradient5back to summary
private Paint decodeGradient5(Shape s)
decodeGradient6back to summary
private Paint decodeGradient6(Shape s)
decodeGradient7back to summary
private Paint decodeGradient7(Shape s)
decodeGradient8back to summary
private Paint decodeGradient8(Shape s)
decodeGradient9back to summary
private Paint decodeGradient9(Shape s)
decodeRoundRect1back to summary
private RoundRectangle2D decodeRoundRect1()
decodeRoundRect2back to summary
private RoundRectangle2D decodeRoundRect2()
decodeRoundRect3back to summary
private RoundRectangle2D decodeRoundRect3()
decodeRoundRect4back to summary
private RoundRectangle2D decodeRoundRect4()
decodeRoundRect5back to summary
private RoundRectangle2D decodeRoundRect5()
doPaintback to summary
protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys)

Implements abstract javax.swing.plaf.nimbus.AbstractRegionPainter.doPaint.

Doc from javax.swing.plaf.nimbus.AbstractRegionPainter.doPaint.

Actually performs the painting operation. Subclasses must implement this method. The graphics object passed may represent the actual surface being rendered to, or it may be an intermediate buffer. It has also been pre-translated. Simply render the component as if it were located at 0, 0 and had a width of width and a height of height. For performance reasons, you may want to read the clip from the Graphics2D object and only render within that space.

Annotations
@Override
getExtendedCacheKeysback to summary
protected Object[] getExtendedCacheKeys(JComponent c)

Overrides javax.swing.plaf.nimbus.AbstractRegionPainter.getExtendedCacheKeys.

Doc from javax.swing.plaf.nimbus.AbstractRegionPainter.getExtendedCacheKeys.

Get any extra attributes which the painter implementation would like to include in the image cache lookups. This is checked for every call of the paint(g, c, w, h) method.

getPaintContextback to summary
protected final AbstractRegionPainter.PaintContext getPaintContext()

Implements abstract javax.swing.plaf.nimbus.AbstractRegionPainter.getPaintContext.

Doc from javax.swing.plaf.nimbus.AbstractRegionPainter.getPaintContext.

Gets the PaintContext for this painting operation. This method is called on every paint, and so should be fast and produce no garbage. The PaintContext contains information such as cache hints. It also contains data necessary for decoding points at runtime, such as the stretching insets, the canvas size at which the encoded points were defined, and whether the stretching insets are inverted.

This method allows for subclasses to package the painting of different states with possibly different canvas sizes, etc, into one AbstractRegionPainter implementation.

Annotations
@Override
paintBackgroundDefaultback to summary
private void paintBackgroundDefault(Graphics2D g)
paintBackgroundDefaultAndFocusedback to summary
private void paintBackgroundDefaultAndFocused(Graphics2D g)
paintBackgroundDisabledback to summary
private void paintBackgroundDisabled(Graphics2D g)
paintBackgroundEnabledback to summary
private void paintBackgroundEnabled(Graphics2D g)
paintBackgroundFocusedback to summary
private void paintBackgroundFocused(Graphics2D g)
paintBackgroundMouseOverback to summary
private void paintBackgroundMouseOver(Graphics2D g)
paintBackgroundMouseOverAndDefaultback to summary
private void paintBackgroundMouseOverAndDefault(Graphics2D g)
paintBackgroundMouseOverAndDefaultAndFocusedback to summary
private void paintBackgroundMouseOverAndDefaultAndFocused(Graphics2D g)
paintBackgroundMouseOverAndFocusedback to summary
private void paintBackgroundMouseOverAndFocused(Graphics2D g)
paintBackgroundPressedback to summary
private void paintBackgroundPressed(Graphics2D g)
paintBackgroundPressedAndDefaultback to summary
private void paintBackgroundPressedAndDefault(Graphics2D g)
paintBackgroundPressedAndDefaultAndFocusedback to summary
private void paintBackgroundPressedAndDefaultAndFocused(Graphics2D g)
paintBackgroundPressedAndFocusedback to summary
private void paintBackgroundPressedAndFocused(Graphics2D g)