Modifier and Type | Field and Description |
---|---|
private static final int | |
private static final int |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
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 AbstractRegionPainter. | getPaintContext()
Implements abstract javax. Gets the PaintContext for this painting operation. |
INSET | back to summary |
---|---|
private static final int INSET |
SPACE | back to summary |
---|---|
private static final int SPACE |
ToolBarSeparatorPainter | back to summary |
---|---|
pack-priv ToolBarSeparatorPainter() |
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 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.
|