|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.svg.MapArea
public class MapArea
Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.
$Revision: 1.2 $
| Field Summary | |
|---|---|
protected java.util.ArrayList |
points
|
| Constructor Summary | |
|---|---|
MapArea()
Creates a new instance of MapArea. |
|
| Method Summary | |
|---|---|
void |
addPoint(double x,
double y)
Add a point to the map area. |
void |
addPoint(java.awt.geom.Point2D point)
Add a point to the map area. |
boolean |
contains(double x,
double y)
Checks whether a specified point is contained within the area. |
boolean |
contains(java.awt.geom.Point2D point)
Checks whether a specified point is contained within the area. |
java.util.ArrayList |
getPoints()
Return all the points associated with the area. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList points
| Constructor Detail |
|---|
public MapArea()
| Method Detail |
|---|
public void addPoint(double x,
double y)
x - a double specifying the x-coordinate of the point.y - a double specifying the y-coordinate of the point.public void addPoint(java.awt.geom.Point2D point)
point - a Point2D object specifying the coordinates of the point.public java.util.ArrayList getPoints()
ArrayList containing the points.
public boolean contains(double x,
double y)
x - a double specifying the x-coordinate of the point.y - a double specifying the y-coordinate of the point.
boolean specifying whether the point is contained within the area or not.public boolean contains(java.awt.geom.Point2D point)
point - the Point2D being checked.
boolean specifying whether the point is contained within the area or not.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||