org.jzy3d.chart.controllers.keyboard.screenshot
Class NewtScreenshotKeyController
java.lang.Object
org.jzy3d.chart.controllers.AbstractController
org.jzy3d.chart.controllers.keyboard.screenshot.NewtScreenshotKeyController
- All Implemented Interfaces:
- com.jogamp.newt.event.KeyListener, com.jogamp.newt.event.NEWTEventListener, EventListener, IScreenshotKeyController
public class NewtScreenshotKeyController
- extends AbstractController
- implements com.jogamp.newt.event.KeyListener, IScreenshotKeyController
Saves a screenshot in PNG format once key S is pressed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
chart
protected Chart chart
outputFile
protected String outputFile
listeners
protected List<IScreenshotKeyController.IScreenshotEventListener> listeners
NewtScreenshotKeyController
public NewtScreenshotKeyController(Chart chart,
String outputFile)
register
public void register(Chart chart)
- Overrides:
register
in class AbstractController
dispose
public void dispose()
- Overrides:
dispose
in class AbstractController
screenshot
public void screenshot(Chart chart,
String filename)
throws IOException
- Specified by:
screenshot
in interface IScreenshotKeyController
- Throws:
IOException
addListener
public void addListener(IScreenshotKeyController.IScreenshotEventListener listener)
- Specified by:
addListener
in interface IScreenshotKeyController
keyTyped
public void keyTyped(com.jogamp.newt.event.KeyEvent e)
- Specified by:
keyTyped
in interface com.jogamp.newt.event.KeyListener
keyReleased
public void keyReleased(com.jogamp.newt.event.KeyEvent e)
- Specified by:
keyReleased
in interface com.jogamp.newt.event.KeyListener
keyPressed
public void keyPressed(com.jogamp.newt.event.KeyEvent e)
- Specified by:
keyPressed
in interface com.jogamp.newt.event.KeyListener
fireDone
protected void fireDone(String file)
fireError
protected void fireError(String file,
Exception e)
Copyright © 2013. All rights reserved.