Class Site
java.lang.Object
com.treemap.swing.originalfastvoronoi.convexHull.JVertex
com.treemap.swing.originalfastvoronoi.j2d.ASite
com.treemap.swing.originalfastvoronoi.j2d.Site
- All Implemented Interfaces:
iSite
,Comparable<Site>
Extended Version of a site, which has relative Positions
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
This attribute is used to mark the sites, which are only added to bound the Voronoi diagram.Fields inherited from class com.treemap.swing.originalfastvoronoi.j2d.ASite
cellObject, nearlyZero, neighbours, nonClippedPolyon, percentage, polygon, preflowVector, weight
Fields inherited from class com.treemap.swing.originalfastvoronoi.convexHull.JVertex
originalObject, x, y, z
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.treemap.swing.originalfastvoronoi.j2d.ASite
compareTo, distance, distanceCircles, getNeighbours, getPercentage, getPoint, getPolygon, getWeight, paint, setNeighbours, setPercentage, setPolygon, setWeight, setX, setXY, setXYW, setY
-
Field Details
-
isDummy
public boolean isDummyThis attribute is used to mark the sites, which are only added to bound the Voronoi diagram.
-
-
Constructor Details
-
Site
public Site(double x, double y) - Parameters:
x
- x-coordinatey
- y-coordinate
-
Site
public Site(double x, double y, double weight) - Parameters:
x
- x-coordinatey
- y-coordinateweight
- the weight of the site, where weight=radius*radius which is used for weighting
-
Site
public Site(double x, double y, double weight, double percentage)
-
-
Method Details