congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SVGOMElement.getSVGContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getSVGContext
method
in
org.apache.batik.anim.dom.SVGOMElement

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

origin: org.apache.xmlgraphics/batik-anim

/**
 * To implement {@link
 * org.w3c.dom.svg.SVGTextContentElement#getCharNumAtPosition(SVGPoint point)}.
 */
public static int getCharNumAtPosition(Element elt, final float x, final float y) throws DOMException {
  final SVGOMElement svgelt = (SVGOMElement)elt;
  final SVGTextContent context = (SVGTextContent)svgelt.getSVGContext();
  
  return context.getCharNumAtPosition(x,y);
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns the font-size value.
 */
public float getFontSize() {
  return getSVGContext().getFontSize();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * To implement {@link
 * org.w3c.dom.svg.SVGTextContentElement#getNumberOfChars()}.
 */
public static int getNumberOfChars(Element elt)
{
  final SVGOMElement svgelt = (SVGOMElement)elt;
  return (((SVGTextContent)svgelt.getSVGContext()).getNumberOfChars());
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * To implement {@link
 * org.w3c.dom.svg.SVGTextContentElement#selectSubString(int charnum, int nchars)}.
 */
public static float getComputedTextLength(Element elt){
  final SVGOMElement svgelt = (SVGOMElement)elt;
  final SVGTextContent context = (SVGTextContent)svgelt.getSVGContext();
  return context.getComputedTextLength();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns the size of a px CSS unit in millimeters.
 */
public float getPixelUnitToMillimeter() {
  return getSVGContext().getPixelUnitToMillimeter();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns the viewport width used to compute units.
 */
public float getViewportWidth() {
  return getSVGContext().getViewportWidth();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * To implement {@link
 * org.w3c.dom.svg.SVGTextContentElement#selectSubString(int charnum, int nchars)}.
 */
public static float getComputedTextLength(Element elt){
  final SVGOMElement svgelt = (SVGOMElement)elt;
  final SVGTextContent context = (SVGTextContent)svgelt.getSVGContext();
  return context.getComputedTextLength();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the font-size value.
 */
public float getFontSize() {
  return getSVGContext().getFontSize();
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Returns the viewport height used to compute units.
   */
  public float getViewportHeight() {
    return getSVGContext().getViewportHeight();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * To implement {@link
 * org.w3c.dom.svg.SVGTextContentElement#getCharNumAtPosition(SVGPoint point)}.
 */
public static int getCharNumAtPosition(Element elt, final float x, final float y) throws DOMException {
  final SVGOMElement svgelt = (SVGOMElement)elt;
  final SVGTextContent context = (SVGTextContent)svgelt.getSVGContext();
  
  return context.getCharNumAtPosition(x,y);
}
origin: org.apache.xmlgraphics/batik-anim

  /**
   * Returns the viewport height used to compute units.
   */
  public float getViewportHeight() {
    return getSVGContext().getViewportHeight();
  }
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns the viewport width used to compute units.
 */
public float getViewportWidth() {
  return getAssociatedElement().getSVGContext().getViewportWidth();
}
origin: apache/batik

/**
 * Returns the font-size value.
 */
public float getFontSize() {
  return getAssociatedElement().getSVGContext().getFontSize();
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Disposes this BridgeUpdateHandler and releases all resources.
 */
public void dispose() {
  if (element.getSVGContext() == null) {
    // Only remove the animation if this is not part of a rebuild.
    eng.removeAnimation(animation);
    timedElement.deinitialize();
    timedElement = null;
    element = null;
  }
}
origin: org.apache.xmlgraphics/batik-anim

  /**
   * Returns the viewport height used to compute units.
   */
  public float getViewportHeight() {
    return getAssociatedElement().getSVGContext().getViewportHeight();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the font-size value.
 */
public float getFontSize() {
  return getAssociatedElement().getSVGContext().getFontSize();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the viewport width used to compute units.
 */
public float getViewportWidth() {
  return getAssociatedElement().getSVGContext().getViewportWidth();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns the size of a px CSS unit in millimeters.
 */
public float getPixelUnitToMillimeter() {
  return getAssociatedElement().getSVGContext()
    .getPixelUnitToMillimeter();
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns the font-size value.
 */
public float getFontSize() {
  return getAssociatedElement().getSVGContext().getFontSize();
}
origin: fr.avianey.apache-xmlgraphics/batik

  protected AffineTransform getAffineTransform() {
    SVGContext context = svgelt.getSVGContext();
    AffineTransform ret = context.getGlobalTransform();
    AffineTransform scrnTrans = context.getScreenTransform();
    if (scrnTrans != null)
      ret.preConcatenate(scrnTrans);
    return ret;
  }
};
org.apache.batik.anim.domSVGOMElementgetSVGContext

Javadoc

Returns the SVG context used to get SVG specific informations.

Popular methods of SVGOMElement

  • setSVGContext
    Sets the SVG context to use to get SVG specific informations.
  • getAttributeNS
  • getNodeName
    DOM: Implements Node#getNodeName().
  • setAttributeNS
  • addTargetListener
    Adds a listener for changes to the given attribute value.
  • copyInto
    Copy the fields of the current node into the given node.
  • createDOMException
  • createLiveAnimatedNumber
    Creates a new SVGOMAnimatedNumber that can be parsed as a percentage and stores it in this element's
  • createSVGException
    Creates an SVGException with the appropriate error message.
  • deepCopyInto
    Deeply copy the fields of the current node into the given node.
  • deepExport
    Deeply exports this node to the given document.
  • export
    Exports this node to the given document.
  • deepExport,
  • export,
  • fireBaseAttributeListeners,
  • getAttributeNodeNS,
  • getAttributeType,
  • getCascadedXMLBase,
  • getCurrentDocument,
  • getFirstChild,
  • getLiveAttributeValue

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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