Class LayerDrawEvent

java.lang.Object
org.gvsig.fmap.mapcontext.events.FMapEventBase
org.gvsig.fmap.mapcontext.layers.LayerDrawEvent
All Implemented Interfaces:
FMapEvent

public class LayerDrawEvent extends FMapEventBase

The LayerDrawEvent class represents an event produced on a layer about a drawing change.

This event can be a notification before or after a FLayer, FLayers, or GraphicLayer is drawn.

  • Field Details

    • LAYER_BEFORE_DRAW

      public static final int LAYER_BEFORE_DRAW
      Public constant that identifies the kind of LayerDrawEvent as an event produced before drawing on a FLayer or FLayers.
      See Also:
    • LAYER_AFTER_DRAW

      public static final int LAYER_AFTER_DRAW
      Public constant that identifies the kind of LayerDrawEvent as an event produced after drawing on a FLayer or FLayers.
      See Also:
    • GRAPHICLAYER_BEFORE_DRAW

      public static final int GRAPHICLAYER_BEFORE_DRAW
      Public constant that identifies the kind of LayerDrawEvent as an event produced before drawing on a GraphicLayer.
      See Also:
    • GRAPHICLAYER_AFTER_DRAW

      public static final int GRAPHICLAYER_AFTER_DRAW
      Public constant that identifies the kind of LayerDrawEvent as an event produced after drawing on a GraphicLayer.
      See Also:
  • Constructor Details

  • Method Details

    • getGraphics

      public Graphics2D getGraphics()

      Returns an object for rendering 2-dimensional shapes, text and images on the Java(tm) platform.

      Returns:
      object for rendering 2D on the Java(tm) platform
    • getViewPort

      public ViewPort getViewPort()

      Returns the view port the information for drawing the layer in which this event has been produced.

      Returns:
      object with information for drawing the layer in which this event has been produced
    • getLayer

      public FLayer getLayer()

      Returns a reference to the layer where this event has been produced.

      Returns:
      layer in which this event has been produced