1 /*
2  * Copyright (c) 2016 Helmut Neemann
3  * Use of this source code is governed by the GPL v3 license
4  * that can be found in the LICENSE file.
5  */
6 package de.neemann.digital.draw.graphics;
7 
8 import java.io.IOException;
9 import java.io.OutputStream;
10 
11 /**
12  * Factory to create a {@link Graphic} instance suited to create a file.
13  */
14 public interface ExportFactory {
15     /**
16      * Creates a {@link Graphic} instance
17      *
18      * @param out the stream to write the graphic to
19      * @return the {@link Graphic} instance to use
20      * @throws IOException IOException
21      */
create(OutputStream out)22     Graphic create(OutputStream out) throws IOException;
23 }
24