package CH.ifa.draw.util;

import java.awt.Dimension;
import java.awt.Point;
import java.io.File;
import java.io.IOException;

import de.renew.draw.storables.ontology.Drawing;

/**
 * AutosaveSaver defines a simple interface for saving drawings in an autosave file.
 * @deprecated This interface is not to be used externally and will later be hidden.
 */
@Deprecated(since = "5.0", forRemoval = true)
@FunctionalInterface
public interface AutosaveSaver {
    /**
     * Saves the file.
     * @param drawing the drawing to be saved
     * @param filename the filename to be saved
     * @param loc a point
     * @param size the size of the drawing
     * @throws IOException the exception thrown if an error occurred during reading/writing
     **/
    void saveAutosaveFile(Drawing drawing, File filename, Point loc, Dimension size)
        throws IOException;
}