Class SimpleViewer


  • public class SimpleViewer
    extends javafx.application.Application
    Application for viewing GIS primitives.
    Since:
    14.0
    Version:
    17.0 2020-01-04 14:41:56
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.gis.ui
    Maven Artifact Id:
    gisroadfx
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javafx.application.Application

        javafx.application.Application.Parameters
    • Field Summary

      • Fields inherited from class javafx.application.Application

        STYLESHEET_CASPIAN, STYLESHEET_MODENA
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleViewer()  
    • Constructor Detail

      • SimpleViewer

        public SimpleViewer()
    • Method Detail

      • toJavaFX

        @Pure
        public static javafx.stage.FileChooser.ExtensionFilter toJavaFX​(FileFilter filter)
        Convert the given standard file filter to its equivalent JavaFX file filter.
        Parameters:
        filter - the standard file filter to convert.
        Returns:
        the JavaFX file filter.
      • start

        public void start​(javafx.stage.Stage primaryStage)
        Specified by:
        start in class javafx.application.Application
      • getElementUnderMouse

        public MapElement getElementUnderMouse​(GisPane<?> pane,
                                               double x,
                                               double y)
        Replies the element at the given mouse position.
        Parameters:
        pane - the element pane.
        x - the x position of the mouse.
        y - the y position of the mouse.
        Returns:
        the element.
        Since:
        15.0
      • main

        public static void main​(String[] args)
        Main program.
        Parameters:
        args - the command line arguments.