Package com.kheops.jmap.client.views
Class GraphicsRef
java.lang.Object
com.kheops.jmap.client.views.GraphicsRef
This class is only used as a wrapper for a Graphics object.
-
Field Summary
Modifier and TypeFieldDescriptionAn image used for double buffering.The current clip bounds.The current region being drawn.The Graphics object wrapped by this object. -
Constructor Summary
ConstructorDescriptionCreates a new GraphicsRef object.GraphicsRef
(BufferedImage offImage, BufferedImage baseOffImage) Creates a new GraphicsRef object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
release()
Frees buffered images used by this GraphicsRef object and releases StyleUtil instance associated with it.
-
Field Details
-
offImage
-
viewOverlay
-
state
-
baseOffImage
An image used for double buffering. The baseOffImage contains the drawn VectorLayer elements but without the labels -
g
The Graphics object wrapped by this object. -
dcRegion
The current region being drawn. -
clip
The current clip bounds.
-
-
Constructor Details
-
GraphicsRef
public GraphicsRef()Creates a new GraphicsRef object. -
GraphicsRef
Creates a new GraphicsRef object.- Parameters:
offImage
- a reference to the View's offImage.component
- any Component object can be used here. However, a View's instance is usually used.
-
-
Method Details
-
release
public void release()Frees buffered images used by this GraphicsRef object and releases StyleUtil instance associated with it.
-