Package qupath.lib.gui.tools
Class WebViews
java.lang.Object
qupath.lib.gui.tools.WebViews
Helper class for creating a
WebView
in a standardized way.- Since:
- v0.4.0
- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
bindUserStylesheetToStyle
(WebEngine engine) Bind theWebEngine.userStyleSheetLocationProperty()
to a stylesheet determined based on QuPath's current style (e.g.static WebView
create
(boolean bindStylesheetToStyle) Create a newWebView
.
-
Constructor Details
-
WebViews
public WebViews()
-
-
Method Details
-
create
Create a newWebView
.- Parameters:
bindStylesheetToStyle
- if true, update the user stylesheet location for theWebEngine
automatically based on the current QuPath style (e.g. dark mode)- Returns:
- Since:
- v0.4.0
- See Also:
-
bindUserStylesheetToStyle
Bind theWebEngine.userStyleSheetLocationProperty()
to a stylesheet determined based on QuPath's current style (e.g. light or dark mode, serif or sans-serif fonts).- Parameters:
engine
-
-