de.grogra.imp
Class ViewEventHandler
java.lang.Object
de.grogra.imp.ViewEventHandler
- All Implemented Interfaces:
- Disposable, java.util.EventListener
public abstract class ViewEventHandler
- extends java.lang.Object
- implements Disposable, EventListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewEventHandler
public ViewEventHandler(View view,
boolean allowNegativePickDist)
buttonClicked
protected void buttonClicked(java.awt.event.MouseEvent e)
createClickEvent
protected abstract ClickEvent createClickEvent(java.awt.event.MouseEvent event)
createDragEvent
protected abstract DragEvent createDragEvent(java.awt.event.MouseEvent event)
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
disposeNavigator
public void disposeNavigator(java.util.EventObject e)
eventOccured
public void eventOccured(java.util.EventObject e)
- Description copied from interface:
EventListener
- This method is invoked on registered event listeners when
event
has occured. This general listener interface
does not restrict the possible kinds of events. Concrete sources
of events should specify which events they may fire.
- Parameters:
e
- an event
getNavigatorFactory
protected abstract NavigatorFactory getNavigatorFactory()
getView
public final View getView()
mouseDragged
protected void mouseDragged(java.awt.event.MouseEvent event,
int dragState,
int dx,
int dy)
mouseMoved
protected void mouseMoved(java.awt.event.MouseEvent event)
updateHighlight
public void updateHighlight()