Tabnine Logo
AbstractSVGTransform.getX
Code IndexAdd Tabnine to your IDE (free)

How to use
getX
method
in
org.apache.batik.dom.svg.AbstractSVGTransform

Best Java code snippets using org.apache.batik.dom.svg.AbstractSVGTransform.getX (Showing top 14 results out of 315)

origin: org.apache.xmlgraphics/batik-anim

sb.append(t.getAngle());
sb.append(',');
sb.append(t.getX());
sb.append(',');
sb.append(t.getY());
origin: fr.avianey.apache-xmlgraphics/batik

sb.append(t.getAngle());
sb.append(',');
sb.append(t.getX());
sb.append(',');
sb.append(t.getY());
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns the distance between this value's second component and the
 * specified other value's second component.
 */
public float distanceTo2(AnimatableValue other) {
  AnimatableTransformListValue o = (AnimatableTransformListValue) other;
  if (transforms.isEmpty() || o.transforms.isEmpty()) {
    return 0f;
  }
  AbstractSVGTransform t1 = (AbstractSVGTransform) transforms.lastElement();
  AbstractSVGTransform t2 = (AbstractSVGTransform) o.transforms.lastElement();
  short type1 = t1.getType();
  if (type1 != t2.getType()) {
    return 0f;
  }
  SVGMatrix m1 = t1.getMatrix();
  SVGMatrix m2 = t2.getMatrix();
  switch (type1) {
    case SVGTransform.SVG_TRANSFORM_TRANSLATE:
      return Math.abs(m1.getF() - m2.getF());
    case SVGTransform.SVG_TRANSFORM_SCALE:
      return Math.abs(m1.getD() - m2.getD());
    case SVGTransform.SVG_TRANSFORM_ROTATE:
      return Math.abs(t1.getX() - t2.getX());
  }
  return 0f;
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the distance between this value's second component and the
 * specified other value's second component.
 */
public float distanceTo2(AnimatableValue other) {
  AnimatableTransformListValue o = (AnimatableTransformListValue) other;
  if (transforms.isEmpty() || o.transforms.isEmpty()) {
    return 0f;
  }
  AbstractSVGTransform t1 = (AbstractSVGTransform) transforms.lastElement();
  AbstractSVGTransform t2 = (AbstractSVGTransform) o.transforms.lastElement();
  short type1 = t1.getType();
  if (type1 != t2.getType()) {
    return 0f;
  }
  SVGMatrix m1 = t1.getMatrix();
  SVGMatrix m2 = t2.getMatrix();
  switch (type1) {
    case SVGTransform.SVG_TRANSFORM_TRANSLATE:
      return Math.abs(m1.getF() - m2.getF());
    case SVGTransform.SVG_TRANSFORM_SCALE:
      return Math.abs(m1.getD() - m2.getD());
    case SVGTransform.SVG_TRANSFORM_ROTATE:
      return Math.abs(t1.getX() - t2.getX());
  }
  return 0f;
}
origin: apache/batik

sb.append(t.getAngle());
sb.append(',');
sb.append(t.getX());
sb.append(',');
sb.append(t.getY());
origin: apache/batik

/**
 * Returns the distance between this value's second component and the
 * specified other value's second component.
 */
public float distanceTo2(AnimatableValue other) {
  AnimatableTransformListValue o = (AnimatableTransformListValue) other;
  if (transforms.isEmpty() || o.transforms.isEmpty()) {
    return 0f;
  }
  AbstractSVGTransform t1 = (AbstractSVGTransform) transforms.lastElement();
  AbstractSVGTransform t2 = (AbstractSVGTransform) o.transforms.lastElement();
  short type1 = t1.getType();
  if (type1 != t2.getType()) {
    return 0f;
  }
  SVGMatrix m1 = t1.getMatrix();
  SVGMatrix m2 = t2.getMatrix();
  switch (type1) {
    case SVGTransform.SVG_TRANSFORM_TRANSLATE:
      return Math.abs(m1.getF() - m2.getF());
    case SVGTransform.SVG_TRANSFORM_SCALE:
      return Math.abs(m1.getD() - m2.getD());
    case SVGTransform.SVG_TRANSFORM_ROTATE:
      return Math.abs(t1.getX() - t2.getX());
  }
  return 0f;
}
origin: org.apache.xmlgraphics/batik-anim

x = ft.getX();
y = ft.getY();
x += interpolation * (tt.getX() - x);
y += interpolation * (tt.getY() - y);
r = ft.getAngle();
origin: apache/batik

x = ft.getX();
y = ft.getY();
x += interpolation * (tt.getX() - x);
y += interpolation * (tt.getY() - y);
r = ft.getAngle();
origin: fr.avianey.apache-xmlgraphics/batik

x = ft.getX();
y = ft.getY();
x += interpolation * (tt.getX() - x);
y += interpolation * (tt.getY() - y);
r = ft.getAngle();
origin: fr.avianey.apache-xmlgraphics/batik

x = ft2.getX();
y = ft3.getY();
  x += interpolation2 * (tt2.getX() - x);
  y += interpolation3 * (tt3.getY() - y);
origin: apache/batik

x = ft2.getX();
y = ft3.getY();
  x += interpolation2 * (tt2.getX() - x);
  y += interpolation3 * (tt3.getY() - y);
origin: org.apache.xmlgraphics/batik-anim

x = ft2.getX();
y = ft3.getY();
  x += interpolation2 * (tt2.getX() - x);
  y += interpolation3 * (tt3.getY() - y);
origin: apache/batik

    (AbstractSVGTransform) transform;
  setRotate(internal.getAngle(),
       internal.getX(), internal.getY());
} else {
origin: fr.avianey.apache-xmlgraphics/batik

    (AbstractSVGTransform) transform;
  setRotate(internal.getAngle(),
       internal.getX(), internal.getY());
} else {
org.apache.batik.dom.svgAbstractSVGTransformgetX

Javadoc

Returns the x coordinate of the center of the rotation, if this transformation is a rotation.

Popular methods of AbstractSVGTransform

  • getAngle
    DOM: Implements SVGTransform#getAngle().
  • getY
    Returns the y coordinate of the center of the rotation, if this transformation is a rotation.
  • setRotate
    DOM: Implements SVGTransform#setRotate(float,float,float).
  • setScale
    DOM: Implements SVGTransform#setScale(float,float).
  • setSkewX
    DOM: Implements SVGTransform#setSkewX(float).
  • setSkewY
    DOM: Implements SVGTransform#setSkewY(float).
  • setTranslate
    DOM: Implements SVGTransform#setTranslate(float,float).
  • assign
    Copies the value of the specified transformation into this object.
  • createMatrix
    Creates and returns a new SVGMatrix for exposing the transformation as a matrix.
  • getMatrix
    DOM: Implements SVGTransform#getMatrix().
  • getType
    DOM: Implements SVGTransform#getType().
  • setMatrix
    DOM: Implements SVGTransform#setMatrix(SVGMatrix).
  • getType,
  • setMatrix

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Permission (java.security)
    Legacy security code; do not use.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Github Copilot 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