Package org.meteoinfo.shape
Class CircleShape
- java.lang.Object
-
- org.meteoinfo.shape.Shape
-
- org.meteoinfo.shape.PolygonShape
-
- org.meteoinfo.shape.CircleShape
-
public class CircleShape extends PolygonShape
Circle shape class
-
-
Constructor Summary
Constructors Constructor Description CircleShape()ConstructorCircleShape(double x, double y, double radius)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class 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
-
Methods inherited from class 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
-
-
-
-
Method Detail
-
getShapeType
public ShapeTypes getShapeType()
Description copied from class:ShapeGet shape type- Overrides:
getShapeTypein classPolygonShape- Returns:
- Shape type
-
getCenter
public PointD getCenter()
Get circle center point- Returns:
- Center point
-
getRadius
public double getRadius()
Get radius- Returns:
- 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- Parameters:
p- Point- Returns:
- Contains a point or not
-
clone
public java.lang.Object clone()
Clone- Overrides:
clonein classPolygonShape- Returns:
- CircleShape
-
-