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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbindUserStylesheetToStyle(WebEngine engine) Bind theWebEngine.userStyleSheetLocationProperty()to a stylesheet determined based on QuPath's current style (e.g.static WebViewcreate(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 theWebEngineautomatically 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-
-