Interface GTRendererJFX
- All Known Implementing Classes:
CachedRendererJFX,StreamingRendererJFX
public interface GTRendererJFX
A geotools renderer that work with underlying JavaFX components.
- Author:
- Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.canvas.CanvasGet the displayCanvas.voidpaint(org.geotools.map.MapContent content, double w, double h, org.geotools.geometry.jts.ReferencedEnvelope area) Renders the given map content onto the internalCanvas.voidSignals the current render to stop after the current feature.
-
Method Details
-
getCanvas
javafx.scene.canvas.Canvas getCanvas()Get the displayCanvas. Add it to the JavaFX scene graph to show the rendered map.- Returns:
- the display canvas
-
paint
void paint(org.geotools.map.MapContent content, double w, double h, org.geotools.geometry.jts.ReferencedEnvelope area) Renders the given map content onto the internalCanvas.Must be called on the JavaFX application thread.
- Parameters:
content- the map content to renderw- target width in pixelsh- target height in pixelsarea- the world-coordinate envelope to render
-
stopRendering
void stopRendering()Signals the current render to stop after the current feature. Safe to call from any thread.
-