Package com.itextpdf.svg.css.impl
Class SvgAttributeInheritance
- java.lang.Object
-
- com.itextpdf.svg.css.impl.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".
-
Constructor Summary
Constructors Constructor Description SvgAttributeInheritance()
-
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.
-
-
-
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 interfaceIStyleInheritance
- Parameters:
cssProperty
- the identifier for property- Returns:
- true, if the property is inheritable, false otherwise
-
-