Class SvgAttributeInheritance

  • All Implemented Interfaces:
    IStyleInheritance

    public class SvgAttributeInheritance
    extends java.lang.Object
    implements IStyleInheritance
    Helper class that allows you to check if a property is inheritable.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Set<java.lang.String> inheritableProperties
      Set of inheritable SVG style attributes in accordance with "https://www.w3.org/TR/SVG2/propidx.html".
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isInheritable​(java.lang.String cssProperty)
      Checks if a property or attribute is inheritable is inheritable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • inheritableProperties

        private static final java.util.Set<java.lang.String> inheritableProperties
        Set of inheritable SVG style attributes in accordance with "https://www.w3.org/TR/SVG2/propidx.html".
    • Constructor Detail

      • SvgAttributeInheritance

        public SvgAttributeInheritance()
    • Method Detail

      • isInheritable

        public boolean isInheritable​(java.lang.String cssProperty)
        Description copied from interface: IStyleInheritance
        Checks if a property or attribute is inheritable is inheritable.
        Specified by:
        isInheritable in interface IStyleInheritance
        Parameters:
        cssProperty - the identifier for property
        Returns:
        true, if the property is inheritable, false otherwise