main
Class DrawableMapComponent

java.lang.Object
  extended by main.DrawableMapComponent
Direct Known Subclasses:
DrawableEdge, DrawableLabel, DrawableNode

public abstract class DrawableMapComponent
extends java.lang.Object

The DrawableMapComponent class contains all needed information on how to draw a map component. In particular it contains color and size of the component on the map as well as its pixel coordinates.


Field Summary
private  java.awt.Color color
           
private  int size
           
 
Constructor Summary
protected DrawableMapComponent()
          Creates a new, uninitialized DrawableMapComponent.
 
Method Summary
 java.awt.Color getColor()
          Returns the component's color on the map.
 int getSize()
          Returns the component's size on the map.
 void setColor(java.awt.Color color)
          Sets the component's color on the map.
 void setSize(int size)
          Sets the component's size on the map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

private java.awt.Color color

size

private int size
Constructor Detail

DrawableMapComponent

protected DrawableMapComponent()
Creates a new, uninitialized DrawableMapComponent.

Method Detail

setColor

public void setColor(java.awt.Color color)
Sets the component's color on the map.

Parameters:
color - the component's weightColor

setSize

public void setSize(int size)
Sets the component's size on the map.

Parameters:
size - the component's weightSize

getColor

public java.awt.Color getColor()
Returns the component's color on the map.

Returns:
the component's color

getSize

public int getSize()
Returns the component's size on the map.

Returns:
the component's size