Tabnine Logo
org.apache.batik.anim.dom
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: pentaho/pentaho-kettle

private static SAXSVGDocumentFactory createFactory() {
 return new SAXSVGDocumentFactory( PARSER );
}
origin: pentaho/pentaho-kettle

/**
 * Load SVG from file.
 */
public static SvgImage loadSvgImage( InputStream in ) throws Exception {
 Document document = getSvgFactory().createDocument( null, in );
 return new SvgImage( document );
}
origin: geotools/geotools

protected RenderableSVG toRenderableSVG(String svgfile, URL svgUrl)
    throws SAXException, IOException {
  RenderableSVG svg;
  String parser = XMLResourceDescriptor.getXMLParserClassName();
  SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
  String svgUri = svgfile;
  // Remove parameters from file URLs, as it is not supported by Windows
  if ("file".equals(svgUrl.getProtocol()) && svgUrl.getQuery() != null) {
    int idx = svgfile.indexOf('?');
    if (idx > -1) {
      svgUri = svgfile.substring(0, idx);
    }
  }
  Document doc = f.createDocument(svgUri);
  Map<String, String> parameters = getParametersFromUrl(svgfile);
  if (!parameters.isEmpty() || hasParameters(doc.getDocumentElement())) {
    replaceParameters(doc.getDocumentElement(), parameters);
  }
  svg = new RenderableSVG(doc);
  return svg;
}
origin: fr.avianey.apache-xmlgraphics/batik

  protected void attrChanged() {
    super.attrChanged();
    AbstractSVGAnimatedLength ry =
      (AbstractSVGAnimatedLength) getRy();
    if (isSpecified() && !ry.isSpecified()) {
      ry.attrChanged();
    }
  }
};
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGStylable#getStyle()}.
 */
public CSSStyleDeclaration getStyle() {
  if (style == null) {
    CSSEngine eng = ((SVGOMDocument)getOwnerDocument()).getCSSEngine();
    style = new StyleDeclaration(eng);
    putLiveAttributeValue(null, SVG_STYLE_ATTRIBUTE, style);
  }
  return style;
}
origin: apache/batik

  protected void attrChanged() {
    super.attrChanged();
    AbstractSVGAnimatedLength rx =
      (AbstractSVGAnimatedLength) getRx();
    if (isSpecified() && !rx.isSpecified()) {
      rx.attrChanged();
    }
  }
};
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns the override style declaration for this element.
 */
public CSSStyleDeclaration getOverrideStyle() {
  if (overrideStyleDeclaration == null) {
    CSSEngine eng = ((SVGOMDocument) getOwnerDocument()).getCSSEngine();
    overrideStyleDeclaration = new OverrideStyleDeclaration(eng);
  }
  return overrideStyleDeclaration;
}
origin: haraldk/TwelveMonkeys

    try {
      context.dispose();
      document.setURLObject(new URL(transcoderInput.getURI()));
      transcode(document, transcoderInput.getURI(), null);
SVGSVGElement root = document.getRootElement();
origin: org.apache.xmlgraphics/batik-anim

/**
 * Initializes all live attributes for this element.
 */
protected void initializeAllLiveAttributes() {
  super.initializeAllLiveAttributes();
  initializeLiveAttributes();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Initializes all live attributes for this element.
 */
protected void initializeAllLiveAttributes() {
  super.initializeAllLiveAttributes();
  initializeLiveAttributes();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Initializes all live attributes for this element.
 */
protected void initializeAllLiveAttributes() {
  super.initializeAllLiveAttributes();
  initializeLiveAttributes();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Initializes all live attributes for this element.
 */
protected void initializeAllLiveAttributes() {
  super.initializeAllLiveAttributes();
  initializeLiveAttributes();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Initializes all live attributes for this element.
 */
protected void initializeAllLiveAttributes() {
  super.initializeAllLiveAttributes();
  initializeLiveAttributes();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Initializes all live attributes for this element.
 */
protected void initializeAllLiveAttributes() {
  super.initializeAllLiveAttributes();
  initializeLiveAttributes();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Initializes all live attributes for this element.
 */
protected void initializeAllLiveAttributes() {
  super.initializeAllLiveAttributes();
  initializeLiveAttributes();
}
origin: haraldk/TwelveMonkeys

try {
  URL url = new URL(uri);
  ((SVGOMDocument) document).setURLObject(url);
origin: geotools/geotools

if (svg == null) {
  String parser = XMLResourceDescriptor.getXMLParserClassName();
  SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
  Document doc;
  int queryIdx = svgfile.indexOf("?");
  if (svgfile.startsWith("file:/") && queryIdx > 0) {
    String localPath = svgfile.substring(0, queryIdx);
    doc = f.createDocument(localPath);
  } else {
    doc = f.createDocument(svgfile);
origin: org.apache.xmlgraphics/batik-anim

  protected void attrChanged() {
    super.attrChanged();
    AbstractSVGAnimatedLength ry =
      (AbstractSVGAnimatedLength) getRy();
    if (isSpecified() && !ry.isSpecified()) {
      ry.attrChanged();
    }
  }
};
origin: org.apache.xmlgraphics/batik-anim

/**
 * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGStylable#getStyle()}.
 */
public CSSStyleDeclaration getStyle() {
  if (style == null) {
    CSSEngine eng = ((SVGOMDocument)getOwnerDocument()).getCSSEngine();
    style = new StyleDeclaration(eng);
    putLiveAttributeValue(null, SVG_STYLE_ATTRIBUTE, style);
  }
  return style;
}
origin: apache/batik

/**
 * Returns the override style declaration for this element.
 */
public CSSStyleDeclaration getOverrideStyle() {
  if (overrideStyleDeclaration == null) {
    CSSEngine eng = ((SVGOMDocument) getOwnerDocument()).getCSSEngine();
    overrideStyleDeclaration = new OverrideStyleDeclaration(eng);
  }
  return overrideStyleDeclaration;
}
org.apache.batik.anim.dom

Most used classes

  • SAXSVGDocumentFactory
    This class contains methods for creating SVGDocument instances from an URI using SAX2.
  • SVGDOMImplementation
    This class implements the DOMImplementation interface. It provides support the SVG 1.1 documents.
  • SVGOMDocument
    This class implements SVGDocument.
  • SVGOMElement
    This class implements the SVGElement interface.
  • SVGOMPathElement
    This class implements SVGPathElement.
  • AbstractSVGAnimatedLength,
  • AnimatedLiveAttributeValue,
  • AnimationTarget,
  • AnimationTargetListener,
  • BindableElement,
  • SVG12DOMImplementation,
  • SVGLocatableSupport,
  • SVGOMAElement,
  • SVGOMAnimatedEnumeration,
  • SVGOMAnimatedLength,
  • SVGOMAnimatedLengthList,
  • SVGOMAnimatedNumberList,
  • SVGOMAnimatedPathData,
  • SVGOMAnimatedPoints
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