|
12 | 12 |
|
13 | 13 | package org.w3c.dom.svg;
|
14 | 14 |
|
| 15 | +import org.w3c.css.om.CSSStyleDeclaration; |
| 16 | +import org.w3c.css.om.typed.CSSStyleValue; |
15 | 17 | import org.w3c.dom.css.CSSValue;
|
16 | 18 |
|
17 | 19 | /**
|
18 | 20 | * This interface is implemented on all objects corresponding to SVG elements
|
19 | 21 | * that can have <code>style</code>, <code>class</code> and presentation
|
20 | 22 | * attributes specified on them.
|
21 | 23 | */
|
22 |
| -public interface SVGStylable extends SVGStylableP<CSSValue> { |
| 24 | +public interface SVGStylable { |
| 25 | + |
| 26 | + /** |
| 27 | + * Gets the attribute {@code class} on this element. |
| 28 | + * |
| 29 | + * @return the attribute {@code class}. |
| 30 | + */ |
| 31 | + SVGAnimatedString getClassName(); |
| 32 | + |
| 33 | + /** |
| 34 | + * Gets the inline style of this element. |
| 35 | + * |
| 36 | + * @return the inline style. |
| 37 | + */ |
| 38 | + CSSStyleDeclaration getStyle(); |
23 | 39 |
|
24 | 40 | /**
|
25 | 41 | * Returns the base value of a given presentation attribute as an object.
|
26 | 42 | *
|
27 | 43 | * @param name the presentation attribute.
|
28 |
| - * @return the given presentation attribute as an object. |
| 44 | + * @return the given presentation attribute as a {@code CSSValue}, {@code null} |
| 45 | + * if no value was defined for the given attribute or this |
| 46 | + * implementation does not support the {@code CSSValue} API. |
29 | 47 | */
|
30 |
| - @Override |
31 | 48 | @Deprecated
|
32 | 49 | default CSSValue getPresentationAttribute(String name) {
|
33 | 50 | return null;
|
34 | 51 | }
|
35 | 52 |
|
| 53 | + /** |
| 54 | + * Returns the base value of a given presentation attribute as an object. |
| 55 | + * |
| 56 | + * @param name the presentation attribute. |
| 57 | + * @return the given presentation attribute as a {@code CSSStyleValue}, |
| 58 | + * {@code null} if no value was defined for the given attribute or this |
| 59 | + * implementation does not support the {@code CSSStyleValue} API. |
| 60 | + */ |
| 61 | + default CSSStyleValue getPresentationAttributeValue(String name) { |
| 62 | + return null; |
| 63 | + } |
| 64 | + |
36 | 65 | }
|
0 commit comments