public class GraphicsRef
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.awt.image.BufferedImage |
baseOffImage
An image used for double buffering.
|
Rectangle |
clip
The current clip bounds.
|
Rectangle |
dcRegion
The current region being drawn.
|
java.awt.Graphics |
g
The Graphics object wrapped by this object.
|
java.awt.image.BufferedImage |
offImage |
ViewState |
state |
ViewOverlay |
viewOverlay |
| Constructor and Description |
|---|
GraphicsRef()
Creates a new GraphicsRef object.
|
GraphicsRef(java.awt.image.BufferedImage offImage,
java.awt.image.BufferedImage baseOffImage)
Creates a new GraphicsRef object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
release()
Frees buffered images used by this GraphicsRef object and releases
StyleUtil instance associated with it.
|
public java.awt.image.BufferedImage offImage
public ViewOverlay viewOverlay
public ViewState state
public java.awt.image.BufferedImage baseOffImage
public java.awt.Graphics g
public Rectangle dcRegion
public Rectangle clip
public GraphicsRef()
public GraphicsRef(java.awt.image.BufferedImage offImage,
java.awt.image.BufferedImage baseOffImage)
component - any Component object can be used here.
However, a View's instance is usually used.offImage - a reference to the View's offImage.