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
Modifier and TypeFieldDescriptionprotected Component
protected Chart
protected int
protected Scenario
Fields inherited from class org.jzy3d.junit.replay.Timestamped
t
-
Constructor Summary
ConstructorDescriptionEventRecorder
(String scenario, Component awt) EventRecorder
(String scenario, Component awt, Frame frame) EventRecorder
(String scenario, Component awt, Frame frame, Chart chart) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addListeners
(Component awt) protected void
addWindowListeners
(Frame frame) void
void
void
void
protected int
getChart()
protected boolean
protected boolean
void
void
void
void
void
void
void
void
void
void
void
protected void
onExit()
protected void
protected void
screenshot
(Chart chart, String filename) protected String
screenshotFile
(int n) void
void
windowActivated
(WindowEvent arg0) void
void
void
windowDeactivated
(WindowEvent arg0) void
windowDeiconified
(WindowEvent arg0) void
windowIconified
(WindowEvent arg0) void
-
Field Details
-
awt
-
scenario
-
chart
-
nScreenshot
protected int nScreenshot
-
-
Constructor Details
-
EventRecorder
-
EventRecorder
-
EventRecorder
-
-
Method Details
-
addListeners
-
addWindowListeners
-
register
-
onExit
protected void onExit() -
getChart
-
setChart
-
isScreenshotKey
-
isExit
-
screenshotFile
-
screenshot
- Throws:
IOException
-
mouseWheelMoved
- Specified by:
mouseWheelMoved
in interfaceMouseWheelListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
getButton
-
componentHidden
- Specified by:
componentHidden
in interfaceComponentListener
-
componentMoved
- Specified by:
componentMoved
in interfaceComponentListener
-
componentResized
- Specified by:
componentResized
in interfaceComponentListener
-
componentShown
- Specified by:
componentShown
in interfaceComponentListener
-
keyTyped
- Specified by:
keyTyped
in interfaceKeyListener
-
keyPressed
- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
- Specified by:
keyReleased
in interfaceKeyListener
-
windowClosing
- Specified by:
windowClosing
in interfaceWindowListener
-
windowOpened
- Specified by:
windowOpened
in interfaceWindowListener
-
windowClosed
- Specified by:
windowClosed
in interfaceWindowListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
windowActivated
- Specified by:
windowActivated
in interfaceWindowListener
-
windowDeactivated
- Specified by:
windowDeactivated
in interfaceWindowListener
-
windowDeiconified
- Specified by:
windowDeiconified
in interfaceWindowListener
-
windowIconified
- Specified by:
windowIconified
in interfaceWindowListener
-