com.mtp.pounder
Class EventDetector

java.lang.Object
  |
  +--com.mtp.pounder.EventDetector

public class EventDetector
extends Object

Class for detecting when a Recording should be stopped.

Author:
Matthew Pekar

Field Summary
protected  JPanel dummyPanel
           
protected  KeyEvent endEvent
           
protected  KeyEvent pauseEvent
           
 
Constructor Summary
EventDetector()
           
 
Method Summary
protected  boolean areKeyEventsEqual(KeyEvent e1, KeyEvent e2)
           
 Object clone()
           
protected  KeyEvent copyEvent(KeyEvent e)
           
 boolean equals(Object o)
           
 KeyEvent getEndEvent()
           
 boolean isEndEvent(AWTEvent e)
           
 void setEndEvent(KeyEvent e)
          Assumes given event will not change.
 void setPauseEvent(KeyEvent e)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dummyPanel

protected JPanel dummyPanel

endEvent

protected KeyEvent endEvent

pauseEvent

protected KeyEvent pauseEvent
Constructor Detail

EventDetector

public EventDetector()
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

copyEvent

protected KeyEvent copyEvent(KeyEvent e)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getEndEvent

public KeyEvent getEndEvent()

setEndEvent

public void setEndEvent(KeyEvent e)
Assumes given event will not change.


setPauseEvent

public void setPauseEvent(KeyEvent e)

isEndEvent

public boolean isEndEvent(AWTEvent e)

areKeyEventsEqual

protected boolean areKeyEventsEqual(KeyEvent e1,
                                    KeyEvent e2)


Copyright © 2002 Matthew Pekar. All Rights Reserved.