Java Doc for SVGAnimationElementBridge.java in  » Graphic-Library » batik » org » apache » batik » bridge » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Graphic Library » batik » org.apache.batik.bridge 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.batik.bridge.AbstractSVGBridge
      org.apache.batik.bridge.SVGAnimationElementBridge

All known Subclasses:   org.apache.batik.bridge.SVGAnimateElementBridge,  org.apache.batik.bridge.SVGSetElementBridge,
SVGAnimationElementBridge
abstract public class SVGAnimationElementBridge extends AbstractSVGBridge implements GenericBridge,BridgeUpdateHandler,SVGAnimationContext,AnimatableElement(Code)
An abstract base class for the SVG animation element bridges.
author:
   Cameron McCormack
version:
   $Id: SVGAnimationElementBridge.java 492528 2007-01-04 11:45:47Z cam $

Inner Class :protected class SVGTimedElement extends TimedElement

Field Summary
protected  AbstractAnimationanimation
     The animation object that provides the values for the animation.
protected  AnimationTargetanimationTarget
     The AnimationTarget the provides a context to the animation engine.
protected  shortanimationType
     The animation type.
protected  StringattributeLocalName
     The local name of the attribute or the name of the property being animated.
protected  StringattributeNamespaceURI
     The namespace URI of the attribute being animated.
protected  BridgeContextctx
     The BridgeContext to be used.
protected  SVGOMElementelement
     The animation element.
protected  SVGAnimationEngineeng
     The AnimationEngine that manages all of the animations in the document.
protected  SVGOMElementtargetElement
     The target element of the animation.
protected  TimedElementtimedElement
     The TimedElement object that provides the timing for the animation.


Method Summary
public  voidaddTargetListener(String pn, AnimationTargetListener l)
     Adds a listener for changes to the given attribute value.
public  booleanbeginElement()
     DOM: Implements org.w3c.dom.smil.ElementTimeControl.beginElement .
public  booleanbeginElementAt(float offset)
     DOM: Implements org.w3c.dom.smil.ElementTimeControl.beginElementAt(float) .
abstract protected  booleancanAnimateType(int type)
     Returns whether the animation element being handled by this bridge can animate attributes of the specified type.
protected  booleancheckValueType(AnimatableValue v)
     Returns whether the specified AnimatableValue is of a type allowed by this animation.
abstract protected  AbstractAnimationcreateAnimation(AnimationTarget t)
     Creates the animation object for the animation element.
protected  TimedElementcreateTimedElement()
     Creates a TimedElement for the animation element.
public  voiddispose()
     Disposes this BridgeUpdateHandler and releases all resources.
public  booleanendElement()
     DOM: Implements org.w3c.dom.smil.ElementTimeControl.endElement .
public  booleanendElementAt(float offset)
     DOM: Implements org.w3c.dom.smil.ElementTimeControl.endElementAt(float) .
public  Rectangle2DgetBBox()
    
public  AffineTransformgetCTM()
    
public  floatgetCurrentTime()
     DOM: Implements org.w3c.dom.svg.SVGAnimationElement.getCurrentTime .
public  floatgetFontSize()
    
public  AffineTransformgetGlobalTransform()
    
public  floatgetPixelToMM()
     Returns the size of a px CSS unit in millimeters.
public  floatgetPixelUnitToMillimeter()
     Returns the size of a px CSS unit in millimeters.
public  AffineTransformgetScreenTransform()
    
public  floatgetSimpleDuration()
     DOM: Implements org.w3c.dom.svg.SVGAnimationElement.getSimpleDuration .
public  floatgetStartTime()
     DOM: Implements org.w3c.dom.svg.SVGAnimationElement.getStartTime .
public  SVGElementgetTargetElement()
     DOM: Implements org.w3c.dom.svg.SVGAnimationElement.getTargetElement .
public  TimedElementgetTimedElement()
     Returns the TimedElement for the animation.
public  AnimatableValuegetUnderlyingValue()
     Returns the underlying value of the animated attribute.
public  floatgetViewportHeight()
    
public  floatgetViewportWidth()
    
public  voidhandleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
     Invoked when the animated value of an animatable attribute has changed.
public  voidhandleCSSEngineEvent(CSSEngineEvent evt)
     Invoked when an CSSEngineEvent is fired.
