- java.lang.Object
-
- javafx.application.Application
-
- org.arakhne.afc.gis.road.ui.SimpleViewer
-
public class SimpleViewer extends javafx.application.ApplicationApplication 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
-
-
Constructor Summary
Constructors Constructor Description SimpleViewer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MapElementgetElementUnderMouse(GisPane<?> pane, double x, double y)Replies the element at the given mouse position.static voidmain(String[] args)Main program.voidstart(javafx.stage.Stage primaryStage)static javafx.stage.FileChooser.ExtensionFiltertoJavaFX(FileFilter filter)Convert the given standard file filter to its equivalent JavaFX file filter.
-
-
-
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:
startin classjavafx.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.
-
-