View Javadoc

1   /*
2    * @(#) StaticAttribute.java Jun 22, 2004
3    * 
4    * Copyright (c) 2003 Delft University of Technology Jaffalaan 5, 2628 BX Delft,
5    * the Netherlands All rights reserved.
6    * 
7    * This software is proprietary information of Delft University of Technology
8    * The code is published under the General Public License
9    */
10  package nl.javel.gisbeans.map;
11  
12  /***
13   * <p>
14   * (c) copyright 2003 <a href="http://www.simulation.tudelft.nl">Delft
15   * University of Technology </a>, the Netherlands. <br>
16   * See for project information <a
17   * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
18   * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
19   * License (GPL) </a>, no warranty <br>
20   * 
21   * @author <a href="http://www.tbm.tudelft.nl/webstaf/peterja/index.htm">Peter
22   *         Jacobs </a>
23   * @version 1.2 Jun 22, 2004
24   * @since 1.4
25   */
26  public class StaticAttribute extends AbstractAttribute
27  {
28  	/*** the static angle */
29  	private double angle = 0.0;
30  
31  	/*** the static value */
32  	private String value = null;
33  
34  	/***
35  	 * constructs a new StaticAttribute
36  	 * 
37  	 * @param layer the layer
38  	 * @param angle the angle
39  	 * @param value the value
40  	 */
41  	public StaticAttribute(LayerInterface layer, double angle, String value)
42  	{
43  		super(layer);
44  		this.angle = angle;
45  		this.value = value;
46  	}
47  
48  	/***
49  	 * @see nl.javel.gisbeans.map.AttributeInterface#getAngle(int)
50  	 */
51  	public double getAngle(int shapeIndex)
52  	{
53  		return this.angle;
54  	}
55  
56  	/***
57  	 * @see nl.javel.gisbeans.map.AttributeInterface#getValue(int)
58  	 */
59  	public String getValue(int shapeIndex)
60  	{
61  		return this.value;
62  	}
63  }