com.supermap.data
Class GeoCircle
- java.lang.Object
-
- com.supermap.data.Geometry
-
- com.supermap.data.GeoCircle
-
-
Constructor Summary
Constructors Constructor and Description GeoCircle()
Constructs a new GeoCircle object.GeoCircle(GeoCircle geoCircle)
Constructs a new object identical to the given GeoCircle object.GeoCircle(Point2D center, double radius)
Creates a new GeoCircle object according to the specified arguments.GeoCircle(Point2D point1, Point2D point2)
Creates a new GeoCircle object according to the specified arguments.GeoCircle(Point2D point1, Point2D point2, Point2D point3)
Creates a new GeoCircle object according to the specified arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoCircle
clone()
Returns a copy of the current GeoCircle object.GeoLine
convertToLine(int segmentCount)
Converts the GeoCircle object to the GeoLine object.GeoRegion
convertToRegion(int segmentCount)
Converts the GeoCircle object to the GeoRegion object.void
dispose()
Disposes the resources occupied by the object.double
getArea()
Returns the area of the GeoCircle object.Point2D
getCenter()
Returns the center of the GeoCircle object.double
getPerimeter()
Returns the perimeter of the GeoCircle object.double
getRadius()
Returns the radius of the GeoCircle object.void
setCenter(Point2D point2D)
Sets the center of the GeoCircle object.void
setRadius(double value)
Sets the radius of the circle.
-
-
-
Constructor Detail
-
GeoCircle
public GeoCircle()
Constructs a new GeoCircle object.
-
GeoCircle
public GeoCircle(GeoCircle geoCircle)
Constructs a new object identical to the given GeoCircle object.- Parameters:
geoCircle
- the specified GeoCircle object.
-
GeoCircle
public GeoCircle(Point2D center, double radius)
Creates a new GeoCircle object according to the specified arguments.- Parameters:
center
- Centerradius
- Radius
-
GeoCircle
public GeoCircle(Point2D point1, Point2D point2)
Creates a new GeoCircle object according to the specified arguments.- Parameters:
point1
- One specified point which is one of the two end points of the diameter of the circle.point2
- Another specified point which is one of the two end points of the diameter of the circle.
-
GeoCircle
public GeoCircle(Point2D point1, Point2D point2, Point2D point3)
Creates a new GeoCircle object according to the specified arguments.Initializes a new instance of the GeoCircle class using three points on the circumference. The three points must not be on one line.
- Parameters:
point1
- the first pointpoint2
- the second pointpoint3
- the third point
-
-
Method Detail
-
getCenter
public Point2D getCenter()
Returns the center of the GeoCircle object.- Returns:
- the center of the ellipse.
- Default:
- The default value is {X = 0,Y = 0}.
-
setCenter
public void setCenter(Point2D point2D)
Sets the center of the GeoCircle object.- Parameters:
point2D
- the center of the GeoEllipse object.
-
getRadius
public double getRadius()
Returns the radius of the GeoCircle object.- Returns:
- the center of the GeoCircle object.
- Default:
- The default value is 1.
-
setRadius
public void setRadius(double value)
Sets the radius of the circle.- Parameters:
value
- the center of the GeoCircle object.
-
getPerimeter
public double getPerimeter()
Returns the perimeter of the GeoCircle object.- Returns:
- the perimeter of the ellipse.
- Default:
- The default value is 6.28318530717959.
-
getArea
public double getArea()
Returns the area of the GeoCircle object.- Returns:
- the area of the ellipse.
- Default:
- The default value is 3.14159265358979.
-
convertToLine
public GeoLine convertToLine(int segmentCount)
Converts the GeoCircle object to the GeoLine object.- Parameters:
segmentCount
- the count of segments in a circle- Returns:
- The line geometrical object.
-
convertToRegion
public GeoRegion convertToRegion(int segmentCount)
Converts the GeoCircle object to the GeoRegion object.- Parameters:
segmentCount
- the count of segments in a circle- Returns:
- The region geometrical object.
-
clone
public GeoCircle clone()
Returns a copy of the current GeoCircle object.
-
-