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

How to use
SVGAnimatedPathDataSupport
in
org.apache.batik.dom.svg

Best Java code snippets using org.apache.batik.dom.svg.SVGAnimatedPathDataSupport (Showing top 9 results out of 315)

origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the base value of the attribute as an {@link AnimatableValue}.
 */
public AnimatableValue getUnderlyingValue(AnimationTarget target) {
  SVGPathSegList psl = getPathSegList();
  PathArrayProducer pp = new PathArrayProducer();
  SVGAnimatedPathDataSupport.handlePathSegList(psl, pp);
  return new AnimatablePathDataValue(target, pp.getPathCommands(),
                    pp.getPathParameters());
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns the base value of the attribute as an {@link AnimatableValue}.
 */
public AnimatableValue getUnderlyingValue(AnimationTarget target) {
  SVGPathSegList psl = getPathSegList();
  PathArrayProducer pp = new PathArrayProducer();
  SVGAnimatedPathDataSupport.handlePathSegList(psl, pp);
  return new AnimatablePathDataValue(target, pp.getPathCommands(),
                    pp.getPathParameters());
}
origin: apache/batik

/**
 * Returns the base value of the attribute as an {@link AnimatableValue}.
 */
public AnimatableValue getUnderlyingValue(AnimationTarget target) {
  SVGPathSegList psl = getPathSegList();
  PathArrayProducer pp = new PathArrayProducer();
  SVGAnimatedPathDataSupport.handlePathSegList(psl, pp);
  return new AnimatablePathDataValue(target, pp.getPathCommands(),
                    pp.getPathParameters());
}
origin: org.apache.xmlgraphics/batik-bridge

SVGAnimatedPathDataSupport.handlePathSegList
  (pathElt.getPathSegList(), app);
return (ExtendedGeneralPath) app.getShape();
origin: fr.avianey.apache-xmlgraphics/batik

SVGAnimatedPathDataSupport.handlePathSegList
  (pathElt.getPathSegList(), app);
return (ExtendedGeneralPath) app.getShape();
origin: apache/batik

SVGAnimatedPathDataSupport.handlePathSegList
  (pathElt.getPathSegList(), app);
return (ExtendedGeneralPath) app.getShape();
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: 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-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());
  }
}
org.apache.batik.dom.svgSVGAnimatedPathDataSupport

Javadoc

This class provide support for the SVGAnimatedPathData interface.

Most used methods

  • handlePathSegList
    Uses the given PathHandler to handle the path segments from the given SVGPathSegList.

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JFrame (javax.swing)
  • 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