Package dev.webfx.kit.launcher
Class WebFxKitLauncher
java.lang.Object
dev.webfx.kit.launcher.WebFxKitLauncher
- Author:
- Bruno Salmon
-
Property Summary
Properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CanvascreateCanvas(boolean willReadFrequently) static CanvascreateCanvas(double width, double height, boolean willReadFrequently) static Canvasstatic CanvascreateWillReadFrequentlyCanvas(double width, double height) static booleanstatic Applicationstatic doublegetCanvasPixelDensity(Canvas canvas) static doublestatic FastPixelReaderWritergetFastPixelReaderWriter(Image image) static GraphicsContextgetGraphicsContext2D(Canvas canvas, boolean willReadFrequently) static Stagestatic WebFxKitLauncherProviderstatic InsetsGets the value of thesafeAreaInsetsproperty.static doublestatic StringgetWebFxCssResourcePath(String webFxCssPath) static booleanstatic booleanisReady()static voidlaunchApplication(dev.webfx.platform.util.function.Factory<Application> applicationFactory, String... args) static ObservableList<Font>static doublemeasureBaselineOffset(Font font) static BoundsmeasureText(String text, Font font) static voidstatic booleanrequestNodeFullscreen(Node node) static ReadOnlyObjectProperty<Insets>static voidsetCanvasPixelDensity(Canvas canvas, double pixelDensity) static booleanstatic boolean
-
Property Details
-
safeAreaInsets
- See Also:
-
-
Constructor Details
-
WebFxKitLauncher
public WebFxKitLauncher()
-
-
Method Details
-
getProvider
-
launchApplication
public static void launchApplication(dev.webfx.platform.util.function.Factory<Application> applicationFactory, String... args) -
isReady
public static boolean isReady() -
onReady
-
getApplication
-
getPrimaryStage
-
getVerticalScrollbarExtraWidth
public static double getVerticalScrollbarExtraWidth() -
supportsSvgImageFormat
public static boolean supportsSvgImageFormat() -
supportsWebPImageFormat
public static boolean supportsWebPImageFormat() -
getFastPixelReaderWriter
-
createWillReadFrequentlyCanvas
-
createWillReadFrequentlyCanvas
-
createCanvas
-
createCanvas
-
getGraphicsContext2D
-
setCanvasPixelDensity
-
getCanvasPixelDensity
-
getDefaultCanvasPixelDensity
public static double getDefaultCanvasPixelDensity() -
measureText
-
measureBaselineOffset
-
loadingFonts
-
getWebFxCssResourcePath
-
safeAreaInsetsProperty
- Returns:
- the
safeAreaInsetsproperty - See Also:
-
getSafeAreaInsets
Gets the value of thesafeAreaInsetsproperty.- Property description:
- Returns:
- the value of the
safeAreaInsetsproperty - See Also:
-
isFullscreenEnabled
public static boolean isFullscreenEnabled() -
requestNodeFullscreen
-
exitFullscreen
public static boolean exitFullscreen()
-