类 Extent
- java.lang.Object
-
- org.meteoinfo.global.Extent
-
- 所有已实现的接口:
java.lang.Cloneable
- 直接已知子类:
Extent3D
public class Extent extends java.lang.Object implements java.lang.CloneableTemplate- 作者:
- Yaqiang Wang
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.Objectclone()Clonejava.awt.RectangleconvertToRectangle()Convert to rectangleExtentextend(double ratio)Extends extent by ratioExtentextend(double dx, double dy)Extends extentPointDgetCenterPoint()Get center pointdoublegetHeight()doublegetWidth()booleaninclude(Extent bExtent)Judge if this extent include another extentbooleanintersects(Extent bET)Tests whether this extent intersects the second extent.booleanis3D()Get is 3D or notbooleanisNaN()Get is NaN or notExtentshift(double dx, double dy)Shift extentExtent3Dto3D()Convert to Extent3DExtentunion(Extent ex)Return union extent
-
-
-
构造器详细资料
-
Extent
public Extent()
Constructor
-
Extent
public Extent(double xMin, double xMax, double yMin, double yMax)Constructor- 参数:
xMin- Minimum XxMax- Maximum XyMin- Minimum YyMax- Maximum Y
-
Extent
public Extent(Extent aExtent)
Constructor- 参数:
aExtent- The extent
-
-
方法详细资料
-
getWidth
public double getWidth()
-
getHeight
public double getHeight()
-
include
public boolean include(Extent bExtent)
Judge if this extent include another extent- 参数:
bExtent- extent- 返回:
- is included
-
intersects
public boolean intersects(Extent bET)
Tests whether this extent intersects the second extent.- 参数:
bET- The second extent- 返回:
- Boolean
-
convertToRectangle
public java.awt.Rectangle convertToRectangle()
Convert to rectangle- 返回:
- rectangel
-
getCenterPoint
public PointD getCenterPoint()
Get center point- 返回:
- Center point
-
shift
public Extent shift(double dx, double dy)
Shift extent- 参数:
dx- X shift valuedy- Y shift value- 返回:
- Shifted extent
-
extend
public Extent extend(double ratio)
Extends extent by ratio- 参数:
ratio- The ratio- 返回:
- Extended extent
-
extend
public Extent extend(double dx, double dy)
Extends extent- 参数:
dx- X deltady- Y delta- 返回:
- Extended extent
-
isNaN
public boolean isNaN()
Get is NaN or not- 返回:
- Boolean
-
is3D
public boolean is3D()
Get is 3D or not- 返回:
- false
-
to3D
public Extent3D to3D()
Convert to Extent3D- 返回:
- Extent3D
-
clone
public java.lang.Object clone()
Clone- 覆盖:
clone在类中java.lang.Object- 返回:
- Extent object
-
-