public LabelLayer(GraphicFactory graphicFactory, LabelStore labelStore) { this.labelStore = labelStore; this.matrix = graphicFactory.createMatrix(); this.lastLabelStoreVersion = -1; }
public FrameBuffer(FrameBufferModel frameBufferModel, DisplayModel displayModel, GraphicFactory graphicFactory) { this.frameBufferModel = frameBufferModel; this.displayModel = displayModel; this.graphicFactory = graphicFactory; this.matrix = graphicFactory.createMatrix(); }
public TileStoreLayer(TileCache tileCache, IMapViewPosition mapViewPosition, GraphicFactory graphicFactory, boolean isTransparent) { super(tileCache, mapViewPosition, graphicFactory.createMatrix(), isTransparent, false); }
public CanvasRasterer(GraphicFactory graphicFactory) { this.canvas = graphicFactory.createCanvas(); this.path = graphicFactory.createPath(); this.symbolMatrix = graphicFactory.createMatrix(); }
public TileDownloadLayer(TileCache tileCache, IMapViewPosition mapViewPosition, TileSource tileSource, GraphicFactory graphicFactory) { super(tileCache, mapViewPosition, graphicFactory.createMatrix(), tileSource.hasAlpha()); this.tileCache = tileCache; this.tileSource = tileSource; this.cacheTimeToLive = tileSource.getDefaultTimeToLive(); this.graphicFactory = graphicFactory; }
/** * Creates a TileRendererLayer. * * @param tileCache cache where tiles are stored * @param mapDataStore the mapsforge map file * @param mapViewPosition the mapViewPosition to know which tiles to render * @param isTransparent true if the tile should have an alpha/transparency * @param renderLabels true if labels should be rendered onto tiles * @param cacheLabels true if labels should be cached in a LabelStore * @param graphicFactory the graphicFactory to carry out platform specific operations * @param hillsRenderConfig the hillshading setup to be used (can be null) */ public TileRendererLayer(TileCache tileCache, MapDataStore mapDataStore, IMapViewPosition mapViewPosition, boolean isTransparent, boolean renderLabels, boolean cacheLabels, GraphicFactory graphicFactory, HillsRenderConfig hillsRenderConfig) { super(tileCache, mapViewPosition, graphicFactory.createMatrix(), isTransparent); this.graphicFactory = graphicFactory; this.mapDataStore = mapDataStore; if (cacheLabels) { this.tileBasedLabelStore = new TileBasedLabelStore(tileCache.getCapacityFirstLevel()); } else { this.tileBasedLabelStore = null; } this.databaseRenderer = new DatabaseRenderer(this.mapDataStore, graphicFactory, tileCache, tileBasedLabelStore, renderLabels, cacheLabels, hillsRenderConfig); this.textScale = 1; }
public FrameBuffer(FrameBufferModel frameBufferModel, DisplayModel displayModel, GraphicFactory graphicFactory) { this.frameBufferModel = frameBufferModel; this.displayModel = displayModel; this.graphicFactory = graphicFactory; this.matrix = graphicFactory.createMatrix(); }
public LabelLayer(GraphicFactory graphicFactory, LabelStore labelStore) { this.labelStore = labelStore; this.matrix = graphicFactory.createMatrix(); this.lastLabelStoreVersion = -1; }
public TileStoreLayer(TileCache tileCache, IMapViewPosition mapViewPosition, GraphicFactory graphicFactory, boolean isTransparent) { super(tileCache, mapViewPosition, graphicFactory.createMatrix(), isTransparent, false); }
public TileDownloadLayer(TileCache tileCache, IMapViewPosition mapViewPosition, TileSource tileSource, GraphicFactory graphicFactory) { super(tileCache, mapViewPosition, graphicFactory.createMatrix(), tileSource.hasAlpha()); this.tileCache = tileCache; this.tileSource = tileSource; this.cacheTimeToLive = tileSource.getDefaultTimeToLive(); this.graphicFactory = graphicFactory; }
public CanvasRasterer(GraphicFactory graphicFactory) { this.canvas = graphicFactory.createCanvas(); this.path = graphicFactory.createPath(); this.symbolMatrix = graphicFactory.createMatrix(); }
/** * Creates a TileRendererLayer. * * @param tileCache cache where tiles are stored * @param mapDataStore the mapsforge map file * @param mapViewPosition the mapViewPosition to know which tiles to render * @param isTransparent true if the tile should have an alpha/transparency * @param renderLabels true if labels should be rendered onto tiles * @param cacheLabels true if labels should be cached in a LabelStore * @param graphicFactory the graphicFactory to carry out platform specific operations * @param hillsRenderConfig the hillshading setup to be used (can be null) */ public TileRendererLayer(TileCache tileCache, MapDataStore mapDataStore, IMapViewPosition mapViewPosition, boolean isTransparent, boolean renderLabels, boolean cacheLabels, GraphicFactory graphicFactory, HillsRenderConfig hillsRenderConfig) { super(tileCache, mapViewPosition, graphicFactory.createMatrix(), isTransparent); this.graphicFactory = graphicFactory; this.mapDataStore = mapDataStore; if (cacheLabels) { this.tileBasedLabelStore = new TileBasedLabelStore(tileCache.getCapacityFirstLevel()); } else { this.tileBasedLabelStore = null; } this.databaseRenderer = new DatabaseRenderer(this.mapDataStore, graphicFactory, tileCache, tileBasedLabelStore, renderLabels, cacheLabels, hillsRenderConfig); this.textScale = 1; }