main
Class MapComponent

java.lang.Object
  extended by main.MapComponent
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
Edge, Node

public abstract class MapComponent
extends java.lang.Object
implements java.lang.Cloneable

The MapComponent class contains information necessary for drawing a map component. In particular it contains properties that are attributed to the color and size of the component on the map. These values do not directly correspond to color and size on the map. The DrawingParameters class specifies how they will be drawn based on the map component's values.


Field Summary
private  java.lang.Double weightColor
           
private  java.lang.Double weightSize
           
 
Constructor Summary
protected MapComponent()
          Creates a new, uninitialized MapComponent.
 
Method Summary
protected  MapComponent clone()
          clones the object
 java.lang.Double getWeightColor()
          Returns the value attributed to the component's color on the map.
 java.lang.Double getWeightSize()
          Returns the value attributed to the component's size on the map.
 void setWeightColor(java.lang.Double weightColor)
          Sets the value attributed to the component's color on the map.
 void setWeightSize(java.lang.Double weightSize)
          Sets the value attributed to the component's size on the map.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

weightColor

private java.lang.Double weightColor

weightSize

private java.lang.Double weightSize
Constructor Detail

MapComponent

protected MapComponent()
Creates a new, uninitialized MapComponent.

Method Detail

setWeightColor

public void setWeightColor(java.lang.Double weightColor)
Sets the value attributed to the component's color on the map.

Parameters:
weightColor - the component's weightColor

setWeightSize

public void setWeightSize(java.lang.Double weightSize)
Sets the value attributed to the component's size on the map.

Parameters:
weightSize - the component's weightSize

getWeightColor

public java.lang.Double getWeightColor()
Returns the value attributed to the component's color on the map.

Returns:
the component's weightColor

getWeightSize

public java.lang.Double getWeightSize()
Returns the value attributed to the component's size on the map.

Returns:
the component's weightSize

clone

protected MapComponent clone()
                      throws java.lang.CloneNotSupportedException
clones the object

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException