--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.g2d.layers;\r
+\r
+\r
+/**\r
+ * @author Antti Villberg\r
+ */\r
+public interface ILayersEditor extends ILayers {\r
+\r
+ public interface ILayersEditorListener {\r
+\r
+ void layerAdded(ILayer layer);\r
+ void layerRemoved(ILayer layer);\r
+\r
+ void layerActivated(ILayer layer);\r
+ void layerDeactivated(ILayer layer);\r
+\r
+ void ignoreFocusChanged(boolean value);\r
+ void ignoreVisibilityChanged(boolean value);\r
+\r
+ }\r
+\r
+ void setIgnoreFocusSettings(boolean value);\r
+ void setIgnoreVisibilitySettings(boolean value);\r
+\r
+ void addListener(ILayersEditorListener listener);\r
+ void removeListener(ILayersEditorListener listener);\r
+\r
+ void addLayer(ILayer layer);\r
+ void removeLayer(ILayer layer);\r
+\r
+ void activate(ILayer layer);\r
+ void deactivate(ILayer layer);\r
+\r
+}\r