类 CircleShape
- java.lang.Object
-
- org.meteoinfo.shape.Shape
-
- org.meteoinfo.shape.PolygonShape
-
- org.meteoinfo.shape.CircleShape
-
- 所有已实现的接口:
java.lang.Cloneable
public class CircleShape extends PolygonShape
Circle shape class- 作者:
- Yaqiang Wang
-
-
构造器概要
构造器 构造器 说明 CircleShape()ConstructorCircleShape(double x, double y, double radius)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.Objectclone()Clonebooleancontains(PointD p)If this shape contains a pointbooleancontains(Shape other)If this shape contains another onePointDgetCenter()Get circle center pointdoublegetRadius()Get radiusShapeTypesgetShapeType()Get shape type-
从类继承的方法 org.meteoinfo.shape.PolygonShape
addHole, addHole, addVertice, clone_back, cloneValue, difference, getArea, getPartIndex, getPartNum, getParts, getPointNum, getPoints, getPolygons, getSphericalArea, removeHole, removeVerice, reverse, setPartNum, setParts, setPoints, setPoints, setPoints_keep, setPolygons, toGeometry, updatePolygons, updatePolygons_keep, valueClone
-
从类继承的方法 org.meteoinfo.shape.Shape
buffer, convexHull, coveredBy, covers, crosses, disjoint, equals, geometry2Shape, getExtent, getLegendIndex, getValue, intersection, intersects, isEditing, isSelected, isVisible, move, moveVertice, overlaps, reform, setEditing, setExtent, setLegendIndex, setSelected, setValue, setVisible, split, symDifference, toGeometry, touches, union, within
-
-
-
-
方法详细资料
-
getShapeType
public ShapeTypes getShapeType()
从类复制的说明:ShapeGet shape type- 覆盖:
getShapeType在类中PolygonShape- 返回:
- Shape type
-
getCenter
public PointD getCenter()
Get circle center point- 返回:
- Center point
-
getRadius
public double getRadius()
Get radius- 返回:
- Radius
-
contains
public boolean contains(Shape other)
If this shape contains another one
-
contains
public boolean contains(PointD p)
If this shape contains a point- 参数:
p- Point- 返回:
- Contains a point or not
-
clone
public java.lang.Object clone()
Clone- 覆盖:
clone在类中PolygonShape- 返回:
- CircleShape
-
-