Package org.meteoinfo.shape
Class RectangleShape
- java.lang.Object
-
- org.meteoinfo.shape.Shape
-
- org.meteoinfo.shape.PolygonShape
-
- org.meteoinfo.shape.RectangleShape
-
public class RectangleShape extends PolygonShape
-
-
Constructor Summary
Constructors Constructor Description RectangleShape()ConstructorRectangleShape(double x, double y, double width, double height)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()ClonedoublegetRoundX()Get round xdoublegetRoundY()Get round yShapeTypesgetShapeType()Get shape typebooleanisRound()Get is round or notvoidsetRoundX(double value)Set round yvoidsetRoundY(double value)Set round y-
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, contains, 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
-
isRound
public boolean isRound()
Get is round or not- Returns:
- Boolean
-
getRoundX
public double getRoundX()
Get round x- Returns:
- Round x
-
setRoundX
public void setRoundX(double value)
Set round y- Parameters:
value- Round y
-
getRoundY
public double getRoundY()
Get round y- Returns:
- Round y
-
setRoundY
public void setRoundY(double value)
Set round y- Parameters:
value- Round y
-
clone
public java.lang.Object clone()
Clone- Overrides:
clonein classPolygonShape- Returns:
- RectangleShape object
-
-