类 CylindricalProjectionTileFactory
- java.lang.Object
-
- org.meteoinfo.data.mapdata.webmap.TileFactory
-
- org.meteoinfo.data.mapdata.webmap.AbstractTileFactory
-
- org.meteoinfo.data.mapdata.webmap.DefaultTileFactory
-
- org.meteoinfo.data.mapdata.webmap.bmng.CylindricalProjectionTileFactory
-
public class CylindricalProjectionTileFactory extends DefaultTileFactory
-
-
构造器概要
构造器 构造器 说明 CylindricalProjectionTileFactory()CylindricalProjectionTileFactory(SLMapServerInfo info)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.awt.geom.Point2DgeoToPixel(GeoPosition c, int zoom)Convert a GeoPosition to a pixel position in the world bitmap a the specified zoom level.java.awt.DimensiongetMapSize(int zoom)Returns a Dimension containing the width and height of the map, in tiles at the current zoom level.GeoPositionpixelToGeo(java.awt.geom.Point2D pix, int zoom)Convert a pixel in the world bitmap at the specified zoom level into a GeoPosition-
从类继承的方法 org.meteoinfo.data.mapdata.webmap.AbstractTileFactory
createTileRunner, getService, getTile, getTileCache, getURI, load, promote, setThreadPoolSize, setTileCache, startLoading
-
从类继承的方法 org.meteoinfo.data.mapdata.webmap.TileFactory
getInfo, getTileSize
-
-
-
-
构造器详细资料
-
CylindricalProjectionTileFactory
public CylindricalProjectionTileFactory()
-
CylindricalProjectionTileFactory
public CylindricalProjectionTileFactory(SLMapServerInfo info)
-
-
方法详细资料
-
getMapSize
public java.awt.Dimension getMapSize(int zoom)
从类复制的说明:TileFactoryReturns a Dimension containing the width and height of the map, in tiles at the current zoom level. So a Dimension that returns 10x20 would be 10 tiles wide and 20 tiles tall. These values can be multipled by getTileSize() to determine the pixel width/height for the map at the given zoom level- 覆盖:
getMapSize在类中TileFactory- 参数:
zoom- the current zoom level- 返回:
- the size of the world bitmap in tiles
-
geoToPixel
public java.awt.geom.Point2D geoToPixel(GeoPosition c, int zoom)
从类复制的说明:TileFactoryConvert a GeoPosition to a pixel position in the world bitmap a the specified zoom level.- 覆盖:
geoToPixel在类中TileFactory- 参数:
c- a GeoPositionzoom- the zoom level to extract the pixel coordinate for- 返回:
- the pixel point
-
pixelToGeo
public GeoPosition pixelToGeo(java.awt.geom.Point2D pix, int zoom)
从类复制的说明:TileFactoryConvert a pixel in the world bitmap at the specified zoom level into a GeoPosition- 覆盖:
pixelToGeo在类中TileFactory- 参数:
pix- a Point2D representing a pixel in the world bitmapzoom- the zoom level of the world bitmap- 返回:
- the converted GeoPosition
-
-