You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by ca...@apache.org on 2008/03/26 05:51:24 UTC

svn commit: r641148 - /xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java

Author: cam
Date: Tue Mar 25 21:51:24 2008
New Revision: 641148

URL: http://svn.apache.org/viewvc?rev=641148&view=rev
Log:
Add a couple of methods to expose the TimingSpecifiers.

Modified:
    xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java?rev=641148&r1=641147&r2=641148&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java Tue Mar 25 21:51:24 2008
@@ -1398,6 +1398,26 @@
     }
 
     /**
+     * Returns an array of the begin timing specifiers on this timed element.
+     * XXX Note that this is an experimental public API and is subject to
+     * change, when somebody gets around to thinking of a better model for
+     * exposing animation information from the document.
+     */
+    public TimingSpecifier[] getBeginTimingSpecifiers() {
+        return (TimingSpecifier[]) beginTimes.clone();
+    }
+
+    /**
+     * Returns an array of the end timing specifiers on this timed element.
+     * XXX Note that this is an experimental public API and is subject to
+     * change, when somebody gets around to thinking of a better model for
+     * exposing animation information from the document.
+     */
+    public TimingSpecifier[] getEndTimingSpecifiers() {
+        return (TimingSpecifier[]) endTimes.clone();
+    }
+
+    /**
      * Fires a TimeEvent of the given type on this element.
      * @param eventType the type of TimeEvent ("beginEvent", "endEvent"
      *                  or "repeatEvent").
@@ -1540,7 +1560,7 @@
     /**
      * Implements {@link org.apache.batik.i18n.Localizable#setLocale(java.util.Locale)}.
      */
-    public static void setLocale( Locale l) {
+    public static void setLocale(Locale l) {
         localizableSupport.setLocale(l);
     }