nl.javel.gisbeans.map
Class Attribute

java.lang.Object
  extended by nl.javel.gisbeans.map.AbstractAttribute
      extended by nl.javel.gisbeans.map.Attribute
All Implemented Interfaces:
Serializable, AttributeInterface

public class Attribute
extends AbstractAttribute

An attribute.

(c) copyright 2003 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Since:
1.4
Version:
1.2 Jun 22, 2004
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
static short DEGREES
          DEGREES
static short RADIANS
          RADIANS
 
Constructor Summary
Attribute(LayerInterface layer, short mode, int angleColumn, int valueColumn)
          constructs a new Attribute
 
Method Summary
 double getAngle(int shapeIndex)
          returns the angle of the attribute
 String getValue(int shapeIndex)
           
 
Methods inherited from class nl.javel.gisbeans.map.AbstractAttribute
getFont, getFontColor, getLayer, getMaxScale, getMinScale, getPosition, setFont, setFontColor, setMaxScale, setMinScale, setPosition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RADIANS

public static final short RADIANS
RADIANS

See Also:
Constant Field Values

DEGREES

public static final short DEGREES
DEGREES

See Also:
Constant Field Values
Constructor Detail

Attribute

public Attribute(LayerInterface layer,
                 short mode,
                 int angleColumn,
                 int valueColumn)
constructs a new Attribute

Parameters:
layer -
mode - the mode (degrees or radians)
angleColumn - the angleColumn
valueColumn - the valueColumn
Method Detail

getAngle

public double getAngle(int shapeIndex)
Description copied from interface: AttributeInterface
returns the angle of the attribute

Specified by:
getAngle in interface AttributeInterface
Specified by:
getAngle in class AbstractAttribute
Parameters:
shapeIndex - the shapeIndex
Returns:
the angle
See Also:
AttributeInterface.getAngle(int)

getValue

public String getValue(int shapeIndex)
Specified by:
getValue in interface AttributeInterface
Specified by:
getValue in class AbstractAttribute
Parameters:
shapeIndex - the shapeIndex
Returns:
the value of the attribute
See Also:
AttributeInterface.getValue(int)