Tabnine Logo
UnitProcessor.svgToObjectBoundingBox
Code IndexAdd Tabnine to your IDE (free)

How to use
svgToObjectBoundingBox
method
in
org.apache.batik.parser.UnitProcessor

Best Java code snippets using org.apache.batik.parser.UnitProcessor.svgToObjectBoundingBox (Showing top 6 results out of 315)

origin: apache/batik

/**
 * Returns the specified value with the specified direction in
 * objectBoundingBox units.
 *
 * @param s the value
 * @param attr the attribute name that represents the value
 * @param d the direction of the value
 * @param ctx the context used to resolve relative value
 */
public static float svgToObjectBoundingBox(String s,
                      String attr,
                      short d,
                      Context ctx) {
  try {
    return org.apache.batik.parser.UnitProcessor.
      svgToObjectBoundingBox(s, attr, d, ctx);
  } catch (ParseException pEx ) {
    throw new BridgeException
      (getBridgeContext(ctx), ctx.getElement(),
       pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED,
       new Object[] {attr, s, pEx });
  }
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Returns the specified value with the specified direction in
 * objectBoundingBox units.
 *
 * @param s the value
 * @param attr the attribute name that represents the value
 * @param d the direction of the value
 * @param ctx the context used to resolve relative value
 */
public static float svgToObjectBoundingBox(String s,
                      String attr,
                      short d,
                      Context ctx) {
  try {
    return org.apache.batik.parser.UnitProcessor.
      svgToObjectBoundingBox(s, attr, d, ctx);
  } catch (ParseException pEx ) {
    throw new BridgeException
      (getBridgeContext(ctx), ctx.getElement(),
       pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED,
       new Object[] {attr, s, pEx });
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the specified value with the specified direction in
 * objectBoundingBox units.
 *
 * @param s the value
 * @param attr the attribute name that represents the value
 * @param d the direction of the value
 * @param ctx the context used to resolve relative value
 */
public static float svgToObjectBoundingBox(String s,
                      String attr,
                      short d,
                      Context ctx) {
  try {
    return org.apache.batik.parser.UnitProcessor.
      svgToObjectBoundingBox(s, attr, d, ctx);
  } catch (ParseException pEx ) {
    throw new BridgeException
      (getBridgeContext(ctx), ctx.getElement(),
       pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED,
       new Object[] {attr, s, pEx });
  }
}
origin: org.apache.xmlgraphics/batik-parser

/**
 * Returns the specified value with the specified direction in
 * objectBoundingBox units.
 *
 * @param s the value
 * @param attr the attribute name that represents the value
 * @param d the direction of the value
 * @param ctx the context used to resolve relative value
 */
public static float svgToObjectBoundingBox(String s,
                      String attr,
                      short d,
                      Context ctx)
  throws ParseException {
  LengthParser lengthParser = new LengthParser();
  UnitResolver ur = new UnitResolver();
  lengthParser.setLengthHandler(ur);
  lengthParser.parse(s);
  return svgToObjectBoundingBox(ur.value, ur.unit, d, ctx);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the specified value with the specified direction in
 * objectBoundingBox units.
 *
 * @param s the value
 * @param attr the attribute name that represents the value
 * @param d the direction of the value
 * @param ctx the context used to resolve relative value
 */
public static float svgToObjectBoundingBox(String s,
                      String attr,
                      short d,
                      Context ctx)
  throws ParseException {
  LengthParser lengthParser = new LengthParser();
  UnitResolver ur = new UnitResolver();
  lengthParser.setLengthHandler(ur);
  lengthParser.parse(s);
  return svgToObjectBoundingBox(ur.value, ur.unit, d, ctx);
}
origin: apache/batik

/**
 * Returns the specified value with the specified direction in
 * objectBoundingBox units.
 *
 * @param s the value
 * @param attr the attribute name that represents the value
 * @param d the direction of the value
 * @param ctx the context used to resolve relative value
 */
public static float svgToObjectBoundingBox(String s,
                      String attr,
                      short d,
                      Context ctx)
  throws ParseException {
  LengthParser lengthParser = new LengthParser();
  UnitResolver ur = new UnitResolver();
  lengthParser.setLengthHandler(ur);
  lengthParser.parse(s);
  return svgToObjectBoundingBox(ur.value, ur.unit, d, ctx);
}
org.apache.batik.parserUnitProcessorsvgToObjectBoundingBox

Javadoc

Returns the specified value with the specified direction in objectBoundingBox units.

Popular methods of UnitProcessor

  • svgToUserSpace
    Returns the specified coordinate with the specified direction in user units.
  • emsToPixels
    Converts ems units to user units.
  • exsToPixels
    Converts exs units to user units.
  • percentagesToPixels
    Converts percentages to user units.
  • pixelsToEms
    Converts user units to ems units.
  • pixelsToExs
    Converts user units to exs units.
  • pixelsToPercentages
    Converts user units to percentages relative to the viewport.
  • userSpaceToSVG
    Converts the specified value of the specified type and direction to SVG units.

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Collectors (java.util.stream)
  • JComboBox (javax.swing)
  • Best plugins for Eclipse
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