Class GraphicsRef

java.lang.Object
com.kheops.jmap.client.views.GraphicsRef

public class GraphicsRef extends Object
This class is only used as a wrapper for a Graphics object.
  • Field Details

    • offImage

      public BufferedImage offImage
    • viewOverlay

      public ViewOverlay viewOverlay
    • state

      public ViewState state
    • baseOffImage

      public BufferedImage baseOffImage
      An image used for double buffering. The baseOffImage contains the drawn VectorLayer elements but without the labels
    • g

      public Graphics g
      The Graphics object wrapped by this object.
    • dcRegion

      public Rectangle dcRegion
      The current region being drawn.
    • clip

      public Rectangle clip
      The current clip bounds.
  • Constructor Details

    • GraphicsRef

      public GraphicsRef()
      Creates a new GraphicsRef object.
    • GraphicsRef

      public GraphicsRef(BufferedImage offImage, BufferedImage baseOffImage)
      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.