Tabnine Logo
AnimatableLengthListValue.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns a zero value of this AnimatableValue's type.
 */
public AnimatableValue getZeroValue() {
  float[] vs = new float[lengthValues.length];
  return new AnimatableLengthListValue
    (target, lengthTypes, vs, percentageInterpretation);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns a zero value of this AnimatableValue's type.
 */
public AnimatableValue getZeroValue() {
  float[] vs = new float[lengthValues.length];
  return new AnimatableLengthListValue
    (target, lengthTypes, vs, percentageInterpretation);
}
origin: apache/batik

/**
 * Returns a zero value of this AnimatableValue's type.
 */
public AnimatableValue getZeroValue() {
  float[] vs = new float[lengthValues.length];
  return new AnimatableLengthListValue
    (target, lengthTypes, vs, percentageInterpretation);
}
origin: apache/batik

/**
 * Creates a new AnimatableValue from a string.
 */
public AnimatableValue createValue(AnimationTarget target, String ns,
                  String ln, boolean isCSS, String s) {
  try {
    short pcInterp = target.getPercentageInterpretation
      (ns, ln, isCSS);
    parser.parse(s);
    return new AnimatableLengthListValue
      (target, producer.getLengthTypeArray(),
       producer.getLengthValueArray(),
       pcInterp);
  } catch (ParseException e) {
    // XXX Do something better than returning null.
    return null;
  }
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Creates a new AnimatableValue from a string.
 */
public AnimatableValue createValue(AnimationTarget target, String ns,
                  String ln, boolean isCSS, String s) {
  try {
    short pcInterp = target.getPercentageInterpretation
      (ns, ln, isCSS);
    parser.parse(s);
    return new AnimatableLengthListValue
      (target, producer.getLengthTypeArray(),
       producer.getLengthValueArray(),
       pcInterp);
  } catch (ParseException e) {
    // XXX Do something better than returning null.
    return null;
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Creates a new AnimatableValue from a string.
 */
public AnimatableValue createValue(AnimationTarget target, String ns,
                  String ln, boolean isCSS, String s) {
  try {
    short pcInterp = target.getPercentageInterpretation
      (ns, ln, isCSS);
    parser.parse(s);
    return new AnimatableLengthListValue
      (target, producer.getLengthTypeArray(),
       producer.getLengthValueArray(),
       pcInterp);
  } catch (ParseException e) {
    // XXX Do something better than returning null.
    return null;
  }
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns the base value of the attribute as an {@link AnimatableValue}.
 */
public AnimatableValue getUnderlyingValue(AnimationTarget target) {
  SVGLengthList ll = getBaseVal();
  int n = ll.getNumberOfItems();
  short[] types = new short[n];
  float[] values = new float[n];
  for (int i = 0; i < n; i++) {
    SVGLength l = ll.getItem(i);
    types[i] = l.getUnitType();
    values[i] = l.getValueInSpecifiedUnits();
  }
  return new AnimatableLengthListValue
    (target, types, values,
     target.getPercentageInterpretation
       (getNamespaceURI(), getLocalName(), false));
}
origin: apache/batik

/**
 * Returns the base value of the attribute as an {@link AnimatableValue}.
 */
public AnimatableValue getUnderlyingValue(AnimationTarget target) {
  SVGLengthList ll = getBaseVal();
  int n = ll.getNumberOfItems();
  short[] types = new short[n];
  float[] values = new float[n];
  for (int i = 0; i < n; i++) {
    SVGLength l = ll.getItem(i);
    types[i] = l.getUnitType();
    values[i] = l.getValueInSpecifiedUnits();
  }
  return new AnimatableLengthListValue
    (target, types, values,
     target.getPercentageInterpretation
       (getNamespaceURI(), getLocalName(), false));
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the base value of the attribute as an {@link AnimatableValue}.
 */
public AnimatableValue getUnderlyingValue(AnimationTarget target) {
  SVGLengthList ll = getBaseVal();
  int n = ll.getNumberOfItems();
  short[] types = new short[n];
  float[] values = new float[n];
  for (int i = 0; i < n; i++) {
    SVGLength l = ll.getItem(i);
    types[i] = l.getUnitType();
    values[i] = l.getValueInSpecifiedUnits();
  }
  return new AnimatableLengthListValue
    (target, types, values,
     target.getPercentageInterpretation
       (getNamespaceURI(), getLocalName(), false));
}
origin: fr.avianey.apache-xmlgraphics/batik

res = new AnimatableLengthListValue(target);
res.lengthTypes = new short[len];
res.lengthValues = new float[len];
origin: org.apache.xmlgraphics/batik-anim

res = new AnimatableLengthListValue(target);
res.lengthTypes = new short[len];
res.lengthValues = new float[len];
origin: apache/batik

res = new AnimatableLengthListValue(target);
res.lengthTypes = new short[len];
res.lengthValues = new float[len];
org.apache.batik.anim.valuesAnimatableLengthListValue<init>

Javadoc

Creates a new, uninitialized AnimatableLengthListValue.

Popular methods of AnimatableLengthListValue

  • formatNumber
  • getLengthTypes
    Gets the length types.
  • getLengthValues
    Gets the length values.

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Socket (java.net)
    Provides a client-side TCP socket.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Best IntelliJ plugins
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