public static void render( Graphics2D gc, GraphicsNode svgGraphicsNode, Dimension2D svgGraphicsSize, int centerX, int centerY, int width, int height, double angleRadians ) { double scaleX = width / svgGraphicsSize.getWidth(); double scaleY = height / svgGraphicsSize.getHeight(); AffineTransform affineTransform = new AffineTransform(); if ( centerX != 0 || centerY != 0 ) { affineTransform.translate( centerX, centerY ); } affineTransform.scale( scaleX, scaleY ); if ( angleRadians != 0 ) { affineTransform.rotate( angleRadians ); } affineTransform.translate( -svgGraphicsSize.getWidth() / 2, -svgGraphicsSize.getHeight() / 2 ); svgGraphicsNode.setTransform( affineTransform ); svgGraphicsNode.paint( gc ); } }
/** * 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)); }
glyphChildrenNode.setTransform(tr); glyphChildrenNode.paint(graphics2D);
glyphChildrenNode.setTransform(tr); glyphChildrenNode.paint(graphics2D);
glyphChildrenNode.setTransform(tr); glyphChildrenNode.paint(graphics2D);
ln.equals(SVG_Y_ATTRIBUTE) || ln.equals(SVG_TRANSFORM_ATTRIBUTE)) { node.setTransform (computeTransform((SVGTransformable) e, ctx)); handleGeometryChanged();
ln.equals(SVG_Y_ATTRIBUTE) || ln.equals(SVG_TRANSFORM_ATTRIBUTE)) { node.setTransform (computeTransform((SVGTransformable) e, ctx)); handleGeometryChanged();
ln.equals(SVG_Y_ATTRIBUTE) || ln.equals(SVG_TRANSFORM_ATTRIBUTE)) { node.setTransform (computeTransform((SVGTransformable) e, ctx)); handleGeometryChanged();
t2.concatenate( node.getTransform() ); node.setTransform( t2 ); shape.append( node.getOutline(), false );
(e, vb, w, h, _par, ctx); at.preConcatenate(AffineTransform.getTranslateInstance(x, y)); node.setTransform(at);
(e, vb, w, h, _par, ctx); at.preConcatenate(AffineTransform.getTranslateInstance(x, y)); node.setTransform(at);
(e, vb, w, h, _par, ctx); at.preConcatenate(AffineTransform.getTranslateInstance(x, y)); node.setTransform(at);
gn.setTransform(patternContentTransform);
gn.setTransform(patternContentTransform);
gn.setTransform(patternContentTransform);