public void endTransformList() throws ParseException { super.endTransformList(); hasTransform = true; }
/** * 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(); }
/** * Returns an AffineTransform according to the specified parameters. * * @param e the element that defines the transform * @param attr the name of the attribute that represents the transform * @param transform the transform to parse * @param ctx the BridgeContext to use for error information */ public static AffineTransform convertTransform(Element e, String attr, String transform, BridgeContext ctx) { try { return AWTTransformProducer.createAffineTransform(transform); } catch (ParseException pEx) { throw new BridgeException(ctx, e, pEx, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object[] {attr, transform, pEx }); } }
/** * 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(); }
/** * Returns an AffineTransform according to the specified parameters. * * @param e the element that defines the transform * @param attr the name of the attribute that represents the transform * @param transform the transform to parse * @param ctx the BridgeContext to use for error information */ public static AffineTransform convertTransform(Element e, String attr, String transform, BridgeContext ctx) { try { return AWTTransformProducer.createAffineTransform(transform); } catch (ParseException pEx) { throw new BridgeException(ctx, e, pEx, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object[] {attr, transform, pEx }); } }
/** * 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(); }
/** * Returns an AffineTransform according to the specified parameters. * * @param e the element that defines the transform * @param attr the name of the attribute that represents the transform * @param transform the transform to parse * @param ctx the BridgeContext to use for error information */ public static AffineTransform convertTransform(Element e, String attr, String transform, BridgeContext ctx) { try { return AWTTransformProducer.createAffineTransform(transform); } catch (ParseException pEx) { throw new BridgeException(ctx, e, pEx, ERR_ATTRIBUTE_VALUE_MALFORMED, new Object[] {attr, transform, pEx }); } }
public void endTransformList() throws ParseException { super.endTransformList(); hasTransform = true; }
/** * 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(); }
transf = bv.getForeignAttributeValue(FOX_TRANSFORM); if (transf != null) { AffineTransform freeTransform = AWTTransformProducer.createAffineTransform(transf); positionTransform.concatenate(freeTransform);
public void endTransformList() throws ParseException { super.endTransformList(); hasTransform = true; }
/** * 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(); }
transf = bv.getForeignAttributeValue(FOX_TRANSFORM); if (transf != null) { AffineTransform freeTransform = AWTTransformProducer.createAffineTransform(transf); positionTransform.concatenate(freeTransform);
/** * 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(); }