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: LegendAttributeManager.java
13   * Created: 2008-04-28
14   * Author: apohllo, awos
15   * $Id: LegendAttributeManager.java 2770 2009-04-21 19:17:34Z kpietak $
16   */
17  
18  package pl.edu.agh.cast.model.attributes;
19  
20  /**
21   * This class represents {@link AttributeManager}s which are to manage attributes of
22   * {@link pl.edu.agh.cast.model.visual.backward.Legend}.
23   *
24   * @author AGH CAST Team
25   */
26  public class LegendAttributeManager extends AttributeManager {
27  	private static final long serialVersionUID = -7300489712588884168L;
28  
29  	/**
30  	 * Name of the permanent attribute <em>ID</em>.
31  	 */
32  	public static final String PERMANENT_LABEL = "Legend.label"; //$NON-NLS-1$
33  
34  	/**
35  	 * Dummy {@link LegendAttributeManager}.
36  	 */
37  	protected static LegendAttributeManager dummyManager = new LegendAttributeManager();
38  
39  	public static LegendAttributeManager getDummyManager() {
40  		return dummyManager;
41  	}
42  
43  	/**
44  	 * Default constructor.
45  	 */
46  	public LegendAttributeManager() {
47  		super();
48  
49  		this.registerPermanentAttribute(PERMANENT_LABEL, ValueType.String, true, false);
50  
51  	}
52  
53  }