当前位置: 首页>>代码示例>>Java>>正文


Java GraphicFactory类代码示例

本文整理汇总了Java中org.mapsforge.core.graphics.GraphicFactory的典型用法代码示例。如果您正苦于以下问题:Java GraphicFactory类的具体用法?Java GraphicFactory怎么用?Java GraphicFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


GraphicFactory类属于org.mapsforge.core.graphics包,在下文中一共展示了GraphicFactory类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Pin

import org.mapsforge.core.graphics.GraphicFactory; //导入依赖的package包/类
/** 
 * Create a pin with category and label.
 * 
 * @param latLong position
 * @param category text in the pin
 * @param label text below the pin
 * @param gf GraphicFactory
 */
public Pin(LatLong latLong, String category, String label, GraphicFactory gf) {
    super();

    this.latLong = latLong;
    this.category = category;
    this.label = label;
    this.gf = gf;
    
    if (gf.getClass().getSimpleName().equals("AndroidGraphicFactory")) {
    	scale = 1.0f;
    }
}
 
开发者ID:OsmHackTW,项目名称:Geomancer,代码行数:21,代码来源:Pin.java

示例2: initialize

import org.mapsforge.core.graphics.GraphicFactory; //导入依赖的package包/类
@Override
public void initialize() throws MapSourceInitializationException {
	GraphicFactory graphicFactory = AwtGraphicFactory.INSTANCE;
	if (!mapFile.exists())
		throw new MapSourceInitializationException("File does not exist: " + mapFile.getAbsolutePath());
	multiMapDataStore = new MultiMapDataStore(MultiMapDataStore.DataPolicy.RETURN_FIRST);
	multiMapDataStore.addMapDataStore(new MapFile(mapFile), true, true);

	renderer = new DatabaseRenderer(multiMapDataStore, graphicFactory, tileCache);
	renderThemeFuture = new RenderThemeFuture(graphicFactory, xmlRenderTheme, displayModel);
	// new Thread(renderThemeFuture).start();
	renderThemeFuture.run();
	// renderThemeFuture = new RenderThemeFuture(graphicFactory, xmlRenderTheme, displayModel);
	// renderThemeFuture.run();
}
 
开发者ID:bh4017,项目名称:mobac,代码行数:16,代码来源:MapsforgeMapSource.java

示例3: AlternatingLine

import org.mapsforge.core.graphics.GraphicFactory; //导入依赖的package包/类
public AlternatingLine(GraphicFactory graphicFactory) {
	super(null, graphicFactory);
	for (int i = 0; i < paints.length; i++) {
		paints[i] = AndroidGraphicFactory.INSTANCE.createPaint();
		paints[i].setStrokeWidth(16);
		paints[i].setStyle(Style.STROKE);
	}
	paints[0].setColor(AndroidGraphicFactory.INSTANCE.createColor(Color.GREEN));
	paints[1].setColor(AndroidGraphicFactory.INSTANCE.createColor(255, 255, 255, 0));
	paints[2].setColor(AndroidGraphicFactory.INSTANCE.createColor(Color.RED));
}
 
开发者ID:emdete,项目名称:tabulae,代码行数:12,代码来源:AlternatingLine.java

示例4: AlternatingLine

import org.mapsforge.core.graphics.GraphicFactory; //导入依赖的package包/类
public AlternatingLine(GraphicFactory graphicFactory) {
	super(null, graphicFactory);
	this.graphicFactory = graphicFactory;
}
 
开发者ID:emdete,项目名称:Simplicissimus,代码行数:5,代码来源:AlternatingLine.java

示例5: RasterLayer

import org.mapsforge.core.graphics.GraphicFactory; //导入依赖的package包/类
public RasterLayer(Context context, TileCache tileCache, MapViewPosition mapViewPosition, boolean isTransparent,
		GraphicFactory graphicFactory, final RasterRenderer pRasterRenderer, final IWorkStatus status) {
	super(tileCache, mapViewPosition, graphicFactory.createMatrix(), isTransparent);

	this.rasterFile = new File(pRasterRenderer.getFilePath());

	this.rasterRenderer = pRasterRenderer;
	
	this.mStatus = status;
	
	this.mProcCount = Runtime.getRuntime().availableProcessors();
}
 
开发者ID:RoProducts,项目名称:rastertheque,代码行数:13,代码来源:RasterLayer.java

示例6: GDALMapsforgeRenderer

import org.mapsforge.core.graphics.GraphicFactory; //导入依赖的package包/类
public GDALMapsforgeRenderer(GraphicFactory graphicFactory, final GDALDataset pRaster) {
	
	this.graphicFactory = graphicFactory;
	
	this.mRasterDataset = pRaster;
	
}
 
开发者ID:RoProducts,项目名称:rastertheque,代码行数:8,代码来源:GDALMapsforgeRenderer.java

示例7: PinGroup

import org.mapsforge.core.graphics.GraphicFactory; //导入依赖的package包/类
/**
 * Create a PinGroup
 * 
 * @param category text in the pin
 * @param gf GraphicFactory
 * @param proj Projection
 */
public PinGroup(String category, GraphicFactory gf, MapViewProjection proj) {
	this.category = category;
	this.gf = gf;
	this.proj = proj;
}
 
开发者ID:OsmHackTW,项目名称:Geomancer,代码行数:13,代码来源:PinGroup.java

示例8: MBTilesMapsforgeRenderer

import org.mapsforge.core.graphics.GraphicFactory; //导入依赖的package包/类
public MBTilesMapsforgeRenderer(GraphicFactory graphicFactory, final MBTilesDataset pDataset) {
	
	this.mDataset = pDataset;
	
	this.graphicFactory = graphicFactory;
}
 
开发者ID:RoProducts,项目名称:rastertheque,代码行数:7,代码来源:MBTilesMapsforgeRenderer.java


注:本文中的org.mapsforge.core.graphics.GraphicFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。