]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/graph/layer/GraphLayer.java
Add stack trace to document server event handler error messages
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / synchronization / graph / layer / GraphLayer.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.diagram.synchronization.graph.layer;
13
14 import org.simantics.db.Resource;
15
16 /**
17  * @author Tuukka Lehtonen
18  */
19 public class GraphLayer {
20
21     private final String   name;
22
23     private final Resource layer;
24
25     private final Resource visible;
26
27     private final Resource focusable;
28
29     public GraphLayer(String name, Resource layer, Resource visible, Resource focusable) {
30         this.name = name;
31         this.layer = layer;
32         this.visible = visible;
33         this.focusable = focusable;
34     }
35
36     public GraphLayer withName(String name) {
37         return new GraphLayer(name, layer, visible, focusable);
38     }
39
40     public String getName() {
41         return name;
42     }
43
44     public Resource getLayer() {
45         return layer;
46     }
47
48     public Resource getVisible() {
49         return visible;
50     }
51
52     public Resource getFocusable() {
53         return focusable;
54     }
55
56 }