cellsketch-master/src/main/java/de/frauzufall/cellsketch/model/AbstractItem.java
package de.frauzufall.cellsketch.model;

import net.imglib2.type.numeric.ARGBType;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public abstract class AbstractItem implements Item {
	private String name;
	private List<Action> actions = new ArrayList<>();
	private int color;

	public AbstractItem() {
		color = ARGBType.rgba(255,255,255,255);
	}

	@Override
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public List<Action> getActions() {
		return actions;
	}

	@Override
	public int getColor() {
		return color;
	}

	@Override
	public void setColor(int color) {
		this.color = color;
	}

	@Override
	public boolean load() throws IOException {
		loadConfig();
		return true;
	}

	@Override
	public void unload() {
	}

	@Override
	public void loadConfig() throws IOException {
	}

	@Override
	public void saveConfig() throws IOException {
	}

	@Override
	public void delete() throws IOException {

	}

	public String nameToFileName() {
		return getName().replace(" ", "_").toLowerCase();
	}
}
