blob: 15b2f4d1eb9a9a5656a34a0a2fab7daebd125080 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
* SVGStylable.java
*
* Created on April 12, 2007, 3:00 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.kitfox.salamander.svg.basic;
import com.kitfox.salamander.svg.DOMString;
import org.w3c.dom.css.CSSStyleDeclaration;
import org.w3c.dom.css.CSSValue;
/**
*
* @author kitfox
*/
public interface SVGStylable
{
/**
* Corresponds to attribute class on the given element.
*/
public SVGAnimatedString getClassName();
/**
* Corresponds to attribute style on the given element. If the user agent does not support styling with CSS, then this attribute must always have the value of null.
*/
public CSSStyleDeclaration getStyle();
/**
* Returns the base (i.e., static) value of a given presentation attribute as an object of type CSSValue. The returned object is live; changes to the objects represent immediate changes to the objects to which the CSSValue is attached.
* @param name Retrieves a "presentation attribute" by name.
* @return The static/base value of the given presentation attribute as a CSSValue, or NULL if the given attribute does not have a specified value.
*/
public CSSValue getPresentationAttribute(DOMString name);
}
|