Modifier and Type | Field 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 Color | |
private Color | |
private Color | |
private Color | |
private Color | |
private Color | |
private Color | |
private Color | |
private Color | |
private Object[] | |
private AbstractRegionPainter. | |
private Ellipse2D | |
private Path2D | |
private Rectangle2D | |
private RoundRectangle2D | |
private int |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private Paint | |
private Paint | |
private Paint | |
private Path2D | |
private RoundRectangle2D | |
private RoundRectangle2D | |
private RoundRectangle2D | |
private RoundRectangle2D | |
protected void | doPaint(Graphics2D
The Graphics2D surface to paint to g, JComponent The JComponent related to the drawing event. For example, if the
region being rendered is Button, then c, int c will be a
JButton. If the region being drawn is ScrollBarSlider, then the
component will be JScrollBar. This value may be null.The width of the region to paint. Note that in the case of
painting the foreground, this value may differ from c.getWidth(). width, int The height of the region to paint. Note that in the case of
painting the foreground, this value may differ from c.getHeight(). height, Object[] The result of the call to getExtendedCacheKeys() extendedCacheKeys)Implements abstract javax. |
protected final AbstractRegionPainter. | getPaintContext()
Implements abstract javax. Gets the PaintContext for this painting operation. |
private void | |
private void | |
private void | |
private void | |
private void |
BACKGROUND_ENABLED | back to summary |
---|---|
pack-priv static final int BACKGROUND_ENABLED |
BACKGROUND_FOCUSED | back to summary |
---|---|
pack-priv static final int BACKGROUND_FOCUSED |
BACKGROUND_MOUSEOVER | back to summary |
---|---|
pack-priv static final int BACKGROUND_MOUSEOVER |
BACKGROUND_MOUSEOVER_FOCUSED | back to summary |
---|---|
pack-priv static final int BACKGROUND_MOUSEOVER_FOCUSED |
BACKGROUND_PRESSED | back to summary |
---|---|
pack-priv static final int BACKGROUND_PRESSED |
BACKGROUND_PRESSED_FOCUSED | back to summary |
---|---|
pack-priv static final int BACKGROUND_PRESSED_FOCUSED |
color1 | back to summary |
---|---|
private Color color1 |
color10 | back to summary |
---|---|
private Color color10 |
color11 | back to summary |
---|---|
private Color color11 |
color12 | back to summary |
---|---|
private Color color12 |
color13 | back to summary |
---|---|
private Color color13 |
color2 | back to summary |
---|---|
private Color color2 |
color3 | back to summary |
---|---|
private Color color3 |
color4 | back to summary |
---|---|
private Color color4 |
color5 | back to summary |
---|---|
private Color color5 |
color6 | back to summary |
---|---|
private Color color6 |
color7 | back to summary |
---|---|
private Color color7 |
color8 | back to summary |
---|---|
private Color color8 |
color9 | back to summary |
---|---|
private Color color9 |
componentColors | back to summary |
---|---|
private Object[] componentColors |
ctx | back to summary |
---|---|
private AbstractRegionPainter. |
ellipse | back to summary |
---|---|
private Ellipse2D ellipse |
path | back to summary |
---|---|
private Path2D path |
rect | back to summary |
---|---|
private Rectangle2D rect |
roundRect | back to summary |
---|---|
private RoundRectangle2D roundRect |
state | back to summary |
---|---|
private int state |
ToolBarButtonPainter | back to summary |
---|---|
public ToolBarButtonPainter(AbstractRegionPainter. |
decodeGradient1 | back to summary |
---|---|
private Paint decodeGradient1(Shape s) |
decodeGradient2 | back to summary |
---|---|
private Paint decodeGradient2(Shape s) |
decodeGradient3 | back to summary |
---|---|
private Paint decodeGradient3(Shape s) |
decodePath1 | back to summary |
---|---|
private Path2D decodePath1() |
decodeRoundRect1 | back to summary |
---|---|
private RoundRectangle2D decodeRoundRect1() |
decodeRoundRect2 | back to summary |
---|---|
private RoundRectangle2D decodeRoundRect2() |
decodeRoundRect3 | back to summary |
---|---|
private RoundRectangle2D decodeRoundRect3() |
decodeRoundRect4 | back to summary |
---|---|
private RoundRectangle2D decodeRoundRect4() |
doPaint | back to summary |
---|---|
protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) Implements abstract javax. Doc from javax. 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
|
getPaintContext | back to summary |
---|---|
protected final AbstractRegionPainter. Implements abstract javax. Doc from javax. 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.
|
paintBackgroundFocused | back to summary |
---|---|
private void paintBackgroundFocused(Graphics2D g) |
paintBackgroundMouseOver | back to summary |
---|---|
private void paintBackgroundMouseOver(Graphics2D g) |
paintBackgroundMouseOverAndFocused | back to summary |
---|---|
private void paintBackgroundMouseOverAndFocused(Graphics2D g) |
paintBackgroundPressed | back to summary |
---|---|
private void paintBackgroundPressed(Graphics2D g) |
paintBackgroundPressedAndFocused | back to summary |
---|---|
private void paintBackgroundPressedAndFocused(Graphics2D g) |