Tabnine Logo
SVGAnimationEngine
Code IndexAdd Tabnine to your IDE (free)

How to use
SVGAnimationEngine
in
org.apache.batik.bridge

Best Java code snippets using org.apache.batik.bridge.SVGAnimationEngine (Showing top 20 results out of 315)

origin: org.apache.xmlgraphics/batik-bridge

  /**
   * Sets the current document time.
   */
  public void setCurrentTime(float t) {
    ctx.getAnimationEngine().setCurrentTime(t);
  }
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Returns the AnimationEngine for the document.  Creates one if
 * it doesn't exist.
 */
public SVGAnimationEngine getAnimationEngine() {
  if (animationEngine == null) {
    animationEngine = new SVGAnimationEngine(document, this);
    setAnimationLimitingMode();
  }
  return animationEngine;
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Returns the current document time.
 */
public float getCurrentTime() {
  return ctx.getAnimationEngine().getCurrentTime();
}
origin: org.apache.xmlgraphics/batik-bridge

AnimatableValue val = eng.parseAnimatableValue
  (element, animationTarget, attributeNamespaceURI,
   attributeLocalName, isCSS, valuesString.substring(start, end));
origin: org.apache.xmlgraphics/batik-bridge

eng.addAnimation(animationTarget, AnimationEngine.ANIM_TYPE_OTHER,
         attributeNamespaceURI, attributeLocalName, animation);
origin: fr.avianey.apache-xmlgraphics/batik

animationEngine.dispose();
animationEngine = null;
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns whether animations are currently paused.
 */
public boolean animationsPaused() {
  return ctx.getAnimationEngine().isPaused();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Handles this animation element.
 *
 * @param ctx the bridge context to use
 * @param e the element being handled
 */
public void handleElement(BridgeContext ctx, Element e) {
  if (ctx.isDynamic() && BridgeContext.getSVGContext(e) == null) {
    SVGAnimationElementBridge b =
      (SVGAnimationElementBridge) getInstance();
    b.element = (SVGOMElement) e;
    b.ctx = ctx;
    b.eng = ctx.getAnimationEngine();
    b.element.setSVGContext(b);
    if (b.eng.hasStarted()) {
      b.initializeAnimation();
      b.initializeTimedElement();
    } else {
      b.eng.addInitialBridge(b);
    }
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * 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.
 */
public AnimatableValue getUnderlyingValue() {
  if (animationType == AnimationEngine.ANIM_TYPE_XML) {
    return animationTarget.getUnderlyingValue(attributeNamespaceURI,
                         attributeLocalName);
  } else {
    return eng.getUnderlyingCSSValue(element,
                     animationTarget,
                     attributeLocalName);
  }
}
origin: apache/batik

AnimatableValue val = eng.parseAnimatableValue
  (element, animationTarget, attributeNamespaceURI,
   attributeLocalName, isCSS, valuesString.substring(start, end));
origin: fr.avianey.apache-xmlgraphics/batik

eng.addAnimation(animationTarget, AnimationEngine.ANIM_TYPE_OTHER,
         attributeNamespaceURI, attributeLocalName, animation);
origin: fr.avianey.apache-xmlgraphics/batik

animationEngine.dispose();
animationEngine = null;
origin: apache/batik

/**
 * Returns whether animations are currently paused.
 */
public boolean animationsPaused() {
  return ctx.getAnimationEngine().isPaused();
}
origin: apache/batik

/**
 * Handles this animation element.
 *
 * @param ctx the bridge context to use
 * @param e the element being handled
 */
public void handleElement(BridgeContext ctx, Element e) {
  if (ctx.isDynamic() && BridgeContext.getSVGContext(e) == null) {
    SVGAnimationElementBridge b =
      (SVGAnimationElementBridge) getInstance();
    b.element = (SVGOMElement) e;
    b.ctx = ctx;
    b.eng = ctx.getAnimationEngine();
    b.element.setSVGContext(b);
    if (b.eng.hasStarted()) {
      b.initializeAnimation();
      b.initializeTimedElement();
    } else {
      b.eng.addInitialBridge(b);
    }
  }
}
origin: apache/batik

/**
 * 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.
 */
public AnimatableValue getUnderlyingValue() {
  if (animationType == AnimationEngine.ANIM_TYPE_XML) {
    return animationTarget.getUnderlyingValue(attributeNamespaceURI,
                         attributeLocalName);
  } else {
    return eng.getUnderlyingCSSValue(element,
                     animationTarget,
                     attributeLocalName);
  }
}
origin: apache/batik

  /**
   * Sets the current document time.
   */
  public void setCurrentTime(float t) {
    ctx.getAnimationEngine().setCurrentTime(t);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

AnimatableValue val = eng.parseAnimatableValue
  (element, animationTarget, attributeNamespaceURI,
   attributeLocalName, isCSS, valuesString.substring(start, end));
origin: apache/batik

eng.addAnimation(animationTarget, AnimationEngine.ANIM_TYPE_OTHER,
         attributeNamespaceURI, attributeLocalName, animation);
origin: org.apache.xmlgraphics/batik-bridge

animationEngine.dispose();
animationEngine = null;
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the AnimationEngine for the document.  Creates one if
 * it doesn't exist.
 */
public SVGAnimationEngine getAnimationEngine() {
  if (animationEngine == null) {
    animationEngine = new SVGAnimationEngine(document, this);
    setAnimationLimitingMode();
  }
  return animationEngine;
}
org.apache.batik.bridgeSVGAnimationEngine

Javadoc

An AnimationEngine for SVG documents.

Most used methods

  • setCurrentTime
    Sets the current document time.
  • <init>
    Creates a new SVGAnimationEngine.
  • addAnimation
  • addInitialBridge
    Adds an animation element bridge to the list of bridges that require initializing when the document
  • dispose
    Disposes this animation engine.
  • getCurrentTime
    Returns the current document time.
  • getUnderlyingCSSValue
    Returns an AnimatableValue for the underlying value of a CSS property.
  • hasStarted
    Returns whether animation processing has begun.
  • isPaused
  • parseAnimatableValue
    Parses an AnimatableValue.
  • pause
    Pauses the animations.
  • removeAnimation
  • pause,
  • removeAnimation,
  • removeFill,
  • sampledAt,
  • sampledLastValue,
  • setAnimationLimitingCPU,
  • setAnimationLimitingFPS,
  • setAnimationLimitingNone,
  • start,
  • toActive

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • findViewById (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JButton (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now