public  voidhandleDOMAttrModifiedEvent(MutationEvent evt)
     Invoked when an MutationEvent of type 'DOMAttrModified' is fired.
public  voidhandleDOMCharacterDataModified(MutationEvent evt)
     Invoked when an MutationEvent of type 'DOMCharacterDataModified' is fired.
public  voidhandleDOMNodeInsertedEvent(MutationEvent evt)
     Invoked when an MutationEvent of type 'DOMNodeInserted' is fired.
public  voidhandleDOMNodeRemovedEvent(MutationEvent evt)
     Invoked when an MutationEvent of type 'DOMNodeRemoved' is fired.
public  voidhandleElement(BridgeContext ctx, Element e)
     Handles this animation element.
public  voidhandleOtherAnimationChanged(String type)
     Invoked when an 'other' animation value has changed.
protected  voidinitializeAnimation()
     Parses the animation element's target attributes and adds it to the document's AnimationEngine.
protected  voidinitializeTimedElement()
     Parses the animation element's timing attributes and initializes the TimedElement object.
protected  voidinitializeTimedElement(TimedElement timedElement)
     Initializes the timing attributes of the timed element.
protected  booleanisConstantAnimation()
     Returns whether this is a constant animation (i.e., a 'set' animation).
protected  AnimatableValueparseAnimatableValue(String an)
     Parses an attribute as an AnimatableValue.
public  voidremoveTargetListener(String pn, AnimationTargetListener l)
     Removes a listener for changes to the given attribute value.
public  voidsetScreenTransform(AffineTransform at)
    
public  floatsvgToUserSpace(float v, int type, int pcInterp)
    

Field Detail
animation
protected AbstractAnimation animation(Code)
The animation object that provides the values for the animation.



animationTarget
protected AnimationTarget animationTarget(Code)
The AnimationTarget the provides a context to the animation engine.



animationType
protected short animationType(Code)
The animation type. Must be one of the ANIM_TYPE_* constants defined in AnimationEngine .



attributeLocalName
protected String attributeLocalName(Code)
The local name of the attribute or the name of the property being animated.



attributeNamespaceURI
protected String attributeNamespaceURI(Code)
The namespace URI of the attribute being animated.



ctx
protected BridgeContext ctx(Code)
The BridgeContext to be used.



element
protected SVGOMElement element(Code)
The animation element.



eng
protected SVGAnimationEngine eng(Code)
The AnimationEngine that manages all of the animations in the document.



targetElement
protected SVGOMElement targetElement(Code)
The target element of the animation.



timedElement
protected TimedElement timedElement(Code)
The TimedElement object that provides the timing for the animation.





Method Detail
addTargetListener
public void addTargetListener(String pn, AnimationTargetListener l)(Code)
Adds a listener for changes to the given attribute value.



beginElement
public boolean beginElement() throws DOMException(Code)
DOM: Implements org.w3c.dom.smil.ElementTimeControl.beginElement .



beginElementAt
public boolean beginElementAt(float offset) throws DOMException(Code)
DOM: Implements org.w3c.dom.smil.ElementTimeControl.beginElementAt(float) .



canAnimateType
abstract protected boolean canAnimateType(int type)(Code)
Returns whether the animation element being handled by this bridge can animate attributes of the specified type.
Parameters:
  type - one of the TYPE_ constants defined in SVGTypes.



checkValueType
protected boolean checkValueType(AnimatableValue v)(Code)
Returns whether the specified AnimatableValue is of a type allowed by this animation.



createAnimation
abstract protected AbstractAnimation createAnimation(AnimationTarget t)(Code)
Creates the animation object for the animation element.



createTimedElement
protected TimedElement createTimedElement()(Code)
Creates a TimedElement for the animation element.



dispose
public void dispose()(Code)
Disposes this BridgeUpdateHandler and releases all resources.



endElement
public boolean endElement() throws DOMException(Code)
DOM: Implements org.w3c.dom.smil.ElementTimeControl.endElement .



endElementAt
public boolean endElementAt(float offset) throws DOMException(Code)
DOM: Implements org.w3c.dom.smil.ElementTimeControl.endElementAt(float) .



getBBox
public Rectangle2D getBBox()(Code)



getCTM
public AffineTransform getCTM()(Code)



