|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.data.Geometry com.supermap.data.GeoArc
public class GeoArc
圆弧几何对象类。
该类主要用于 CAD 图层,是 Geometry
对象的子对象。
构造方法摘要 | |
---|---|
GeoArc()
构造一个新的 GeoArc 对象。 |
|
GeoArc(GeoArc geoArc)
根据给定的 GeoArc 对象构造一个与其完全相同的新对象。 |
|
GeoArc(Point2D center,
double radius,
double startAngle,
double sweepAngle)
根据指定的参数来构造一个 GeoArc 的新对象。 |
|
GeoArc(Point2D startPoint,
Point2D middlePoint,
Point2D endPoint)
根据指定的参数来构造一个 GeoArc 的新对象。 |
方法摘要 | |
---|---|
GeoArc |
clone()
返回当前 GeoArc 对象的一个拷贝。 |
GeoLine |
convertToLine(int segmentCount)
将弧段转换为线对象。 |
void |
dispose()
释放该对象所占用的资源。 |
Point2D |
findPointOnArc(double sweepAngle)
根据扫过的角度值返回圆弧上的某一点。 |
Point2D |
getCenter()
返回圆弧的圆心。 |
double |
getLength()
返回圆弧的弧长。 |
double |
getRadius()
返回圆弧的半径。 |
double |
getStartAngle()
返回圆弧的起始角度,单位为度。 |
double |
getSweepAngle()
返回圆弧所扫过的角度,单位为度。 |
void |
setCenter(Point2D point2D)
设置圆弧的圆心。 |
void |
setEmpty()
此类不支持该接口。 |
void |
setRadius(double value)
设置圆弧的半径。 |
void |
setStartAngle(double value)
设置圆弧的起始角度,单位为度。 |
void |
setSweepAngle(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 GeoArc()
public GeoArc(GeoArc geoArc)
geoArc
- 给定的 GeoArc 对象。public GeoArc(Point2D center, double radius, double startAngle, double sweepAngle)
center
- 圆弧的圆心。radius
- 圆弧半径。startAngle
- 圆弧的起始角度。sweepAngle
- 圆弧所扫过的角度。public GeoArc(Point2D startPoint, Point2D middlePoint, Point2D endPoint)
startPoint
- 圆弧的起始点。middlePoint
- 圆弧的中间点。endPoint
- 圆弧的终止点。方法详细信息 |
---|
public Point2D getCenter()
public void setCenter(Point2D point2D)
point2D
- 圆弧的圆心。public double getRadius()
public void setRadius(double value)
value
- 圆弧的半径。public double getStartAngle()
public void setStartAngle(double value)
value
- 圆弧的起始角度。public double getSweepAngle()
public void setSweepAngle(double value)
value
- 圆弧所扫过的角度。public double getLength()
public GeoLine convertToLine(int segmentCount)
segmentCount
- 等分弧段的段数。
public Point2D findPointOnArc(double sweepAngle)
sweepAngle
- 扫过的角度值,角度值在0度到 getSweepAngle()
方法的返回值之间。
public void dispose()
Geometry
中的 dispose
public GeoArc clone()
java.lang.Object
中的 clone
public void setEmpty()
Geometry
中的 setEmpty
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |