package nl.javel.gisbeans.map; /** *
* (c) 2002-2018 Delft University of Technology , the
* Netherlands.
* See for project information www.simulation.tudelft.nl
* License of use: Lesser General Public License (LGPL) , no
* warranty.
* @author Peter Jacobs
* @version 1.2 Jun 22, 2004
* @since 1.4
*/
public class StaticAttribute extends AbstractAttribute
{
/** the static angle. */
private double angle = 0.0;
/** the static value. */
private String value = null;
/**
* constructs a new StaticAttribute.
* @param layer the layer
* @param angle the angle
* @param value the value
*/
public StaticAttribute(LayerInterface layer, double angle, String value)
{
super(layer);
this.angle = angle;
this.value = value;
}
/** {@inheritDoc} */
@Override
public double getAngle(int shapeIndex)
{
return this.angle;
}
/** {@inheritDoc} */
@Override
public String getValue(int shapeIndex)
{
return this.value;
}
}