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

pack-priv final Class MenuPainter

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
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

Method Summary

Modifier and TypeMethod and Description
private Path2D
private Path2D
private Rectangle2D
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 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
Inherited from javax.swing.plaf.nimbus.AbstractRegionPainter:
configureGraphicsdecodeAnchorXdecodeAnchorYdecodeColordecodeColordecodeGradientdecodeRadialGradientdecodeXdecodeYgetComponentColorgetExtendedCacheKeyspaint

Field Detail

ARROWICON_DISABLEDback to summary
pack-priv static final int ARROWICON_DISABLED
ARROWICON_ENABLEDback to summary
pack-priv static final int ARROWICON_ENABLED
ARROWICON_ENABLED_SELECTEDback to summary
pack-priv static final int ARROWICON_ENABLED_SELECTED
BACKGROUND_DISABLEDback to summary
pack-priv static final int BACKGROUND_DISABLED
BACKGROUND_ENABLEDback to summary
pack-priv static final int BACKGROUND_ENABLED
BACKGROUND_ENABLED_SELECTEDback to summary
pack-priv static final int BACKGROUND_ENABLED_SELECTED
color1back to summary
private Color color1
color2back to summary
private Color color2
color3back to summary
private Color color3
color4back to summary
private Color color4
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

Method Detail

decodePath1back to summary
private Path2D decodePath1()
decodePath2back to summary
private Path2D decodePath2()
decodeRect1back to summary
private Rectangle2D decodeRect1()
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
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
paintarrowIconDisabledback to summary
private void paintarrowIconDisabled(Graphics2D g)
paintarrowIconEnabledback to summary
private void paintarrowIconEnabled(Graphics2D g)
paintarrowIconEnabledAndSelectedback to summary
private void paintarrowIconEnabledAndSelected(Graphics2D g)
paintBackgroundEnabledAndSelectedback to summary
private void paintBackgroundEnabledAndSelected(Graphics2D g)