Tabnine Logo
org.apache.batik.parser
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.batik.parser

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

origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Utility method for creating an AffineTransform.
 * @param r The reader used to read the transform specification.
 */
public static AffineTransform createAffineTransform(Reader r)
  throws ParseException {
  TransformListParser p = new TransformListParser();
  AWTTransformProducer th = new AWTTransformProducer();
  p.setTransformListHandler(th);
  p.parse(r);
  return th.getAffineTransform();
}
origin: omero/blitz

public static Shape parseAwtPath(String str) {
  PathParser pp = new PathParser();
  AWTPathProducer ph = new AWTPathProducer();
  pp.setPathHandler(ph);
  pp.parse(str);
  return ph.getShape();
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Creates a new AnimatablePathDataFactory.
 */
public AnimatablePathDataFactory() {
  parser.setPathHandler(producer);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Parses the given reader
 */
public void parse(Reader r) throws ParseException {
  try {
    reader = new StreamNormalizingReader(r);
    doParse();
  } catch (IOException e) {
    errorHandler.error
      (new ParseException
       (createErrorMessage("io.exception", null), e));
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Signals an error to the error handler.
 * @param key The message key in the resource bundle.
 * @param args The message arguments.
 */
protected void reportError(String key, Object[] args)
  throws ParseException {
  errorHandler.error(new ParseException(createErrorMessage(key, args),
                     reader.getLine(),
                     reader.getColumn()));
}
origin: org.apache.xmlgraphics/batik-parser

/**
 * Implements {@link PathHandler#movetoAbs(float,float)}.
 */
public void movetoAbs(float x, float y) throws ParseException {
  command(SVGPathSeg.PATHSEG_MOVETO_ABS);
  param(x);
  param(y);
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Creates a new AnimatableLengthValueFactory.
 */
public AnimatableLengthValueFactory() {
  parser.setLengthHandler(handler);
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Creates a new AnimatableNumberListValueFactory.
 */
public AnimatableRectValueFactory() {
  parser.setNumberListHandler(producer);
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Creates a new AnimatablePreserveAspectRatioValueFactory.
 */
public AnimatablePreserveAspectRatioValueFactory() {
  parser.setPreserveAspectRatioHandler(handler);
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Creates a new AnimatableLengthListValueFactory.
 */
public AnimatableLengthListValueFactory() {
  parser.setLengthListHandler(producer);
}
origin: org.apache.xmlgraphics/batik-parser

  /**
   * Implements {@link PointsHandler#endPoints()}.
   */
  public void endPoints() throws ParseException {
    endNumberList();
  }
}
origin: org.apache.xmlgraphics/batik-parser

/**
 * Utility method for creating an AffineTransform.
 * @param r The reader used to read the transform specification.
 */
public static AffineTransform createAffineTransform(Reader r)
  throws ParseException {
  TransformListParser p = new TransformListParser();
  AWTTransformProducer th = new AWTTransformProducer();
  p.setTransformListHandler(th);
  p.parse(r);
  return th.getAffineTransform();
}
origin: org.apache.xmlgraphics/batik-parser

/**
 * Parses the given string.
 */
public void parse(String s) throws ParseException {
  try {
    reader = new StringNormalizingReader(s);
    doParse();
  } catch (IOException e) {
    errorHandler.error
      (new ParseException
       (createErrorMessage("io.exception", null), e));
  }
}
origin: org.apache.xmlgraphics/batik-parser

/**
 * Signals an error to the error handler.
 * @param key The message key in the resource bundle.
 * @param args The message arguments.
 */
protected void reportError(String key, Object[] args)
  throws ParseException {
  errorHandler.error(new ParseException(createErrorMessage(key, args),
                     reader.getLine(),
                     reader.getColumn()));
}
origin: org.apache.xmlgraphics/batik-parser

/**
 * Implements {@link PathHandler#curvetoQuadraticSmoothRel(float,float)}.
 */
public void curvetoQuadraticSmoothRel(float x, float y)
  throws ParseException {
  command(SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL);
  param(x);
  param(y);
}
origin: org.apache.xmlgraphics/batik-parser

/**
 * Utility method for creating an AffineTransform.
 * @param s The transform specification.
 */
public static AffineTransform createAffineTransform(String s)
  throws ParseException {
  TransformListParser p = new TransformListParser();
  AWTTransformProducer th = new AWTTransformProducer();
  p.setTransformListHandler(th);
  p.parse(s);
  return th.getAffineTransform();
}
origin: apache/batik

/**
 * Signals an error to the error handler.
 * @param key The message key in the resource bundle.
 * @param args The message arguments.
 */
protected void reportError(String key, Object[] args)
  throws ParseException {
  errorHandler.error(new ParseException(createErrorMessage(key, args),
                     reader.getLine(),
                     reader.getColumn()));
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Utility method for creating an AffineTransform.
 * @param s The transform specification.
 */
public static AffineTransform createAffineTransform(String s)
  throws ParseException {
  TransformListParser p = new TransformListParser();
  AWTTransformProducer th = new AWTTransformProducer();
  p.setTransformListHandler(th);
  p.parse(s);
  return th.getAffineTransform();
}
origin: apache/batik

/**
 * Utility method for creating an AffineTransform.
 * @param r The reader used to read the transform specification.
 */
public static AffineTransform createAffineTransform(Reader r)
  throws ParseException {
  TransformListParser p = new TransformListParser();
  AWTTransformProducer th = new AWTTransformProducer();
  p.setTransformListHandler(th);
  p.parse(r);
  return th.getAffineTransform();
}
origin: apache/batik

/**
 * Utility method for creating an AffineTransform.
 * @param s The transform specification.
 */
public static AffineTransform createAffineTransform(String s)
  throws ParseException {
  TransformListParser p = new TransformListParser();
  AWTTransformProducer th = new AWTTransformProducer();
  p.setTransformListHandler(th);
  p.parse(s);
  return th.getAffineTransform();
}
org.apache.batik.parser

Most used classes

  • ClockParser
    A parser for clock values.
  • NumberListParser
    This class implements an event-based parser for the SVG Number list values.
  • PathParser
    This class implements an event-based parser for the SVG path's d attribute values.
  • PointsParser
    This class implements an event-based parser for the SVG points attribute values (used with polyline
  • UnitProcessor
    This class provides methods to convert SVG length and coordinate to float in user units.
  • AWTTransformProducer,
  • AngleParser,
  • LengthListParser,
  • LengthParser,
  • PathArrayProducer,
  • PreserveAspectRatioParser,
  • TransformListParser,
  • AWTPolygonProducer,
  • AWTPolylineProducer,
  • FloatArrayProducer,
  • FragmentIdentifierParser,
  • LengthPairListParser,
  • ParseException,
  • PathHandler
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