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
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.static ReadOnlyStringProperty
- 
Constructor Details- 
WebViewspublic WebViews()
 
- 
- 
Method Details- 
createCreate a newWebView.- Parameters:
- bindStylesheetToStyle- if true, update the user stylesheet location for the- WebEngineautomatically based on the current QuPath style (e.g. dark mode)
- Returns:
- Since:
- v0.4.0
- See Also:
 
- 
bindUserStylesheetToStyleBind 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-
 
- 
getStyleSheet- Returns:
- a stylesheet based on QuPath's current style (e.g. light or dark mode, serif or sans-serif fonts)
 
 
-