/** * 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(); }
public static Shape parseAwtPath(String str) { PathParser pp = new PathParser(); AWTPathProducer ph = new AWTPathProducer(); pp.setPathHandler(ph); pp.parse(str); return ph.getShape(); }
/** * Creates a new AnimatablePathDataFactory. */ public AnimatablePathDataFactory() { parser.setPathHandler(producer); }
/** * 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)); } }
/** * 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())); }
/** * Creates a new AnimatableLengthValueFactory. */ public AnimatableLengthValueFactory() { parser.setLengthHandler(handler); }
/** * Creates a new AnimatableNumberListValueFactory. */ public AnimatableRectValueFactory() { parser.setNumberListHandler(producer); }
/** * Creates a new AnimatablePreserveAspectRatioValueFactory. */ public AnimatablePreserveAspectRatioValueFactory() { parser.setPreserveAspectRatioHandler(handler); }
/** * Creates a new AnimatableLengthListValueFactory. */ public AnimatableLengthListValueFactory() { parser.setLengthListHandler(producer); }
/** * Implements {@link PointsHandler#endPoints()}. */ public void endPoints() throws ParseException { endNumberList(); } }
/** * 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(); }
/** * 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)); } }
/** * 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())); }
/** * 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(); }
/** * 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())); }
/** * 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(); }
/** * 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(); }
/** * 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(); }