/** * Sets the graphics node's transform to the current animated transform * value. */ protected void setTransform(GraphicsNode n, Element e, BridgeContext ctx) { n.setTransform(computeTransform((SVGTransformable) e, ctx)); }
/** * Sets the graphics node's transform to the current animated transform * value. */ protected void setTransform(GraphicsNode n, Element e, BridgeContext ctx) { n.setTransform(computeTransform((SVGTransformable) e, ctx)); }
/** * Sets the graphics node's transform to the current animated transform * value. */ protected void setTransform(GraphicsNode n, Element e, BridgeContext ctx) { n.setTransform(computeTransform((SVGTransformable) e, ctx)); }
/** * Returns an {@link AffineTransform} that is the transformation to * be applied to the node. */ protected AffineTransform computeTransform(SVGTransformable e, BridgeContext ctx) { AffineTransform at = super.computeTransform(e, ctx); SVGUseElement ue = (SVGUseElement) e; try { // 'x' attribute - default is 0 AbstractSVGAnimatedLength _x = (AbstractSVGAnimatedLength) ue.getX(); float x = _x.getCheckedValue(); // 'y' attribute - default is 0 AbstractSVGAnimatedLength _y = (AbstractSVGAnimatedLength) ue.getY(); float y = _y.getCheckedValue(); AffineTransform xy = AffineTransform.getTranslateInstance(x, y); xy.preConcatenate(at); return xy; } catch (LiveAttributeException ex) { throw new BridgeException(ctx, ex); } }
/** * Returns an {@link AffineTransform} that is the transformation to * be applied to the node. */ protected AffineTransform computeTransform(SVGTransformable e, BridgeContext ctx) { AffineTransform at = super.computeTransform(e, ctx); SVGUseElement ue = (SVGUseElement) e; try { // 'x' attribute - default is 0 AbstractSVGAnimatedLength _x = (AbstractSVGAnimatedLength) ue.getX(); float x = _x.getCheckedValue(); // 'y' attribute - default is 0 AbstractSVGAnimatedLength _y = (AbstractSVGAnimatedLength) ue.getY(); float y = _y.getCheckedValue(); AffineTransform xy = AffineTransform.getTranslateInstance(x, y); xy.preConcatenate(at); return xy; } catch (LiveAttributeException ex) { throw new BridgeException(ctx, ex); } }
/** * Returns an {@link AffineTransform} that is the transformation to * be applied to the node. */ protected AffineTransform computeTransform(SVGTransformable e, BridgeContext ctx) { AffineTransform at = super.computeTransform(e, ctx); SVGUseElement ue = (SVGUseElement) e; try { // 'x' attribute - default is 0 AbstractSVGAnimatedLength _x = (AbstractSVGAnimatedLength) ue.getX(); float x = _x.getCheckedValue(); // 'y' attribute - default is 0 AbstractSVGAnimatedLength _y = (AbstractSVGAnimatedLength) ue.getY(); float y = _y.getCheckedValue(); AffineTransform xy = AffineTransform.getTranslateInstance(x, y); xy.preConcatenate(at); return xy; } catch (LiveAttributeException ex) { throw new BridgeException(ctx, ex); } }