com.scottpreston.javarobot.chapter7
Class Region

java.lang.Object
  extended by com.scottpreston.javarobot.chapter7.Vertex
      extended by com.scottpreston.javarobot.chapter7.Region

public class Region
extends Vertex


Field Summary
 
Fields inherited from class com.scottpreston.javarobot.chapter7.Vertex
name
 
Constructor Summary
Region(java.lang.String name, int size)
           
 
Method Summary
 void addWayPoint(NavPoint p)
           
 void addWayPoint(java.lang.String name, int x, int y)
           
 int[] getCharacteristic()
           
 NavPoint getPointByName(java.lang.String name)
           
 double getScaledMagnitude(double m)
           
 java.awt.Point getScaledPoint(int x, int y)
           
 int getSize()
           
 java.util.ArrayList getWayPoints()
           
 void setCharacteristic(int[] characteristic)
           
 void setSize(int size)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Region

public Region(java.lang.String name,
              int size)
Method Detail

addWayPoint

public void addWayPoint(NavPoint p)

addWayPoint

public void addWayPoint(java.lang.String name,
                        int x,
                        int y)

getScaledPoint

public java.awt.Point getScaledPoint(int x,
                                     int y)

getScaledMagnitude

public double getScaledMagnitude(double m)

getPointByName

public NavPoint getPointByName(java.lang.String name)

getWayPoints

public java.util.ArrayList getWayPoints()

getSize

public int getSize()

setSize

public void setSize(int size)

getCharacteristic

public int[] getCharacteristic()

setCharacteristic

public void setCharacteristic(int[] characteristic)