Class AbstractAtlantaFXTheme

java.lang.Object
org.jhotdraw8.theme.AbstractTheme
org.jhotdraw8.theme.atlantafx.AbstractAtlantaFXTheme
All Implemented Interfaces:
Theme
Direct Known Subclasses:
NordDarkTheme, NordLightTheme, PrimerDarkTheme, PrimerLightTheme

public abstract class AbstractAtlantaFXTheme extends AbstractTheme
Abstract base class for AtlantaFX themes.

References:

AtlantaFX, Copyright (c) 2022 mkpaz, MIT License
github.com
  • Constructor Details

    • AbstractAtlantaFXTheme

      protected AbstractAtlantaFXTheme(String name, String appearance, String uaStylesheetUrl)
  • Method Details

    • createUserAgentStylesheet

      public String createUserAgentStylesheet(@NonNull ThemeParameters params)
      Description copied from interface: Theme
      Generates a user agent stylesheet that can be set on Application.setUserAgentStylesheet(String).

      The stylesheet must be a URL. If the stylesheet is generated dynamically, the stylesheet can be a String that is converted into a Data URL. See Theme.toDataUrl(String).

      Parameters:
      params - parameters for generating the stylesheet
      Returns:
      a stylesheet URL