getCurrentTime
public float getCurrentTime()(Code)
DOM: Implements org.w3c.dom.svg.SVGAnimationElement.getCurrentTime .



getFontSize
public float getFontSize()(Code)



getGlobalTransform
public AffineTransform getGlobalTransform()(Code)



getPixelToMM
public float getPixelToMM()(Code)
Returns the size of a px CSS unit in millimeters. This will be removed after next release.
See Also:   SVGAnimationElementBridge.getPixelUnitToMillimeter()



getPixelUnitToMillimeter
public float getPixelUnitToMillimeter()(Code)
Returns the size of a px CSS unit in millimeters.



getScreenTransform
public AffineTransform getScreenTransform()(Code)



getSimpleDuration
public float getSimpleDuration()(Code)
DOM: Implements org.w3c.dom.svg.SVGAnimationElement.getSimpleDuration . With the difference that an indefinite simple duration is returned as TimedElement.INDEFINITE , rather than throwing an exception.



getStartTime
public float getStartTime()(Code)
DOM: Implements org.w3c.dom.svg.SVGAnimationElement.getStartTime .



getTargetElement
public SVGElement getTargetElement()(Code)
DOM: Implements org.w3c.dom.svg.SVGAnimationElement.getTargetElement .



getTimedElement
public TimedElement getTimedElement()(Code)
Returns the TimedElement for the animation.



getUnderlyingValue
public AnimatableValue getUnderlyingValue()(Code)
Returns the underlying value of the animated attribute. Used for composition of additive animations. This should be overridden in descendant classes that are for 'other' animations.



getViewportHeight
public float getViewportHeight()(Code)



getViewportWidth
public float getViewportWidth()(Code)



handleAnimatedAttributeChanged
public void handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)(Code)
Invoked when the animated value of an animatable attribute has changed.



handleCSSEngineEvent
public void handleCSSEngineEvent(CSSEngineEvent evt)(Code)
Invoked when an CSSEngineEvent is fired.



handleDOMAttrModifiedEvent
public void handleDOMAttrModifiedEvent(MutationEvent evt)(Code)
Invoked when an MutationEvent of type 'DOMAttrModified' is fired.



handleDOMCharacterDataModified
public void handleDOMCharacterDataModified(MutationEvent evt)(Code)
Invoked when an MutationEvent of type 'DOMCharacterDataModified' is fired.



handleDOMNodeInsertedEvent
public void handleDOMNodeInsertedEvent(MutationEvent evt)(Code)
Invoked when an MutationEvent of type 'DOMNodeInserted' is fired.



handleDOMNodeRemovedEvent
public void handleDOMNodeRemovedEvent(MutationEvent evt)(Code)
Invoked when an MutationEvent of type 'DOMNodeRemoved' is fired.



handleElement
public void handleElement(BridgeContext ctx, Element e)(Code)
Handles this animation element.
Parameters:
  ctx - the bridge context to use
Parameters:
  e - the element being handled



handleOtherAnimationChanged
public void handleOtherAnimationChanged(String type)(Code)
Invoked when an 'other' animation value has changed.



initializeAnimation
protected void initializeAnimation()(Code)
Parses the animation element's target attributes and adds it to the document's AnimationEngine.



initializeTimedElement
protected void initializeTimedElement()(Code)
Parses the animation element's timing attributes and initializes the TimedElement object.



initializeTimedElement
protected void initializeTimedElement(TimedElement timedElement)(Code)
Initializes the timing attributes of the timed element.



isConstantAnimation
protected boolean isConstantAnimation()(Code)
Returns whether this is a constant animation (i.e., a 'set' animation).



parseAnimatableValue
protected AnimatableValue parseAnimatableValue(String an)(Code)
Parses an attribute as an AnimatableValue.



removeTargetListener
public void removeTargetListener(String pn, AnimationTargetListener l)(Code)
Removes a listener for changes to the given attribute value.



setScreenTransform
public void setScreenTransform(AffineTransform at)(Code)



svgToUserSpace
public float svgToUserSpace(float v, int type, int pcInterp)(Code)



Methods inherited from org.apache.batik.bridge.AbstractSVGBridge
public Bridge getInstance()(Code)(Java Doc)
public String getNamespaceURI()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.