/** * To implement {@link * org.w3c.dom.svg.SVGTextContentElement#getCharNumAtPosition(SVGPoint point)}. */ public static int getCharNumAtPosition(Element elt, final float x, final float y) throws DOMException { final SVGOMElement svgelt = (SVGOMElement)elt; final SVGTextContent context = (SVGTextContent)svgelt.getSVGContext(); return context.getCharNumAtPosition(x,y); }
/** * Returns the font-size value. */ public float getFontSize() { return getSVGContext().getFontSize(); }
/** * To implement {@link * org.w3c.dom.svg.SVGTextContentElement#getNumberOfChars()}. */ public static int getNumberOfChars(Element elt) { final SVGOMElement svgelt = (SVGOMElement)elt; return (((SVGTextContent)svgelt.getSVGContext()).getNumberOfChars()); }
/** * To implement {@link * org.w3c.dom.svg.SVGTextContentElement#selectSubString(int charnum, int nchars)}. */ public static float getComputedTextLength(Element elt){ final SVGOMElement svgelt = (SVGOMElement)elt; final SVGTextContent context = (SVGTextContent)svgelt.getSVGContext(); return context.getComputedTextLength(); }
/** * Returns the size of a px CSS unit in millimeters. */ public float getPixelUnitToMillimeter() { return getSVGContext().getPixelUnitToMillimeter(); }
/** * Returns the viewport width used to compute units. */ public float getViewportWidth() { return getSVGContext().getViewportWidth(); }
/** * To implement {@link * org.w3c.dom.svg.SVGTextContentElement#selectSubString(int charnum, int nchars)}. */ public static float getComputedTextLength(Element elt){ final SVGOMElement svgelt = (SVGOMElement)elt; final SVGTextContent context = (SVGTextContent)svgelt.getSVGContext(); return context.getComputedTextLength(); }
/** * Returns the font-size value. */ public float getFontSize() { return getSVGContext().getFontSize(); }
/** * Returns the viewport height used to compute units. */ public float getViewportHeight() { return getSVGContext().getViewportHeight(); } }
/** * To implement {@link * org.w3c.dom.svg.SVGTextContentElement#getCharNumAtPosition(SVGPoint point)}. */ public static int getCharNumAtPosition(Element elt, final float x, final float y) throws DOMException { final SVGOMElement svgelt = (SVGOMElement)elt; final SVGTextContent context = (SVGTextContent)svgelt.getSVGContext(); return context.getCharNumAtPosition(x,y); }
/** * Returns the viewport height used to compute units. */ public float getViewportHeight() { return getSVGContext().getViewportHeight(); } }
/** * Returns the viewport width used to compute units. */ public float getViewportWidth() { return getAssociatedElement().getSVGContext().getViewportWidth(); }
/** * Returns the font-size value. */ public float getFontSize() { return getAssociatedElement().getSVGContext().getFontSize(); }
/** * Disposes this BridgeUpdateHandler and releases all resources. */ public void dispose() { if (element.getSVGContext() == null) { // Only remove the animation if this is not part of a rebuild. eng.removeAnimation(animation); timedElement.deinitialize(); timedElement = null; element = null; } }
/** * Returns the viewport height used to compute units. */ public float getViewportHeight() { return getAssociatedElement().getSVGContext().getViewportHeight(); } }
/** * Returns the font-size value. */ public float getFontSize() { return getAssociatedElement().getSVGContext().getFontSize(); }
/** * Returns the viewport width used to compute units. */ public float getViewportWidth() { return getAssociatedElement().getSVGContext().getViewportWidth(); }
/** * Returns the size of a px CSS unit in millimeters. */ public float getPixelUnitToMillimeter() { return getAssociatedElement().getSVGContext() .getPixelUnitToMillimeter(); }
/** * Returns the font-size value. */ public float getFontSize() { return getAssociatedElement().getSVGContext().getFontSize(); }
protected AffineTransform getAffineTransform() { SVGContext context = svgelt.getSVGContext(); AffineTransform ret = context.getGlobalTransform(); AffineTransform scrnTrans = context.getScreenTransform(); if (scrnTrans != null) ret.preConcatenate(scrnTrans); return ret; } };