org.jpedal.examples.viewer.commands.javafx.JavaFXFullScreen Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OpenViewerFX Show documentation
Show all versions of OpenViewerFX Show documentation
Open Source (LGPL) JavaFX PDF Viewer
/*
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.idrsolutions.com
* Help section for developers at http://www.idrsolutions.com/support/
*
* (C) Copyright 1997-2017 IDRsolutions and Contributors.
*
* This file is part of JPedal/JPDF2HTML5
*
@LICENSE@
*
* ---------------
* JavaFXFullScreen.java
* ---------------
*/
package org.jpedal.examples.viewer.commands.javafx;
import javafx.stage.Stage;
import org.jpedal.gui.GUIFactory;
/**
* Toggles between FullScreen.
*/
public class JavaFXFullScreen {
private static boolean toggler = true;
public static void execute(final Object[] args, final GUIFactory currentGUI) {
if (args == null) {
((Stage) currentGUI.getFrame()).setFullScreen(toggler);
toggler = !toggler;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy