Enum Class SvgPaintDefaulting

java.lang.Object
java.lang.Enum<SvgPaintDefaulting>
org.jhotdraw8.svg.css.SvgPaintDefaulting
All Implemented Interfaces:
Serializable, Comparable<SvgPaintDefaulting>, Constable

public enum SvgPaintDefaulting extends Enum<SvgPaintDefaulting>
CSS Color defaulting keywords can be applied to all color properties in HTML and SVG.

References:

SVG Tiny 1.2 Specifying Paint
w3.org
  • Enum Constant Details

    • CURRENT_COLOR

      public static final SvgPaintDefaulting CURRENT_COLOR
      Indicates that painting shall be done using the color specified by the current animated value of the 'color' property.
    • INHERIT

      public static final SvgPaintDefaulting INHERIT
      If the cascaded value of a property is the "inherit" keyword, the property's specified and computed values are the inherited value.
  • Method Details

    • values

      public static SvgPaintDefaulting[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SvgPaintDefaulting valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null