/*
- * Copyright (c) 2018. Developed by Hedgecode.
+ * Copyright (c) 2018-2019. Developed by Hedgecode.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import java.awt.image.RenderedImage;
-import org.hedgecode.chess.position.Builder;
import org.hedgecode.chess.position.Position;
/**
*
* @author Dmitry Samoshin aka gotty
*/
-public interface ImageBuilder extends Builder {
+public class Diagram {
- String build(Position position);
+ private Position position;
+ private RenderedImage image;
- RenderedImage build(Position position, String boardType, String pieceType) throws ImageException;
+ Diagram(Position position, RenderedImage image) {
+ this.position = position;
+ this.image = image;
+ }
+
+ public Position getPosition() {
+ return position;
+ }
+
+ public RenderedImage getImage() {
+ return image;
+ }
}