Package org.jzy3d.junit.replay
Class EventRecorder
- java.lang.Object
-
- org.jzy3d.junit.replay.Timestamped
-
- org.jzy3d.junit.replay.EventRecorder
-
- All Implemented Interfaces:
ComponentListener
,KeyListener
,MouseListener
,MouseMotionListener
,MouseWheelListener
,WindowListener
,EventListener
public class EventRecorder extends Timestamped implements MouseListener, MouseMotionListener, MouseWheelListener, KeyListener, ComponentListener, WindowListener
-
-
Field Summary
Fields Modifier and Type Field Description protected Component
awt
protected Chart
chart
protected int
nScreenshot
protected Scenario
scenario
-
Fields inherited from class org.jzy3d.junit.replay.Timestamped
t
-
-
Constructor Summary
Constructors Constructor Description EventRecorder(String scenario, Component awt)
EventRecorder(String scenario, Component awt, Frame frame)
EventRecorder(String scenario, Component awt, Frame frame, Chart chart)
-
Method Summary
-
-
-
Method Detail
-
addListeners
protected void addListeners(Component awt)
-
addWindowListeners
protected void addWindowListeners(Frame frame)
-
register
protected void register(IEventLog event)
-
onExit
protected void onExit()
-
getChart
public Chart getChart()
-
setChart
public void setChart(Chart chart)
-
isScreenshotKey
protected boolean isScreenshotKey(KeyEvent e)
-
isExit
protected boolean isExit(KeyEvent e)
-
screenshotFile
protected String screenshotFile(int n)
-
screenshot
protected void screenshot(Chart chart, String filename) throws IOException
- Throws:
IOException
-
mouseWheelMoved
public void mouseWheelMoved(MouseWheelEvent e)
- Specified by:
mouseWheelMoved
in interfaceMouseWheelListener
-
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClicked
in interfaceMouseListener
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interfaceMouseListener
-
getButton
protected int getButton(MouseEvent e)
-
componentHidden
public void componentHidden(ComponentEvent e)
- Specified by:
componentHidden
in interfaceComponentListener
-
componentMoved
public void componentMoved(ComponentEvent e)
- Specified by:
componentMoved
in interfaceComponentListener
-
componentResized
public void componentResized(ComponentEvent e)
- Specified by:
componentResized
in interfaceComponentListener
-
componentShown
public void componentShown(ComponentEvent e)
- Specified by:
componentShown
in interfaceComponentListener
-
keyTyped
public void keyTyped(KeyEvent e)
- Specified by:
keyTyped
in interfaceKeyListener
-
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleased
in interfaceKeyListener
-
windowClosing
public void windowClosing(WindowEvent e)
- Specified by:
windowClosing
in interfaceWindowListener
-
windowOpened
public void windowOpened(WindowEvent e)
- Specified by:
windowOpened
in interfaceWindowListener
-
windowClosed
public void windowClosed(WindowEvent e)
- Specified by:
windowClosed
in interfaceWindowListener
-
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited
in interfaceMouseListener
-
windowActivated
public void windowActivated(WindowEvent arg0)
- Specified by:
windowActivated
in interfaceWindowListener
-
windowDeactivated
public void windowDeactivated(WindowEvent arg0)
- Specified by:
windowDeactivated
in interfaceWindowListener
-
windowDeiconified
public void windowDeiconified(WindowEvent arg0)
- Specified by:
windowDeiconified
in interfaceWindowListener
-
windowIconified
public void windowIconified(WindowEvent arg0)
- Specified by:
windowIconified
in interfaceWindowListener
-
-