|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractParentChildNode
org.apache.batik.dom.AbstractElement
org.apache.batik.anim.dom.AbstractElement
org.apache.batik.anim.dom.SVGOMElement
org.apache.batik.anim.dom.SVGStylableElement
public abstract class SVGStylableElement
This class provides a common superclass for elements which implement SVGStylable.
| Nested Class Summary | |
|---|---|
protected class |
SVGStylableElement.OverrideStyleDeclaration
This class is a CSSStyleDeclaration for the override style of the element. |
class |
SVGStylableElement.PresentationAttributeColorValue
To manage a presentation attribute SVGColor value. |
class |
SVGStylableElement.PresentationAttributePaintValue
To manage a presentation attribute SVGPaint value. |
class |
SVGStylableElement.PresentationAttributeValue
To manage a presentation attribute value. |
class |
SVGStylableElement.StyleDeclaration
This class represents the 'style' attribute. |
| Nested classes/interfaces inherited from class org.apache.batik.anim.dom.SVGOMElement |
|---|
SVGOMElement.UnitContext |
| Nested classes/interfaces inherited from class org.apache.batik.anim.dom.AbstractElement |
|---|
AbstractElement.ExtendedNamedNodeHashMap |
| Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractElement |
|---|
AbstractElement.ElementTypeInfo, AbstractElement.Entry, AbstractElement.NamedNodeHashMap |
| Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
| Field Summary | |
|---|---|
protected SVGOMAnimatedString |
className
The 'class' attribute value. |
protected StyleMap |
computedStyleMap
The computed style map. |
protected SVGStylableElement.OverrideStyleDeclaration |
overrideStyleDeclaration
The override style declaration for this element. |
protected SVGStylableElement.StyleDeclaration |
style
The 'style' attribute value. |
protected static DoublyIndexedTable |
xmlTraitInformation
Table mapping XML attribute names to TraitInformation objects. |
| Fields inherited from class org.apache.batik.anim.dom.SVGOMElement |
|---|
prefix, readonly, svgContext, targetListeners, unitContext |
| Fields inherited from class org.apache.batik.anim.dom.AbstractElement |
|---|
liveAttributeValues |
| Fields inherited from class org.apache.batik.dom.AbstractElement |
|---|
attributes, typeInfo |
| Fields inherited from class org.apache.batik.dom.AbstractParentChildNode |
|---|
nextSibling, parentNode, previousSibling |
| Fields inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
childNodes |
| Fields inherited from class org.apache.batik.dom.AbstractNode |
|---|
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlers |
| Fields inherited from interface org.apache.batik.anim.dom.AnimationTarget |
|---|
PERCENTAGE_FONT_SIZE, PERCENTAGE_VIEWPORT_HEIGHT, PERCENTAGE_VIEWPORT_SIZE, PERCENTAGE_VIEWPORT_WIDTH |
| Constructor Summary | |
|---|---|
protected |
SVGStylableElement()
Creates a new SVGStylableElement object. |
protected |
SVGStylableElement(String prefix,
AbstractDocument owner)
Creates a new SVGStylableElement object. |
| Method Summary | |
|---|---|
void |
addTargetListener(String ns,
String an,
boolean isCSS,
AnimationTargetListener l)
Adds a listener for changes to the given attribute value. |
org.w3c.dom.svg.SVGAnimatedString |
getClassName()
DOM: Implements SVGStylable.getClassName(). |
StyleMap |
getComputedStyleMap(String pseudoElement)
Returns the computed style of this element/pseudo-element. |
ParsedURL |
getCSSBase()
Returns the CSS base URL of this element. |
String |
getCSSClass()
Returns the class of this element. |
org.w3c.dom.css.CSSStyleDeclaration |
getOverrideStyle()
Returns the override style declaration for this element. |
StyleDeclarationProvider |
getOverrideStyleDeclarationProvider()
Returns the object that gives access to the underlying StyleDeclaration for the override
style of this element. |
org.w3c.dom.css.CSSValue |
getPresentationAttribute(String name)
DOM: Implements SVGStylable.getPresentationAttribute(String). |
org.w3c.dom.css.CSSStyleDeclaration |
getStyle()
DOM: Implements SVGStylable.getStyle(). |
protected DoublyIndexedTable |
getTraitInformationTable()
Returns the table of TraitInformation objects for this element. |
String |
getXMLId()
Returns the ID of this element. |
protected void |
initializeAllLiveAttributes()
Initializes all live attributes for this element. |
boolean |
isPseudoInstanceOf(String pseudoClass)
Tells whether this element is an instance of the given pseudo class. |
void |
removeTargetListener(String ns,
String an,
boolean isCSS,
AnimationTargetListener l)
Removes a listener for changes to the given attribute value. |
void |
setComputedStyleMap(String pseudoElement,
StyleMap sm)
Sets the computed style of this element/pseudo-element. |
void |
updatePropertyValue(String pn,
AnimatableValue val)
Updates a property value in this target. |
boolean |
useLinearRGBColorInterpolation()
Returns whether color interpolations should be done in linear RGB color space rather than sRGB. |
| Methods inherited from class org.apache.batik.anim.dom.AbstractElement |
|---|
attrAdded, attrModified, attrRemoved, createAttributes, fireDOMAttrModifiedEvent, getAttributeInitializer, getCSSFirstChild, getCSSLastChild, getCSSNextSibling, getCSSParentNode, getCSSPreviousSibling, getLiveAttributeValue, initializeAttributes, isHiddenFromSelectors, putLiveAttributeValue, resetAttribute, setUnspecifiedAttribute |
| Methods inherited from class org.apache.batik.dom.AbstractParentChildNode |
|---|
getNextSibling, getParentNode, getPreviousSibling, setNextSibling, setParentNode, setPreviousSibling |
| Methods inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
appendChild, checkAndRemove, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getTextContent, hasChildNodes, insertBefore, removeChild, replaceChild |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Element |
|---|
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Methods inherited from interface org.apache.batik.dom.events.NodeEventTarget |
|---|
addEventListenerNS, dispatchEvent, getEventSupport, getParentNodeEventTarget, removeEventListenerNS |
| Methods inherited from interface org.w3c.dom.events.EventTarget |
|---|
addEventListener, removeEventListener |
| Field Detail |
|---|
protected static DoublyIndexedTable xmlTraitInformation
protected StyleMap computedStyleMap
protected SVGStylableElement.OverrideStyleDeclaration overrideStyleDeclaration
protected SVGOMAnimatedString className
protected SVGStylableElement.StyleDeclaration style
| Constructor Detail |
|---|
protected SVGStylableElement()
protected SVGStylableElement(String prefix,
AbstractDocument owner)
prefix - The namespace prefix.owner - The owner document.| Method Detail |
|---|
protected void initializeAllLiveAttributes()
initializeAllLiveAttributes in class SVGOMElementpublic org.w3c.dom.css.CSSStyleDeclaration getOverrideStyle()
public StyleMap getComputedStyleMap(String pseudoElement)
getComputedStyleMap in interface CSSStylableElement
public void setComputedStyleMap(String pseudoElement,
StyleMap sm)
setComputedStyleMap in interface CSSStylableElementpublic String getXMLId()
getXMLId in interface CSSStylableElementpublic String getCSSClass()
getCSSClass in interface CSSStylableElementpublic ParsedURL getCSSBase()
getCSSBase in interface CSSStylableElementIllegalArgumentException - when the result of getBaseURI()
cannot be used as an URL.public boolean isPseudoInstanceOf(String pseudoClass)
isPseudoInstanceOf in interface CSSStylableElementpublic StyleDeclarationProvider getOverrideStyleDeclarationProvider()
StyleDeclaration for the override
style of this element.
getOverrideStyleDeclarationProvider in interface CSSStylableElement
public void updatePropertyValue(String pn,
AnimatableValue val)
updatePropertyValue in interface AnimationTargetupdatePropertyValue in class SVGOMElementpublic boolean useLinearRGBColorInterpolation()
useLinearRGBColorInterpolation in interface AnimationTargetuseLinearRGBColorInterpolation in class SVGOMElement
public void addTargetListener(String ns,
String an,
boolean isCSS,
AnimationTargetListener l)
addTargetListener in interface AnimationTargetaddTargetListener in class SVGOMElement
public void removeTargetListener(String ns,
String an,
boolean isCSS,
AnimationTargetListener l)
removeTargetListener in interface AnimationTargetremoveTargetListener in class SVGOMElementpublic org.w3c.dom.css.CSSStyleDeclaration getStyle()
SVGStylable.getStyle().
public org.w3c.dom.css.CSSValue getPresentationAttribute(String name)
SVGStylable.getPresentationAttribute(String).
public org.w3c.dom.svg.SVGAnimatedString getClassName()
SVGStylable.getClassName().
protected DoublyIndexedTable getTraitInformationTable()
getTraitInformationTable in class SVGOMElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||