Package dev.webfx.kit.launcher
Class WebFxKitLauncher
java.lang.Object
dev.webfx.kit.launcher.WebFxKitLauncher
- Author:
- Bruno Salmon
-
Property Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Canvas
createCanvas
(boolean willReadFrequently) static Canvas
createCanvas
(double width, double height, boolean willReadFrequently) static Canvas
static Canvas
createWillReadFrequentlyCanvas
(double width, double height) static Application
static double
getCanvasPixelDensity
(Canvas canvas) static double
static FastPixelReaderWriter
getFastPixelReaderWriter
(Image image) static GraphicsContext
getGraphicsContext2D
(Canvas canvas, boolean willReadFrequently) static Stage
static WebFxKitLauncherProvider
static Insets
Gets the value of thesafeAreaInsets
property.static double
static String
getWebFxCssResourcePath
(String webFxCssPath) static boolean
isReady()
static void
launchApplication
(dev.webfx.platform.util.function.Factory<Application> applicationFactory, String... args) static ObservableList<Font>
static double
measureBaselineOffset
(Font font) static Bounds
measureText
(String text, Font font) static void
static ReadOnlyObjectProperty<Insets>
static void
setCanvasPixelDensity
(Canvas canvas, double pixelDensity) static boolean
static 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
safeAreaInsets
property - See Also:
-
getSafeAreaInsets
Gets the value of thesafeAreaInsets
property.- Property description:
- Returns:
- the value of the
safeAreaInsets
property - See Also:
-