View Javadoc

1   /*
2    * This file is a part of CAST project.
3    * (c) Copyright 2007, AGH University of Science & Technology
4    * https://caribou.iisg.agh.edu.pl/trac/cast
5    *
6    * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7    * You may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    * http://www.eclipse.org/legal/epl-v10.html
10   */
11  /*
12   * File: NodeAttributeManager.java
13   * Created: 2008-04-28
14   * Author: apohllo, awos
15   * $Id: ConnectionGroupAttributeManager.java 2770 2009-04-21 19:17:34Z kpietak $
16   */
17  
18  package pl.edu.agh.cast.model.attributes;
19  
20  import pl.edu.agh.cast.model.visual.backward.ConnectionGroup;
21  
22  /**
23   * This class represents {@link AttributeManager}s which are to manage attributes of
24   * {@link pl.edu.agh.cast.model.visual.backward.ConnectionGroup}s.
25   *
26   * @author AGH CAST Team
27   */
28  public class ConnectionGroupAttributeManager extends AttributeManager {
29  
30  	private static final long serialVersionUID = -8936665211734984068L;
31  
32  	/**
33  	 * Dummy {@link ConnectionGroupAttributeManager}.
34  	 */
35  	protected static ConnectionGroupAttributeManager dummyManager = new ConnectionGroupAttributeManager();
36  
37  	public static ConnectionGroupAttributeManager getDummyManager() {
38  		return dummyManager;
39  	}
40  
41  	/**
42  	 * Default constructor.
43  	 */
44  	public ConnectionGroupAttributeManager() {
45  		super();
46  
47  		this.registerPermanentAttribute(ConnectionGroup.SINGLE_CONNECTION_LABEL, ValueType.String, true, false);
48  
49  		this.registerPermanentAttribute(ConnectionGroup.DOUBLE_CONNECTION_SOURCE_LABEL, ValueType.String, true, false);
50  
51  		this.registerPermanentAttribute(ConnectionGroup.DOUBLE_CONNECTION_TARGET_LABEL, ValueType.String, true, false);
52  
53  		this.registerPermanentAttribute(ConnectionGroup.LINE_THICKNESS, ValueType.Integer, true, false);
54  
55  		this.registerPermanentAttribute(ConnectionGroup.VARIABLE_THICKNESS_CONNECTION_LABEL, ValueType.String, true,
56  		        false);
57  
58  		this.registerPermanentAttribute(ConnectionGroup.LINE_COLOR, ValueType.Color, true, false);
59  
60  	}
61  
62  }