1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.diagram.synchronization.graph.layer;
14 import org.simantics.db.Resource;
17 * @author Tuukka Lehtonen
19 public class GraphLayer {
21 private final String name;
23 private final Resource layer;
25 private final Resource visible;
27 private final Resource focusable;
29 public GraphLayer(String name, Resource layer, Resource visible, Resource focusable) {
32 this.visible = visible;
33 this.focusable = focusable;
36 public GraphLayer withName(String name) {
37 return new GraphLayer(name, layer, visible, focusable);
40 public String getName() {
44 public Resource getLayer() {
48 public Resource getVisible() {
52 public Resource getFocusable() {