nl.javel.gisbeans.map
Class AbstractAttribute

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

public abstract class AbstractAttribute
extends Object
implements AttributeInterface

This class defines the attribute.

Since:
JDK 1.0
Version:
1.0
Author:
Paul Jacobs
See Also:
Serialized Form

Constructor Summary
AbstractAttribute(LayerInterface layer)
          constructs a new AbstractAttribute
 
Method Summary
abstract  double getAngle(int shapeIndex)
          returns the angle of the attribute
 Font getFont()
           
 Color getFontColor()
           
 LayerInterface getLayer()
          returns the layer
 double getMaxScale()
           
 double getMinScale()
           
 int getPosition()
           
abstract  String getValue(int shapeIndex)
           
 void setFont(Font font)
           
 void setFontColor(Color fontColor)
           
 void setMaxScale(double maxScale)
          sets the maxScale of the attribute
 void setMinScale(double minScale)
          sets the minScale of the attribute
 void setPosition(int position)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAttribute

public AbstractAttribute(LayerInterface layer)
constructs a new AbstractAttribute

Parameters:
layer - the layer of this attribute
Method Detail

setFont

public void setFont(Font font)
Specified by:
setFont in interface AttributeInterface
See Also:
AttributeInterface.setFont(java.awt.Font)

getFont

public Font getFont()
Specified by:
getFont in interface AttributeInterface
Returns:
See Also:
AttributeInterface.getFont()

getFontColor

public Color getFontColor()
Specified by:
getFontColor in interface AttributeInterface
Returns:
See Also:
AttributeInterface.getFontColor()

setFontColor

public void setFontColor(Color fontColor)
Specified by:
setFontColor in interface AttributeInterface
See Also:
AttributeInterface.setFontColor(java.awt.Color)

getValue

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

getAngle

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

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

getPosition

public int getPosition()
Specified by:
getPosition in interface AttributeInterface
Returns:
See Also:
AttributeInterface.getPosition()

setPosition

public void setPosition(int position)
Specified by:
setPosition in interface AttributeInterface
See Also:
AttributeInterface.setPosition(int)

getLayer

public LayerInterface getLayer()
Description copied from interface: AttributeInterface
returns the layer

Specified by:
getLayer in interface AttributeInterface
Returns:
the layer of this attribute
See Also:
AttributeInterface.getLayer()

getMaxScale

public double getMaxScale()
Specified by:
getMaxScale in interface AttributeInterface
Returns:
the maxScale
See Also:
AttributeInterface.getMaxScale()

getMinScale

public double getMinScale()
Specified by:
getMinScale in interface AttributeInterface
Returns:
the minScale
See Also:
AttributeInterface.getMinScale()

setMaxScale

public void setMaxScale(double maxScale)
Description copied from interface: AttributeInterface
sets the maxScale of the attribute

Specified by:
setMaxScale in interface AttributeInterface
See Also:
nl.javel.gisbeans.map.AttributeInterface#setMaxScale(int)

setMinScale

public void setMinScale(double minScale)
Description copied from interface: AttributeInterface
sets the minScale of the attribute

Specified by:
setMinScale in interface AttributeInterface
See Also:
nl.javel.gisbeans.map.AttributeInterface#setMinScale(int)