Example usage for javafx.application Platform isSupported

List of usage examples for javafx.application Platform isSupported

Introduction

In this page you can find the example usage for javafx.application Platform isSupported.

Prototype

public static boolean isSupported(ConditionalFeature feature) 

Source Link

Document

Queries whether a specific conditional feature is supported by the platform.

Usage

From source file:net.rptools.tokentool.client.TokenTool.java

@Override
public void init() throws Exception {
    appInstance = this;
    VERSION = getVersion();//from ww w .  j a va2 s  . c o  m

    // Lets install/update the overlays if newer version
    AppSetup.install(VERSION);
    log = LogManager.getLogger(TokenTool.class);
    log.info("3D Hardware Available? " + Platform.isSupported(ConditionalFeature.SCENE3D));

    // Now lets cache any overlays we find and update preLoader with progress
    overlayCount = (int) Files.walk(AppConstants.OVERLAY_DIR.toPath()).filter(Files::isRegularFile).count();
    overlayTreeItems = cacheOverlays(AppConstants.OVERLAY_DIR, null, THUMB_SIZE);

    // All Done!
    notifyPreloader(new Preloader.ProgressNotification(1.0));
}