类 EllipseShape
- java.lang.Object
-
- org.meteoinfo.geometry.shape.Shape
-
- org.meteoinfo.geometry.shape.PolygonShape
-
- org.meteoinfo.geometry.shape.EllipseShape
-
- 所有已实现的接口:
Cloneable
- 直接已知子类:
ArcShape
public class EllipseShape extends PolygonShape
Ellipse shape class- 作者:
- Yaqiang Wang
-
-
构造器概要
构造器 构造器 说明 EllipseShape()ConstructorEllipseShape(double x, double y, double width, double height)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectclone()Clonebooleancontains(PointD p)If this shape contains a pointdoublegetA()Get semi-major axis afloatgetAngle()Get angledoublegetB()Get semi-minor axis bPointDgetCenter()Get center pointdoublegetHeight()Get heightShapeTypesgetShapeType()Get shape typedoublegetWidth()Get widthvoidsetAngle(float value)Set angle-
从类继承的方法 org.meteoinfo.geometry.shape.PolygonShape
addHole, addHole, addVertice, clone_back, cloneValue, difference, getArea, getPartIndex, getPartNum, getParts, getPointNum, getPolygon, getPolygons, getSphericalArea, isMultiPolygon, removeHole, removeVertice, reverse, setPartNum, setParts, setPoints, setPoints, setPoints_keep, setPoints_keep, setPolygons, toGeometry, updatePolygons, updatePolygons_keep, valueClone
-
从类继承的方法 org.meteoinfo.geometry.shape.Shape
buffer, contains, convexHull, coveredBy, covers, crosses, disjoint, equals, factory, geometry2Shape, getExtent, getLegendIndex, getPoints, getValue, intersection, intersects, isEditing, isSelected, isVisible, move, moveVertice, overlaps, reform, setEditing, setExtent, setLegendIndex, setSelected, setValue, setVisible, split, symDifference, toGeometry, touches, union, updateExtent, within
-
-
-
-
方法详细资料
-
getShapeType
public ShapeTypes getShapeType()
从类复制的说明:ShapeGet shape type- 覆盖:
getShapeType在类中PolygonShape- 返回:
- Shape type
-
getCenter
public PointD getCenter()
Get center point- 返回:
- Center point
-
getWidth
public double getWidth()
Get width- 返回:
- Width
-
getHeight
public double getHeight()
Get height- 返回:
- Height
-
getAngle
public float getAngle()
Get angle- 返回:
- Angle
-
setAngle
public void setAngle(float value)
Set angle- 参数:
value- Angle
-
getA
public double getA()
Get semi-major axis a- 返回:
- Semi-major axis a
-
getB
public double getB()
Get semi-minor axis b- 返回:
- Semi-minor axis b
-
contains
public boolean contains(PointD p)
If this shape contains a point- 参数:
p- Point- 返回:
- Contains a point or not
-
clone
public Object clone()
Clone- 覆盖:
clone在类中PolygonShape- 返回:
- EllipseShape
-
-