Package strategy
Class FilePicture
- java.lang.Object
-
- strategy.FilePicture
-
- All Implemented Interfaces:
FileHandler
public class FilePicture extends java.lang.Object implements FileHandler
Class that is responsible to save draw as jpeg.
-
-
Field Summary
Fields Modifier and Type Field Description private DrawingFrame
frame
-
Constructor Summary
Constructors Constructor Description FilePicture(DrawingFrame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
open(java.io.File file)
Not implemented.void
save(java.io.File file)
Save currently draw as picture.
-
-
-
Field Detail
-
frame
private DrawingFrame frame
-
-
Constructor Detail
-
FilePicture
public FilePicture(DrawingFrame frame)
-
-
Method Detail
-
save
public void save(java.io.File file)
Save currently draw as picture. {@see https://stackoverflow.com/questions/4725320/how-to-save-window-contents-as-an-image}- Specified by:
save
in interfaceFileHandler
-
open
public void open(java.io.File file)
Not implemented.- Specified by:
open
in interfaceFileHandler
-
-