org.apache.batik.gvt.event

Class GraphicsNodeEvent

public class GraphicsNodeEvent extends EventObject

A low-level event for GraphicsNode.
Field Summary
protected intid
The ID of this event.
Constructor Summary
GraphicsNodeEvent(GraphicsNode source, int id)
Constructs a new graphics node event with the specified source and ID.
Method Summary
voidconsume()
Consumes this event so that it will not be processed in the default manner by the source which originated it.
GraphicsNodegetGraphicsNode()
Returns the graphics node where the event is originated.
intgetID()
Returns the ID of this event.
booleanisConsumed()
Returns whether or not this event has been consumed.

Field Detail

id

protected int id
The ID of this event.

Constructor Detail

GraphicsNodeEvent

public GraphicsNodeEvent(GraphicsNode source, int id)
Constructs a new graphics node event with the specified source and ID.

Parameters: source the graphics node where the event originated id the id of this event

Method Detail

consume

public void consume()
Consumes this event so that it will not be processed in the default manner by the source which originated it.

getGraphicsNode

public GraphicsNode getGraphicsNode()
Returns the graphics node where the event is originated.

getID

public int getID()
Returns the ID of this event.

isConsumed

public boolean isConsumed()
Returns whether or not this event has been consumed.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.