[LIB-9] Separate chesshog-graphics module
[chesshog.git] / chesshog-graphics / src / main / java / org / hedgecode / chess / img / ImageBuilder.java
 
 package org.hedgecode.chess.img;
 
+import org.hedgecode.chess.position.Position;
+
 /**
- * Image working Exception.
+ *
  *
  * @author Dmitry Samoshin aka gotty
  */
-public class ImageException extends Exception {
-
-    private String message;
-
-    public ImageException(String message) {
-        this.message = message;
-    }
+public interface ImageBuilder {
 
-    public String getMessage() {
-        return message;
-    }
+    Diagram build(Position position, String boardType, String pieceType) throws ImageException;
 
 }