Class SystemCssColor

java.lang.Object
org.jhotdraw8.draw.css.value.CssColor
org.jhotdraw8.draw.css.value.SystemCssColor
All Implemented Interfaces:
Paintable

public class SystemCssColor extends CssColor
Represents a system color in a cascading stylesheet.

References:

CSS Color Module Level 4, System Colors
w3.org/
  • Field Details

  • Constructor Details

    • SystemCssColor

      public SystemCssColor(String name, javafx.scene.paint.Color color)
  • Method Details

    • of

      public static SystemCssColor of(String name)
      Creates a system color for the given name.

      The name is not case sensitive.

      If the name is unknown, then null is returned.

      Parameters:
      name - the name of the system color
      Returns:
      the system color or null
    • isSystemColor

      public static boolean isSystemColor(String name)
      Returns true if the given name is a known system color.

      The name is not case sensitive.

      Parameters:
      name - a name
      Returns:
      true if known