Class AbstractScreenshotKeyController
- java.lang.Object
-
- org.jzy3d.chart.controllers.AbstractController
-
- org.jzy3d.chart.controllers.keyboard.screenshot.AbstractScreenshotKeyController
-
- All Implemented Interfaces:
IScreenshotKeyController
- Direct Known Subclasses:
AWTScreenshotKeyController,NewtScreenshotKeyController
public class AbstractScreenshotKeyController extends AbstractController implements IScreenshotKeyController
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jzy3d.chart.controllers.keyboard.screenshot.IScreenshotKeyController
IScreenshotKeyController.IScreenshotEventListener
-
-
Field Summary
Fields Modifier and Type Field Description protected Chartchartprotected List<IScreenshotKeyController.IScreenshotEventListener>listenersprotected StringoutputFile-
Fields inherited from class org.jzy3d.chart.controllers.AbstractController
controllerListeners, targets
-
-
Constructor Summary
Constructors Constructor Description AbstractScreenshotKeyController(Chart chart, String outputFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(IScreenshotKeyController.IScreenshotEventListener listener)voiddispose()protected voidfireDone(String file)protected voidfireError(String file, Exception e)StringgetFilename()voidregister(Chart chart)voidscreenshot(Chart chart, String filename)voidsetFilename(String filename)-
Methods inherited from class org.jzy3d.chart.controllers.AbstractController
addControllerEventListener, fireControllerEvent, getChart, getCharts, removeControllerEventListener, unregister
-
-
-
-
Field Detail
-
chart
protected Chart chart
-
outputFile
protected String outputFile
-
listeners
protected List<IScreenshotKeyController.IScreenshotEventListener> listeners
-
-
Method Detail
-
register
public void register(Chart chart)
- Overrides:
registerin classAbstractController
-
dispose
public void dispose()
- Overrides:
disposein classAbstractController
-
screenshot
public void screenshot(Chart chart, String filename) throws IOException
- Specified by:
screenshotin interfaceIScreenshotKeyController- Throws:
IOException
-
addListener
public void addListener(IScreenshotKeyController.IScreenshotEventListener listener)
- Specified by:
addListenerin interfaceIScreenshotKeyController
-
fireDone
protected void fireDone(String file)
-
getFilename
public String getFilename()
- Specified by:
getFilenamein interfaceIScreenshotKeyController
-
setFilename
public void setFilename(String filename)
- Specified by:
setFilenamein interfaceIScreenshotKeyController
-
-