All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wicketstuff.whiteboard.WhiteboardData Maven / Gradle / Ivy

There is a newer version: 8.0.0-M7
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.wicketstuff.whiteboard;

import org.wicketstuff.whiteboard.elements.Element;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.BlockingDeque;

/**
 * This class holds all the data structures which are common to a whiteboard instance
 */
public class WhiteboardData {

	private Map elementMap;
	private Map loadedElementMap;

	private BlockingDeque> undoSnapshots;
	private BlockingDeque> undoSnapshotCreationList;

	private ArrayList clipArts;
	private String clipArtFolder;

	private Map> docMap;
	private String documentFolder;

	private Background background;

	private BlockingDeque undoSnapshots_Background;
	private BlockingDeque undoSnapshotCreationList_Background;

	private BlockingDeque isElementSnapshotList;

	private String loadedContent;

	public WhiteboardData(Map elementMap, Map loadedElementMap,
			BlockingDeque> undoSnapshots, BlockingDeque> undoSnapshotCreationList,
			BlockingDeque undoSnapshots_Background,
			BlockingDeque undoSnapshotCreationList_Background, BlockingDeque isElementSnapshotList,
			ArrayList clipArts, String clipArtFolder, Map> docMap,
			String documentFolder, Background background, String loadedContent) {
		this.elementMap = elementMap;
		this.loadedElementMap = loadedElementMap;
		this.undoSnapshots = undoSnapshots;
		this.undoSnapshotCreationList = undoSnapshotCreationList;
		this.clipArts = clipArts;
		this.clipArtFolder = clipArtFolder;
		this.docMap = docMap;
		this.documentFolder = documentFolder;
		this.background = background;
		this.loadedContent = loadedContent;
		this.undoSnapshots_Background = undoSnapshots_Background;
		this.undoSnapshotCreationList_Background = undoSnapshotCreationList_Background;
		this.isElementSnapshotList = isElementSnapshotList;
	}

	public Map getElementMap() {
		return elementMap;
	}

	public void setElementMap(Map elementMap) {
		this.elementMap = elementMap;
	}

	public Map getLoadedElementMap() {
		return loadedElementMap;
	}

	public void setLoadedElementMap(Map loadedElementMap) {
		this.loadedElementMap = loadedElementMap;
	}

	public BlockingDeque> getUndoSnapshots() {
		return undoSnapshots;
	}

	public void setUndoSnapshots(BlockingDeque> undoSnapshots) {
		this.undoSnapshots = undoSnapshots;
	}

	public BlockingDeque> getUndoSnapshotCreationList() {
		return undoSnapshotCreationList;
	}

	public void setUndoSnapshotCreationList(BlockingDeque> undoSnapshotCreationList) {
		this.undoSnapshotCreationList = undoSnapshotCreationList;
	}

	public ArrayList getClipArts() {
		return clipArts;
	}

	public void setClipArts(ArrayList clipArts) {
		this.clipArts = clipArts;
	}

	public String getClipArtFolder() {
		return clipArtFolder;
	}

	public void setClipArtFolder(String clipArtFolder) {
		this.clipArtFolder = clipArtFolder;
	}

	public Map> getDocMap() {
		return docMap;
	}

	public void setDocMap(Map> docMap) {
		this.docMap = docMap;
	}

	public String getDocumentFolder() {
		return documentFolder;
	}

	public void setDocumentFolder(String documentFolder) {
		this.documentFolder = documentFolder;
	}

	public Background getBackground() {
		return background;
	}

	public void setBackground(Background background) {
		this.background = background;
	}

	public String getLoadedContent() {
		return loadedContent;
	}

	public void setLoadedContent(String loadedContent) {
		this.loadedContent = loadedContent;
	}

	public BlockingDeque getUndoSnapshots_Background() {
		return undoSnapshots_Background;
	}

	public void setUndoSnapshots_Background(BlockingDeque undoSnapshots_Background) {
		this.undoSnapshots_Background = undoSnapshots_Background;
	}

	public BlockingDeque getUndoSnapshotCreationList_Background() {
		return undoSnapshotCreationList_Background;
	}

	public void setUndoSnapshotCreationList_Background(BlockingDeque undoSnapshotCreationList_Background) {
		this.undoSnapshotCreationList_Background = undoSnapshotCreationList_Background;
	}

	public BlockingDeque getIsElementSnapshotList() {
		return isElementSnapshotList;
	}

	public void setIsElementSnapshotList(BlockingDeque elementSnapshotList) {
		isElementSnapshotList = elementSnapshotList;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy