Package dev.webfx.kit.launcher
Class WebFxKitLauncher
java.lang.Object
dev.webfx.kit.launcher.WebFxKitLauncher
- Author:
- Bruno Salmon
-
Constructor Summary
Constructors -
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 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 void
setCanvasPixelDensity
(Canvas canvas, double pixelDensity) static boolean
static boolean
-
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
-