org.apache.batik.dom.svg
Class SVGStylableSupport

java.lang.Object
  |
  +--org.apache.batik.dom.svg.SVGStylableSupport

public class SVGStylableSupport
extends java.lang.Object

This class provides support for implementing a stylable element.


Field Summary
static java.lang.String CLASS
          The name of the class attribute.
protected  java.lang.ref.WeakReference inlineStyle
          The reference to the inline style.
protected  OverrideStyleElementSupport overrideStyleSupport
          The override style support.
static java.lang.String STYLE
          The name of the style attribute.
 
Constructor Summary
SVGStylableSupport()
          Creates a new SVGStylableSupport object.
 
Method Summary
 SVGAnimatedString getClassName(Element elt)
          To implement SVGStylable.getClassName().
 CSSStyleDeclaration getOverrideStyle(java.lang.String pseudoElt, Element elt)
          To implements OverrideStyleElement.getOverrideStyle(String).
 CSSValue getPresentationAttribute(java.lang.String name, Element elt)
          To implement SVGStylable.getPresentationAttribute(String).
 CSSStyleDeclaration getStyle(Element elt)
          To implement SVGStylable.getStyle().
 boolean hasOverrideStyle(java.lang.String pseudoElt)
          To implements OverrideStyleElement.hasOverrideStyle(String).
static boolean hasStyle(Element elt)
          To implement ExtendedElementCSSInlineStyle.hasStyle().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STYLE

public static final java.lang.String STYLE
The name of the style attribute.

CLASS

public static final java.lang.String CLASS
The name of the class attribute.

inlineStyle

protected java.lang.ref.WeakReference inlineStyle
The reference to the inline style.

overrideStyleSupport

protected OverrideStyleElementSupport overrideStyleSupport
The override style support.
Constructor Detail

SVGStylableSupport

public SVGStylableSupport()
Creates a new SVGStylableSupport object.
Method Detail

hasStyle

public static boolean hasStyle(Element elt)
To implement ExtendedElementCSSInlineStyle.hasStyle().

getStyle

public CSSStyleDeclaration getStyle(Element elt)
To implement SVGStylable.getStyle().

getPresentationAttribute

public CSSValue getPresentationAttribute(java.lang.String name,
                                         Element elt)
To implement SVGStylable.getPresentationAttribute(String).

getClassName

public SVGAnimatedString getClassName(Element elt)
To implement SVGStylable.getClassName().

hasOverrideStyle

public boolean hasOverrideStyle(java.lang.String pseudoElt)
To implements OverrideStyleElement.hasOverrideStyle(String).

getOverrideStyle

public CSSStyleDeclaration getOverrideStyle(java.lang.String pseudoElt,
                                            Element elt)
To implements OverrideStyleElement.getOverrideStyle(String).


Copyright © 2001 Apache Software Foundation. All Rights Reserved.