Class WebViews

java.lang.Object
qupath.lib.gui.tools.WebViews

public class WebViews extends Object
Helper class for creating a WebView in a standardized way.
Since:
v0.4.0
Author:
Pete Bankhead
  • Constructor Details

    • WebViews

      public WebViews()
  • Method Details

    • create

      public static WebView create(boolean bindStylesheetToStyle)
      Create a new WebView.
      Parameters:
      bindStylesheetToStyle - if true, update the user stylesheet location for the WebEngine automatically based on the current QuPath style (e.g. dark mode)
      Returns:
      Since:
      v0.4.0
      See Also:
    • bindUserStylesheetToStyle

      public static void bindUserStylesheetToStyle(WebEngine engine)
      Bind the WebEngine.userStyleSheetLocationProperty() to a stylesheet determined based on QuPath's current style (e.g. light or dark mode, serif or sans-serif fonts).
      Parameters:
      engine -