Class MapViewGraphics


  • public class MapViewGraphics
    extends java.lang.Object
    This class provides layers with access to drawing on the map view.

    It contains information about the state of the map view.

    In the future, it may add support for parallel drawing or layer caching.

    It is intended to be used during MapView.paint(java.awt.Graphics)

    Since:
    10458
    • Constructor Detail

      • MapViewGraphics

        public MapViewGraphics​(MapView mapView,
                               java.awt.Graphics2D graphics,
                               MapViewState.MapViewRectangle clipBounds)
        Constructs a new MapViewGraphics.
        Parameters:
        mapView - map view
        graphics - default graphics
        clipBounds - clip bounds for this graphics instance
    • Method Detail

      • getDefaultGraphics

        public java.awt.Graphics2D getDefaultGraphics()
        Gets the Graphics2D you should use to paint on this graphics object. It may already have some data painted on it. You should paint your layer data on this graphics.
        Returns:
        The Graphics2D instance.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object