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 Type
    Method
    Description
    javafx.scene.canvas.Canvas
    Get the display Canvas.
    void
    paint(org.geotools.map.MapContent content, double w, double h, org.geotools.geometry.jts.ReferencedEnvelope area)
    Renders the given map content onto the internal Canvas.
    void
    Signals the current render to stop after the current feature.
  • Method Details

    • getCanvas

      javafx.scene.canvas.Canvas getCanvas()
      Get the display Canvas. 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 internal Canvas.

      Must be called on the JavaFX application thread.

      Parameters:
      content - the map content to render
      w - target width in pixels
      h - target height in pixels
      area - 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.