public class TrafficBlockade
extends java.lang.Object
| Constructor and Description |
|---|
TrafficBlockade(Blockade blockade,
TrafficArea area)
Construct a TrafficBlockade object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x,
double y)
Find out whether this blockade contains a point (x, y).
|
TrafficArea |
getArea()
Get the containing TrafficArea.
|
Blockade |
getBlockade()
Get the wrapped Blockade.
|
java.util.List<Line2D> |
getLines()
Get the lines that make up the outline of this blockade.
|
public TrafficBlockade(Blockade blockade, TrafficArea area)
blockade - The wrapped blockade.area - The area containing this blockade.public java.util.List<Line2D> getLines()
public Blockade getBlockade()
public TrafficArea getArea()
public boolean contains(double x,
double y)
x - The X coordinate to test.y - The Y coordinate to test.