// Path: src/main/java/jigspuzzle/model/Savable.java
// public interface Savable {
// 
//     /**
//      * Loads again the content from the file, that is opened by the given
//      * document.
//      *
//      * @param settingsNode
//      * @throws java.io.IOException
//      */
//     public void loadFromFile(Element settingsNode) throws IOException;
// 
//     /**
//      * Saves the current content to the file, that is opened by the given
//      * document.
//      *
//      * @param doc
//      * @param rootElement The root element, where a subclass can create elements
//      * @throws java.io.IOException
//      */
//     public void saveToFile(Document doc, Element rootElement) throws IOException;
// 
// }


import java.awt.Color;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Observable;
import jigspuzzle.model.Savable;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
    /**
     * Sets the bckground color for the puzzlearea where the player playes
     * around with the puzzlepieces.
     *
     * @param newColor
     */
    public void setPuzzleareaBackgroundColor(Color newColor) {
        puzzleareaBackgroundColor = newColor;
        setChanged();
        notifyObservers();
    }

    /**
     * Gets teh value, wheather to show a preview of the puzzle on the
     * puzzlearea.
     *
     * @return
     */
    public boolean getShowPuzzlePreview() {
        return showPuzzlePreview;
    }

    /**
     * Sets teh value, wheather to show a preview of the puzzle on the
     * puzzlearea.
     *
     * @param showPuzzlePreview
     */
    public void setShowPuzzlePreview(boolean showPuzzlePreview) {
        this.showPuzzlePreview = showPuzzlePreview;
// Path: src/main/java/jigspuzzle/model/Savable.java
// public interface Savable {
// 
//     /**
//      * Loads again the content from the file, that is opened by the given
//      * document.
//      *
//      * @param settingsNode
//      * @throws java.io.IOException
//      */
//     public void loadFromFile(Element settingsNode) throws IOException;
// 
//     /**
//      * Saves the current content to the file, that is opened by the given
//      * document.
//      *
//      * @param doc
//      * @param rootElement The root element, where a subclass can create elements
//      * @throws java.io.IOException
//      */
//     public void saveToFile(Document doc, Element rootElement) throws IOException;
// 
// }


// Path: src/main/java/jigspuzzle/model/settings/PuzzleareaSettings.java
import java.awt.Color;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Observable;
import jigspuzzle.model.Savable;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

    /**
     * Sets the bckground color for the puzzlearea where the player playes
     * around with the puzzlepieces.
     *
     * @param newColor
     */
    public void setPuzzleareaBackgroundColor(Color newColor) {
        puzzleareaBackgroundColor = newColor;
        setChanged();
        notifyObservers();
    }

    /**
     * Gets teh value, wheather to show a preview of the puzzle on the
     * puzzlearea.
     *
     * @return
     */
    public boolean getShowPuzzlePreview() {
        return showPuzzlePreview;
    }

    /**
     * Sets teh value, wheather to show a preview of the puzzle on the
     * puzzlearea.
     *
     * @param showPuzzlePreview
     */
    public void setShowPuzzlePreview(boolean showPuzzlePreview) {
        this.showPuzzlePreview = showPuzzlePreview;
        setChanged();