Codota Logo
AnimatableMotionPointValue.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.apache.batik.anim.values.AnimatableMotionPointValue
constructor

Best Java code snippets using org.apache.batik.anim.values.AnimatableMotionPointValue.<init> (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Returns the underlying value of the animated attribute.  Used for
 * composition of additive animations.
 */
public AnimatableValue getUnderlyingValue() {
  return new AnimatableMotionPointValue(animationTarget, 0f, 0f, 0f);
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns a zero value of this AnimatableValue's type.
 */
public AnimatableValue getZeroValue() {
  return new AnimatableMotionPointValue(target, 0f, 0f, 0f);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns a zero value of this AnimatableValue's type.
 */
public AnimatableValue getZeroValue() {
  return new AnimatableMotionPointValue(target, 0f, 0f, 0f);
}
origin: apache/batik

/**
 * Returns a zero value of this AnimatableValue's type.
 */
public AnimatableValue getZeroValue() {
  return new AnimatableMotionPointValue(target, 0f, 0f, 0f);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the underlying value of the animated attribute.  Used for
 * composition of additive animations.
 */
public AnimatableValue getUnderlyingValue() {
  return new AnimatableMotionPointValue(animationTarget, 0f, 0f, 0f);
}
origin: apache/batik

/**
 * Returns the underlying value of the animated attribute.  Used for
 * composition of additive animations.
 */
public AnimatableValue getUnderlyingValue() {
  return new AnimatableMotionPointValue(animationTarget, 0f, 0f, 0f);
}
origin: org.apache.xmlgraphics/batik-anim

AnimatableMotionPointValue res;
if (result == null) {
  res = new AnimatableMotionPointValue(target);
} else {
  res = (AnimatableMotionPointValue) result;
origin: apache/batik

AnimatableMotionPointValue res;
if (result == null) {
  res = new AnimatableMotionPointValue(target);
} else {
  res = (AnimatableMotionPointValue) result;
origin: fr.avianey.apache-xmlgraphics/batik

AnimatableMotionPointValue res;
if (result == null) {
  res = new AnimatableMotionPointValue(target);
} else {
  res = (AnimatableMotionPointValue) result;
origin: org.apache.xmlgraphics/batik-anim

    ang = rotateAngle;
  value = new AnimatableMotionPointValue(null, (float) p.getX(),
                      (float) p.getY(), ang);
} else {
    ang = rotateAngle;
  value = new AnimatableMotionPointValue(null, (float) p.getX(),
                      (float) p.getY(), ang);
    ang = rotateAngle;
  accumulation = new AnimatableMotionPointValue(null, (float) p.getX(),
                         (float) p.getY(), ang);
} else {
origin: apache/batik

    ang = rotateAngle;
  value = new AnimatableMotionPointValue(null, (float) p.getX(),
                      (float) p.getY(), ang);
} else {
    ang = rotateAngle;
  value = new AnimatableMotionPointValue(null, (float) p.getX(),
                      (float) p.getY(), ang);
    ang = rotateAngle;
  accumulation = new AnimatableMotionPointValue(null, (float) p.getX(),
                         (float) p.getY(), ang);
} else {
origin: fr.avianey.apache-xmlgraphics/batik

    ang = rotateAngle;
  value = new AnimatableMotionPointValue(null, (float) p.getX(),
                      (float) p.getY(), ang);
} else {
    ang = rotateAngle;
  value = new AnimatableMotionPointValue(null, (float) p.getX(),
                      (float) p.getY(), ang);
    ang = rotateAngle;
  accumulation = new AnimatableMotionPointValue(null, (float) p.getX(),
                         (float) p.getY(), ang);
} else {
origin: org.apache.xmlgraphics/batik-bridge

protected AnimatableValue[] parseValues(String s) {
  try {
    LengthPairListParser lplp = new LengthPairListParser();
    LengthArrayProducer lap = new LengthArrayProducer();
    lplp.setLengthListHandler(lap);
    lplp.parse(s);
    short[] types = lap.getLengthTypeArray();
    float[] values = lap.getLengthValueArray();
    AnimatableValue[] ret = new AnimatableValue[types.length / 2];
    for (int i = 0; i < types.length; i += 2) {
      float x = animationTarget.svgToUserSpace
        (values[i], types[i], AnimationTarget.PERCENTAGE_VIEWPORT_WIDTH);
      float y = animationTarget.svgToUserSpace
        (values[i + 1], types[i + 1], AnimationTarget.PERCENTAGE_VIEWPORT_HEIGHT);
      ret[i / 2] = new AnimatableMotionPointValue(animationTarget, x, y, 0);
    }
    return ret;
  } catch (ParseException pEx ) {
    throw new BridgeException
      (ctx, element, pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED,
       new Object[] { SVG_VALUES_ATTRIBUTE, s });
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

protected AnimatableValue[] parseValues(String s) {
  try {
    LengthPairListParser lplp = new LengthPairListParser();
    LengthArrayProducer lap = new LengthArrayProducer();
    lplp.setLengthListHandler(lap);
    lplp.parse(s);
    short[] types = lap.getLengthTypeArray();
    float[] values = lap.getLengthValueArray();
    AnimatableValue[] ret = new AnimatableValue[types.length / 2];
    for (int i = 0; i < types.length; i += 2) {
      float x = animationTarget.svgToUserSpace
        (values[i], types[i], AnimationTarget.PERCENTAGE_VIEWPORT_WIDTH);
      float y = animationTarget.svgToUserSpace
        (values[i + 1], types[i + 1], AnimationTarget.PERCENTAGE_VIEWPORT_HEIGHT);
      ret[i / 2] = new AnimatableMotionPointValue(animationTarget, x, y, 0);
    }
    return ret;
  } catch (ParseException pEx ) {
    throw new BridgeException
      (ctx, element, pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED,
       new Object[] { SVG_VALUES_ATTRIBUTE, s });
  }
}
origin: apache/batik

protected AnimatableValue[] parseValues(String s) {
  try {
    LengthPairListParser lplp = new LengthPairListParser();
    LengthArrayProducer lap = new LengthArrayProducer();
    lplp.setLengthListHandler(lap);
    lplp.parse(s);
    short[] types = lap.getLengthTypeArray();
    float[] values = lap.getLengthValueArray();
    AnimatableValue[] ret = new AnimatableValue[types.length / 2];
    for (int i = 0; i < types.length; i += 2) {
      float x = animationTarget.svgToUserSpace
        (values[i], types[i], AnimationTarget.PERCENTAGE_VIEWPORT_WIDTH);
      float y = animationTarget.svgToUserSpace
        (values[i + 1], types[i + 1], AnimationTarget.PERCENTAGE_VIEWPORT_HEIGHT);
      ret[i / 2] = new AnimatableMotionPointValue(animationTarget, x, y, 0);
    }
    return ret;
  } catch (ParseException pEx ) {
    throw new BridgeException
      (ctx, element, pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED,
       new Object[] { SVG_VALUES_ATTRIBUTE, s });
  }
}
org.apache.batik.anim.valuesAnimatableMotionPointValue<init>

Javadoc

Creates a new, uninitialized AnimatableMotionPointValue.

Popular methods of AnimatableMotionPointValue

  • formatNumber
  • getAngle
    Returns the rotation angle.
  • getX
    Returns the x coordinate.
  • getY
    Returns the y coordinate.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now