git.hedgecode.org
/
chesshog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[LIB-9] Separate chesshog-graphics module
[chesshog.git]
/
chesshog-graphics
/
src
/
main
/
java
/
org
/
hedgecode
/
chess
/
img
/
ImageBuilder.java
diff --git
a/chesshog-format/src/main/java/org/hedgecode/chess/img/ImageException.java
b/chesshog-graphics/src/main/java/org/hedgecode/chess/img/ImageBuilder.java
similarity index 73%
rename from
chesshog-format/src/main/java/org/hedgecode/chess/img/ImageException.java
rename to
chesshog-graphics/src/main/java/org/hedgecode/chess/img/ImageBuilder.java
index
4a24b80
..
68a8caa
100644
(file)
--- a/
chesshog-format/src/main/java/org/hedgecode/chess/img/ImageException.java
+++ b/
chesshog-graphics/src/main/java/org/hedgecode/chess/img/ImageBuilder.java
@@
-16,21
+16,15
@@
package org.hedgecode.chess.img;
package org.hedgecode.chess.img;
+import org.hedgecode.chess.position.Position;
+
/**
/**
- *
Image working Exception.
+ *
*
* @author Dmitry Samoshin aka gotty
*/
*
* @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;
}
}