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 DrawingFrameframe
-
Constructor Summary
Constructors Constructor Description FilePicture(DrawingFrame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidopen(java.io.File file)Not implemented.voidsave(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:
savein interfaceFileHandler
-
open
public void open(java.io.File file)
Not implemented.- Specified by:
openin interfaceFileHandler
-
-