Package org.gvsig.fmap.mapcontext.layers
Class LayerDrawEvent
java.lang.Object
org.gvsig.fmap.mapcontext.events.FMapEventBase
org.gvsig.fmap.mapcontext.layers.LayerDrawEvent
- All Implemented Interfaces:
FMapEvent
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intPublic constant that identifies the kind ofLayerDrawEventas an event produced after drawing on aGraphicLayer.static final intPublic constant that identifies the kind ofLayerDrawEventas an event produced before drawing on aGraphicLayer.static final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionLayerDrawEvent(FLayer lyr, Graphics2D g, ViewPort vp, int eventType) Creates a new layer draw event with all necessary information. -
Method Summary
Modifier and TypeMethodDescriptionReturns an object for rendering 2-dimensional shapes, text and images on the Java(tm) platform.getLayer()Returns a reference to the layer where this event has been produced.Returns the view port the information for drawing the layer in which this event has been produced.Methods inherited from class org.gvsig.fmap.mapcontext.events.FMapEventBase
getEventType, setEventType
-
Field Details
-
LAYER_BEFORE_DRAW
public static final int LAYER_BEFORE_DRAWPublic constant that identifies the kind ofLayerDrawEventas an event produced before drawing on aFLayerorFLayers.- See Also:
-
LAYER_AFTER_DRAW
public static final int LAYER_AFTER_DRAWPublic constant that identifies the kind ofLayerDrawEventas an event produced after drawing on aFLayerorFLayers.- See Also:
-
GRAPHICLAYER_BEFORE_DRAW
public static final int GRAPHICLAYER_BEFORE_DRAWPublic constant that identifies the kind ofLayerDrawEventas an event produced before drawing on aGraphicLayer.- See Also:
-
GRAPHICLAYER_AFTER_DRAW
public static final int GRAPHICLAYER_AFTER_DRAWPublic constant that identifies the kind ofLayerDrawEventas an event produced after drawing on aGraphicLayer.- See Also:
-
-
Constructor Details
-
LayerDrawEvent
Creates a new layer draw event with all necessary information.
- Parameters:
lyr- layer in which the event has been producedg- object for rendering 2D on the Java(tm) platformvp- object with information for drawing the layer in which this event has been producedeventType- identifies the kind of this event: LAYER_BEFORE_DRAW, LAYER_AFTER_DRAW, GRAPHICLAYER_BEFORE_DRAW or GRAPHICLAYER_AFTER_DRAW.
-
-
Method Details
-
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
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
Returns a reference to the layer where this event has been produced.
- Returns:
- layer in which this event has been produced
-