protected Rectangle2D getViewBoxRect() { SVGDocument doc = canvas.getSVGDocument(); if (doc == null) return null; SVGSVGElement el = doc.getRootElement(); if (el == null) return null; String viewBoxStr = el.getAttributeNS (null, SVGConstants.SVG_VIEW_BOX_ATTRIBUTE); if (viewBoxStr.length() != 0) { float[] rect = ViewBox.parseViewBoxAttribute(el, viewBoxStr, null); return new Rectangle2D.Float(rect[0], rect[1], rect[2], rect[3]); } GraphicsNode gn = canvas.getGraphicsNode(); if (gn == null) return null; Rectangle2D bounds = gn.getBounds(); if (bounds == null) return null; return (Rectangle2D) bounds.clone(); }
protected Rectangle2D getViewBoxRect() { SVGDocument doc = canvas.getSVGDocument(); if (doc == null) return null; SVGSVGElement el = doc.getRootElement(); if (el == null) return null; String viewBoxStr = el.getAttributeNS (null, SVGConstants.SVG_VIEW_BOX_ATTRIBUTE); if (viewBoxStr.length() != 0) { float[] rect = ViewBox.parseViewBoxAttribute(el, viewBoxStr, null); return new Rectangle2D.Float(rect[0], rect[1], rect[2], rect[3]); } GraphicsNode gn = canvas.getGraphicsNode(); if (gn == null) return null; Rectangle2D bounds = gn.getBounds(); if (bounds == null) return null; return (Rectangle2D) bounds.clone(); }
String viewBox = svgElement.getAttributeNS (null, SVG_VIEW_BOX_ATTRIBUTE); vb = ViewBox.parseViewBoxAttribute(e, viewBox, ctx);
String viewBox = svgElement.getAttributeNS (null, SVG_VIEW_BOX_ATTRIBUTE); vb = ViewBox.parseViewBoxAttribute(e, viewBox, ctx);
String viewBox = svgElement.getAttributeNS (null, SVG_VIEW_BOX_ATTRIBUTE); vb = ViewBox.parseViewBoxAttribute(e, viewBox, ctx);
protected Rectangle2D getViewBoxRect() { SVGDocument doc = canvas.getSVGDocument(); if (doc == null) return null; SVGSVGElement el = doc.getRootElement(); if (el == null) return null; String viewBoxStr = el.getAttributeNS (null, SVGConstants.SVG_VIEW_BOX_ATTRIBUTE); if (viewBoxStr.length() != 0) { float[] rect = ViewBox.parseViewBoxAttribute(el, viewBoxStr, null); return new Rectangle2D.Float(rect[0], rect[1], rect[2], rect[3]); } GraphicsNode gn = canvas.getGraphicsNode(); if (gn == null) return null; Rectangle2D bounds = gn.getBounds(); if (bounds == null) return null; return (Rectangle2D) bounds.clone(); }
float[] vb = ViewBox.parseViewBoxAttribute(svgDocument.getRootElement(), svgDocument.getRootElement().getAttribute("viewBox"), bridgeContext);
return new AffineTransform(); float[] vb = parseViewBoxAttribute(e, viewBox, ctx);
return new AffineTransform(); float[] vb = parseViewBoxAttribute(e, viewBox, ctx);
return new AffineTransform(); float[] vb = parseViewBoxAttribute(e, viewBox, ctx);
vb = parseViewBoxAttribute(elt, viewBoxStr, ctx);
vb = parseViewBoxAttribute(elt, viewBoxStr, ctx);
vb = parseViewBoxAttribute(elt, viewBoxStr, ctx);
float[] vb = ViewBox.parseViewBoxAttribute(e, viewBox, ctx);
float[] vb = ViewBox.parseViewBoxAttribute(e, viewBox, ctx);
float[] vb = ViewBox.parseViewBoxAttribute(e, viewBox, ctx);