|
|||||||||
| Home >> All >> org >> apache >> batik >> dom >> [ svg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.batik.dom.svg
Class SVGStylableElement.StyleDeclaration

java.lang.Objectorg.apache.batik.css.dom.CSSOMStyleDeclaration
org.apache.batik.css.dom.CSSOMSVGStyleDeclaration
org.apache.batik.dom.svg.SVGStylableElement.StyleDeclaration
- All Implemented Interfaces:
- org.apache.batik.css.engine.CSSEngine.MainPropertyReceiver, org.apache.batik.css.dom.CSSOMStyleDeclaration.ModificationHandler, org.apache.batik.css.dom.CSSOMStyleDeclaration.ValueProvider, org.w3c.dom.css.CSSStyleDeclaration, LiveAttributeValue
- Enclosing class:
- SVGStylableElement
- public class SVGStylableElement.StyleDeclaration
- extends org.apache.batik.css.dom.CSSOMSVGStyleDeclaration
- implements LiveAttributeValue, org.apache.batik.css.dom.CSSOMStyleDeclaration.ValueProvider, org.apache.batik.css.dom.CSSOMStyleDeclaration.ModificationHandler, org.apache.batik.css.engine.CSSEngine.MainPropertyReceiver
- extends org.apache.batik.css.dom.CSSOMSVGStyleDeclaration
This class represents the 'style' attribute.
| Nested Class Summary |
| Nested classes inherited from class org.apache.batik.css.dom.CSSOMSVGStyleDeclaration |
org.apache.batik.css.dom.CSSOMSVGStyleDeclaration.StyleDeclarationColorValue, org.apache.batik.css.dom.CSSOMSVGStyleDeclaration.StyleDeclarationPaintValue |
| Nested classes inherited from class org.apache.batik.css.dom.CSSOMStyleDeclaration |
org.apache.batik.css.dom.CSSOMStyleDeclaration.ModificationHandler, org.apache.batik.css.dom.CSSOMStyleDeclaration.StyleDeclarationValue, org.apache.batik.css.dom.CSSOMStyleDeclaration.ValueProvider |
| Field Summary | |
protected org.apache.batik.css.engine.StyleDeclaration |
declaration
The associated CSS object. |
protected boolean |
mutate
Whether the mutation comes from this object. |
| Fields inherited from class org.apache.batik.css.dom.CSSOMSVGStyleDeclaration |
cssEngine |
| Fields inherited from class org.apache.batik.css.dom.CSSOMStyleDeclaration |
handler, parentRule, valueProvider, values |
| Constructor Summary | |
SVGStylableElement.StyleDeclaration(org.apache.batik.css.engine.CSSEngine eng)
Creates a new StyleDeclaration. |
|
| Method Summary | |
void |
attrAdded(org.w3c.dom.Attr node,
java.lang.String newv)
Called when an Attr node has been added. |
void |
attrModified(org.w3c.dom.Attr node,
java.lang.String oldv,
java.lang.String newv)
Called when an Attr node has been modified. |
void |
attrRemoved(org.w3c.dom.Attr node,
java.lang.String oldv)
Called when an Attr node has been removed. |
int |
getLength()
Returns the length of the declaration. |
java.lang.String |
getText()
Returns the text of the declaration. |
org.apache.batik.css.engine.value.Value |
getValue(java.lang.String name)
Returns the current value associated with this object. |
boolean |
isImportant(java.lang.String name)
Tells whether the given property is important. |
java.lang.String |
item(int idx)
Returns the value at the given. |
void |
propertyChanged(java.lang.String name,
java.lang.String value,
java.lang.String prio)
Called when a property was changed. |
void |
propertyRemoved(java.lang.String name)
Called when a property was removed. |
void |
setMainProperty(java.lang.String name,
org.apache.batik.css.engine.value.Value v,
boolean important)
Called with a non-shorthand property name and it's value. |
void |
textChanged(java.lang.String text)
Called when the value text has changed. |
| Methods inherited from class org.apache.batik.css.dom.CSSOMSVGStyleDeclaration |
createCSSValue |
| Methods inherited from class org.apache.batik.css.dom.CSSOMStyleDeclaration |
getCssText, getCSSValue, getParentRule, getPropertyCSSValue, getPropertyPriority, getPropertyValue, removeProperty, setCssText, setModificationHandler, setProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
declaration
protected org.apache.batik.css.engine.StyleDeclaration declaration
- The associated CSS object.
mutate
protected boolean mutate
- Whether the mutation comes from this object.
| Constructor Detail |
SVGStylableElement.StyleDeclaration
public SVGStylableElement.StyleDeclaration(org.apache.batik.css.engine.CSSEngine eng)
- Creates a new StyleDeclaration.
| Method Detail |
getValue
public org.apache.batik.css.engine.value.Value getValue(java.lang.String name)
- Returns the current value associated with this object.
- Specified by:
getValuein interfaceorg.apache.batik.css.dom.CSSOMStyleDeclaration.ValueProvider
isImportant
public boolean isImportant(java.lang.String name)
- Tells whether the given property is important.
- Specified by:
isImportantin interfaceorg.apache.batik.css.dom.CSSOMStyleDeclaration.ValueProvider
getText
public java.lang.String getText()
- Returns the text of the declaration.
- Specified by:
getTextin interfaceorg.apache.batik.css.dom.CSSOMStyleDeclaration.ValueProvider
getLength
public int getLength()
- Returns the length of the declaration.
- Specified by:
getLengthin interfaceorg.apache.batik.css.dom.CSSOMStyleDeclaration.ValueProvider
item
public java.lang.String item(int idx)
- Returns the value at the given.
- Specified by:
itemin interfaceorg.apache.batik.css.dom.CSSOMStyleDeclaration.ValueProvider
attrAdded
public void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
- Called when an Attr node has been added.
- Specified by:
attrAddedin interfaceLiveAttributeValue
attrModified
public void attrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)
- Called when an Attr node has been modified.
- Specified by:
attrModifiedin interfaceLiveAttributeValue
attrRemoved
public void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)
- Called when an Attr node has been removed.
- Specified by:
attrRemovedin interfaceLiveAttributeValue
textChanged
public void textChanged(java.lang.String text) throws org.w3c.dom.DOMException
- Called when the value text has changed.
- Specified by:
textChangedin interfaceorg.apache.batik.css.dom.CSSOMStyleDeclaration.ModificationHandler
propertyRemoved
public void propertyRemoved(java.lang.String name) throws org.w3c.dom.DOMException
- Called when a property was removed.
- Specified by:
propertyRemovedin interfaceorg.apache.batik.css.dom.CSSOMStyleDeclaration.ModificationHandler
setMainProperty
public void setMainProperty(java.lang.String name, org.apache.batik.css.engine.value.Value v, boolean important)
- Description copied from interface:
org.apache.batik.css.engine.CSSEngine.MainPropertyReceiver - Called with a non-shorthand property name and it's value.
- Specified by:
setMainPropertyin interfaceorg.apache.batik.css.engine.CSSEngine.MainPropertyReceiver
propertyChanged
public void propertyChanged(java.lang.String name, java.lang.String value, java.lang.String prio) throws org.w3c.dom.DOMException
- Called when a property was changed.
- Specified by:
propertyChangedin interfaceorg.apache.batik.css.dom.CSSOMStyleDeclaration.ModificationHandler
|
|||||||||
| Home >> All >> org >> apache >> batik >> dom >> [ svg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC