dip.gui.map
Class DOMUIEventListener

java.lang.Object
  extended bydip.gui.map.DOMUIEventListener
All Implemented Interfaces:
org.w3c.dom.events.EventListener

public class DOMUIEventListener
extends java.lang.Object
implements org.w3c.dom.events.EventListener

Handles DOM UI Events, and dispatches the events (after some decoding) to the DOMUIEventHandler that is set.

Currently this handles Mouse and Key events in the MapPanel.


Field Summary
static short BUTTON_LEFT
          Left mouse button
static short BUTTON_MIDDLE
          Middle mouse button
static short BUTTON_RIGHT
          Right mouse button
 
Constructor Summary
DOMUIEventListener()
          Create a DOMUIEventListener
 
Method Summary
 void handleEvent(org.w3c.dom.events.Event evt)
          Handle Events; this method dispatches events to the appropriate DOMUIEventHandler methods.
 void setDOMUIEventHandler(DOMUIEventHandler handler)
          Define the (single) object that will receive DOM UI events.
 void setMapRenderer(MapRenderer2 mr)
          Set the MapRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUTTON_LEFT

public static final short BUTTON_LEFT
Left mouse button

See Also:
Constant Field Values

BUTTON_RIGHT

public static final short BUTTON_RIGHT
Right mouse button

See Also:
Constant Field Values

BUTTON_MIDDLE

public static final short BUTTON_MIDDLE
Middle mouse button

See Also:
Constant Field Values
Constructor Detail

DOMUIEventListener

public DOMUIEventListener()
Create a DOMUIEventListener

Method Detail

setMapRenderer

public void setMapRenderer(MapRenderer2 mr)
Set the MapRenderer


setDOMUIEventHandler

public void setDOMUIEventHandler(DOMUIEventHandler handler)
Define the (single) object that will receive DOM UI events. Set to null to disable event reporting.


handleEvent

public void handleEvent(org.w3c.dom.events.Event evt)
Handle Events; this method dispatches events to the appropriate DOMUIEventHandler methods.

Specified by:
handleEvent in interface org.w3c.dom.events.EventListener


Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.