|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.data.Geometry com.supermap.data.GeoCircle
public class GeoCircle
圆几何对象类。
该类主要用于 CAD 图层,是 Geometry
对象的子对象。
构造方法摘要 | |
---|---|
GeoCircle()
构造一个新的 GeoCircle 对象。 |
|
GeoCircle(GeoCircle geoCircle)
根据给定的 GeoCircle 对象构造一个与其完全相同的新对象。 |
|
GeoCircle(Point2D center,
double radius)
根据指定的参数来构造一个 GeoCircle 的新对象。 |
|
GeoCircle(Point2D point1,
Point2D point2)
根据指定的参数来构造一个 GeoCircle 的新对象。 |
|
GeoCircle(Point2D point1,
Point2D point2,
Point2D point3)
根据指定的参数来构造一个 GeoCircle 的新对象。 |
方法摘要 | |
---|---|
GeoCircle |
clone()
返回当前 GeoCircle 对象的一个拷贝。 |
GeoLine |
convertToLine(int segmentCount)
将圆几何对象转换为线几何对象。 |
GeoRegion |
convertToRegion(int segmentCount)
将圆几何对象转换为面几何对象。 |
void |
dispose()
释放该对象所占用的资源。 |
double |
getArea()
返回圆几何对象的面积。 |
Point2D |
getCenter()
返回圆几何对象的圆心。 |
double |
getPerimeter()
返回圆几何对象的周长。 |
double |
getRadius()
返回圆几何对象的半径。 |
void |
setCenter(Point2D point2D)
设置圆几何对象的圆心。 |
void |
setEmpty()
此类不支持该接口。 |
void |
setRadius(double value)
设置圆几何对象的半径。 |
从类 com.supermap.data.Geometry 继承的方法 |
---|
addCustomGeometryCreatedListener, fromXML, getBounds, getID, getInnerPoint, getStyle, getType, getVariantID, hitTest, isEmpty, mirror, offset, removeCustomGeometryCreatedListener, resize, rotate, setID, setStyle, toXML |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public GeoCircle()
public GeoCircle(GeoCircle geoCircle)
geoCircle
- 给定的 GeoCircle 对象。public GeoCircle(Point2D center, double radius)
center
- 圆心。radius
- 半径。public GeoCircle(Point2D point1, Point2D point2)
point1
- 直径的一个端点。point2
- 直径的另一个端点。public GeoCircle(Point2D point1, Point2D point2, Point2D point3)
根据几何学知识,由三点可确定一个圆,创建三点圆时,这三个点均为弧上的点,因此,三点不能在同一条直线上。
point1
- 第一个点。point2
- 第二个点。point3
- 第三个点。方法详细信息 |
---|
public Point2D getCenter()
public void setCenter(Point2D point2D)
point2D
- 圆几何对象的圆心。public double getRadius()
public void setRadius(double value)
value
- 圆几何对象的半径。public double getPerimeter()
public double getArea()
public GeoLine convertToLine(int segmentCount)
segmentCount
- 等分圆的段数。
public GeoRegion convertToRegion(int segmentCount)
segmentCount
- 等分圆的段数。
public void dispose()
Geometry
中的 dispose
public GeoCircle clone()
java.lang.Object
中的 clone
public void setEmpty()
Geometry
中的 setEmpty
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |