java.lang.Object
javafx.application.Application
com.dlsc.gmapsfx.MainApp2
- All Implemented Interfaces:
MapComponentInitializedListener,DirectionsServiceCallback,ElevationServiceCallback,GeocodingServiceCallback
public class MainApp2 extends javafx.application.Application implements MapComponentInitializedListener, ElevationServiceCallback, GeocodingServiceCallback, DirectionsServiceCallback
Example Application for creating and loading a GoogleMap into a JavaFX
application
- Author:
- Rob Terpilowski
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description protected DirectionsPanedirectionsprotected GoogleMapmapprotected GoogleMapViewmapComponent -
Constructor Summary
Constructors Constructor Description MainApp2() -
Method Summary
Modifier and Type Method Description voiddirectionsReceived(DirectionsResult results, DirectionStatus status)voidelevationsReceived(ElevationResult[] results, ElevationStatus status)voidgeocodedResultsReceived(GeocodingResult[] results, GeocoderStatus status)static voidmain(String[] args)The main() method is ignored in correctly deployed JavaFX application.voidmapInitialized()voidstart(javafx.stage.Stage stage)
-
Field Details
-
Constructor Details
-
MainApp2
public MainApp2()
-
-
Method Details
-
start
- Specified by:
startin classjavafx.application.Application- Throws:
Exception
-
mapInitialized
public void mapInitialized()- Specified by:
mapInitializedin interfaceMapComponentInitializedListener
-
main
The main() method is ignored in correctly deployed JavaFX application. main() serves only as fallback in case the application can not be launched through deployment artifacts, e.g., in IDEs with limited FX support. NetBeans ignores main().- Parameters:
args- the command line arguments
-
elevationsReceived
- Specified by:
elevationsReceivedin interfaceElevationServiceCallback
-
geocodedResultsReceived
- Specified by:
geocodedResultsReceivedin interfaceGeocodingServiceCallback
-
directionsReceived
- Specified by:
directionsReceivedin interfaceDirectionsServiceCallback
-