API / geotoolkit / controls / tools / EventArgs / EventArgs
Native event wrapper class.
↳
EventArgs
Methods
Constructors
• new EventArgs(eventName, nativeEventArgs?, plotPoint?, node?, plot?)
| Name | Type | Description |
|---|---|---|
eventName | string | name of the event |
Optional nativeEventArgs | Event | arguments of the DOM event |
Optional plotPoint | Point | position of the mouse inside the plot |
Optional node | Node | owner of the event |
Optional plot | Plot | plot which renders nodes |
BaseEventArgs.constructor
Methods
▸ getCSSPoint(): Point
Returns point in css coordinates
▸ getEventName(): string
Returns event name
string
▸ getEventTarget(): EventTarget | Node
Returns native event target
EventTarget | Node
▸ getNativeEventArgs(): Event
Returns original event args
Event
▸ getNode(): Node
Returns node on the plot
▸ getPlot(): Plot
Returns plot
plot
▸ getPlotPoint(): Point
Returns point in plot coordinate
▸ inPlot(): boolean
Returns whether event position is inside of plot
boolean
▸ isCanceled(): boolean
Returns whether event has been cancelled
boolean
▸ isPreventDefault(): boolean
Returns whether event has been prevented default
boolean
BaseEventArgs.isPreventDefault
▸ preventDefault(): EventArgs
Prevents default
this
▸ stopPropagation(preventDefault?, stopPropagation?): EventArgs
Cancels event processing
| Name | Type | Description |
|---|---|---|
Optional preventDefault | boolean | prevent default system events |
Optional stopPropagation | boolean | stop propagation to next listener |
this