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

How to use
SVGOMAnimatedPathData
in
org.apache.batik.anim.dom

Best Java code snippets using org.apache.batik.anim.dom.SVGOMAnimatedPathData (Showing top 20 results out of 315)

origin: fr.avianey.apache-xmlgraphics/batik

/**
 * <b>DOM</b>: Implements {@link SVGPathElement#getAnimatedPathSegList()}.
 */
public SVGPathSegList getAnimatedPathSegList() {
  return d.getAnimatedPathSegList();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * <b>DOM</b>: Implements {@link
 * SVGPathElement#getAnimatedNormalizedPathSegList()}.
 */
public SVGPathSegList getAnimatedNormalizedPathSegList() {
  return d.getAnimatedNormalizedPathSegList();
}
origin: apache/batik

/**
 * <b>DOM</b>: Implements {@link SVGPathElement#getNormalizedPathSegList()}.
 */
public SVGPathSegList getNormalizedPathSegList() {
  return d.getNormalizedPathSegList();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Called when an Attr node has been added.
 */
public void attrAdded(Attr node, String newv) {
  if (!changing) {
    if (pathSegs != null) {
      pathSegs.invalidate();
    }
    if (normalizedPathSegs != null) {
      normalizedPathSegs.invalidate();
    }
  }
  fireBaseAttributeListeners();
  if (!hasAnimVal) {
    fireAnimatedAttributeListeners();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Constructs a path according to the specified parameters.
 *
 * @param ctx the bridge context to use
 * @param e the element that describes a rect element
 * @param shapeNode the shape node to initialize
 */
protected void buildShape(BridgeContext ctx,
             Element e,
             ShapeNode shapeNode) {
  SVGOMPathElement pe = (SVGOMPathElement) e;
  AWTPathProducer app = new AWTPathProducer();
  try {
    // 'd' attribute - required
    SVGOMAnimatedPathData _d = pe.getAnimatedPathData();
    _d.check();
    SVGPathSegList p = _d.getAnimatedPathSegList();
    app.setWindingRule(CSSUtilities.convertFillRule(e));
    SVGAnimatedPathDataSupport.handlePathSegList(p, app);
  } catch (LiveAttributeException ex) {
    throw new BridgeException(ctx, ex);
  } finally {
    shapeNode.setShape(app.getShape());
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * <b>DOM</b>: Implements {@link SVGPathElement#getPathSegList()}.
 */
public SVGPathSegList getPathSegList() {
  return d.getPathSegList();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Creates a new {@link SVGOMAnimatedPathData} and stores it in
 * this element's LiveAttributeValue table.
 */
protected SVGOMAnimatedPathData
    createLiveAnimatedPathData(String ns, String ln, String def) {
  SVGOMAnimatedPathData v =
    new SVGOMAnimatedPathData(this, ns, ln, def);
  liveAttributeValues.put(ns, ln, v);
  v.addAnimatedAttributeListener
    (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener());
  return v;
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Updates the animated value with the given {@link AnimatableValue}.
 */
protected void updateAnimatedValue(AnimatableValue val) {
  if (val == null) {
    hasAnimVal = false;
  } else {
    hasAnimVal = true;
    AnimatablePathDataValue animPath = (AnimatablePathDataValue) val;
    if (animPathSegs == null) {
      animPathSegs = new AnimSVGPathSegList();
    }
    animPathSegs.setAnimatedValue(animPath.getCommands(),
                   animPath.getParameters());
  }
  fireAnimatedAttributeListeners();
}
origin: apache/batik

/**
 * Called when an Attr node has been modified.
 */
public void attrModified(Attr node, String oldv, String newv) {
  if (!changing) {
    if (pathSegs != null) {
      pathSegs.invalidate();
    }
    if (normalizedPathSegs != null) {
      normalizedPathSegs.invalidate();
    }
  }
  fireBaseAttributeListeners();
  if (!hasAnimVal) {
    fireAnimatedAttributeListeners();
  }
}
origin: apache/batik

/**
 * Constructs a path according to the specified parameters.
 *
 * @param ctx the bridge context to use
 * @param e the element that describes a rect element
 * @param shapeNode the shape node to initialize
 */
protected void buildShape(BridgeContext ctx,
             Element e,
             ShapeNode shapeNode) {
  SVGOMPathElement pe = (SVGOMPathElement) e;
  AWTPathProducer app = new AWTPathProducer();
  try {
    // 'd' attribute - required
    SVGOMAnimatedPathData _d = pe.getAnimatedPathData();
    _d.check();
    SVGPathSegList p = _d.getAnimatedPathSegList();
    app.setWindingRule(CSSUtilities.convertFillRule(e));
    SVGAnimatedPathDataSupport.handlePathSegList(p, app);
  } catch (LiveAttributeException ex) {
    throw new BridgeException(ctx, ex);
  } finally {
    shapeNode.setShape(app.getShape());
  }
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * <b>DOM</b>: Implements {@link SVGPathElement#getPathSegList()}.
 */
public SVGPathSegList getPathSegList() {
  return d.getPathSegList();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Creates a new {@link SVGOMAnimatedPathData} and stores it in
 * this element's LiveAttributeValue table.
 */
protected SVGOMAnimatedPathData
    createLiveAnimatedPathData(String ns, String ln, String def) {
  SVGOMAnimatedPathData v =
    new SVGOMAnimatedPathData(this, ns, ln, def);
  liveAttributeValues.put(ns, ln, v);
  v.addAnimatedAttributeListener
    (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener());
  return v;
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Updates the animated value with the given {@link AnimatableValue}.
 */
protected void updateAnimatedValue(AnimatableValue val) {
  if (val == null) {
    hasAnimVal = false;
  } else {
    hasAnimVal = true;
    AnimatablePathDataValue animPath = (AnimatablePathDataValue) val;
    if (animPathSegs == null) {
      animPathSegs = new AnimSVGPathSegList();
    }
    animPathSegs.setAnimatedValue(animPath.getCommands(),
                   animPath.getParameters());
  }
  fireAnimatedAttributeListeners();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Called when an Attr node has been modified.
 */
public void attrModified(Attr node, String oldv, String newv) {
  if (!changing) {
    if (pathSegs != null) {
      pathSegs.invalidate();
    }
    if (normalizedPathSegs != null) {
      normalizedPathSegs.invalidate();
    }
  }
  fireBaseAttributeListeners();
  if (!hasAnimVal) {
    fireAnimatedAttributeListeners();
  }
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Constructs a path according to the specified parameters.
 *
 * @param ctx the bridge context to use
 * @param e the element that describes a rect element
 * @param shapeNode the shape node to initialize
 */
protected void buildShape(BridgeContext ctx,
             Element e,
             ShapeNode shapeNode) {
  SVGOMPathElement pe = (SVGOMPathElement) e;
  AWTPathProducer app = new AWTPathProducer();
  try {
    // 'd' attribute - required
    SVGOMAnimatedPathData _d = pe.getAnimatedPathData();
    _d.check();
    SVGPathSegList p = _d.getAnimatedPathSegList();
    app.setWindingRule(CSSUtilities.convertFillRule(e));
    SVGAnimatedPathDataSupport.handlePathSegList(p, app);
  } catch (LiveAttributeException ex) {
    throw new BridgeException(ctx, ex);
  } finally {
    shapeNode.setShape(app.getShape());
  }
}
origin: apache/batik

/**
 * <b>DOM</b>: Implements {@link SVGPathElement#getPathSegList()}.
 */
public SVGPathSegList getPathSegList() {
  return d.getPathSegList();
}
origin: apache/batik

/**
 * Creates a new {@link SVGOMAnimatedPathData} and stores it in
 * this element's LiveAttributeValue table.
 */
protected SVGOMAnimatedPathData
    createLiveAnimatedPathData(String ns, String ln, String def) {
  SVGOMAnimatedPathData v =
    new SVGOMAnimatedPathData(this, ns, ln, def);
  liveAttributeValues.put(ns, ln, v);
  v.addAnimatedAttributeListener
    (((SVGOMDocument) ownerDocument).getAnimatedAttributeListener());
  return v;
}
origin: apache/batik

/**
 * <b>DOM</b>: Implements {@link SVGPathElement#getAnimatedPathSegList()}.
 */
public SVGPathSegList getAnimatedPathSegList() {
  return d.getAnimatedPathSegList();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * <b>DOM</b>: Implements {@link
 * SVGPathElement#getAnimatedNormalizedPathSegList()}.
 */
public SVGPathSegList getAnimatedNormalizedPathSegList() {
  return d.getAnimatedNormalizedPathSegList();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * <b>DOM</b>: Implements {@link SVGPathElement#getNormalizedPathSegList()}.
 */
public SVGPathSegList getNormalizedPathSegList() {
  return d.getNormalizedPathSegList();
}
org.apache.batik.anim.domSVGOMAnimatedPathData

Javadoc

This class is the implementation of the SVGAnimatedPathDatainterface.

Most used methods

  • getAnimatedPathSegList
    DOM: Implements SVGAnimatedPathData#getAnimatedPathSegList().
  • <init>
    Creates a new SVGOMAnimatedPathData.
  • addAnimatedAttributeListener
  • check
    Throws an exception if the path data is malformed.
  • fireAnimatedAttributeListeners
  • fireBaseAttributeListeners
  • getAnimatedNormalizedPathSegList
    DOM: Implements SVGAnimatedPathData#getAnimatedNormalizedPathSegList().
  • getNormalizedPathSegList
    DOM: Implements SVGAnimatedPathData#getNormalizedPathSegList(). Returns the SVGPathSegList mapping t
  • getPathSegList
    DOM: Implements SVGAnimatedPathData#getPathSegList().

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JFrame (javax.swing)
  • Option (scala)
  • Top Vim plugins
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