/** * Adds painting attributes to an AttributedString. */ protected void addPaintAttributes(AttributedString as, Element element, TextNode node, TextPaintInfo pi, BridgeContext ctx) { // 'requiredFeatures', 'requiredExtensions' and 'systemLanguage' if ((!SVGUtilities.matchUserAgent(element, ctx.getUserAgent())) || (!CSSUtilities.convertDisplay(element))) { return; } Object o = elemTPI.get(element); if (o != null) { node.swapTextPaintInfo(pi, (TextPaintInfo)o); } addChildPaintAttributes(as, element, node, pi, ctx); }
/** * Adds painting attributes to an AttributedString. */ protected void addPaintAttributes(AttributedString as, Element element, TextNode node, TextPaintInfo pi, BridgeContext ctx) { // 'requiredFeatures', 'requiredExtensions' and 'systemLanguage' if ((!SVGUtilities.matchUserAgent(element, ctx.getUserAgent())) || (!CSSUtilities.convertDisplay(element))) { return; } Object o = elemTPI.get(element); if (o != null) { node.swapTextPaintInfo(pi, (TextPaintInfo)o); } addChildPaintAttributes(as, element, node, pi, ctx); }
/** * Adds painting attributes to an AttributedString. */ protected void addPaintAttributes(AttributedString as, Element element, TextNode node, TextPaintInfo pi, BridgeContext ctx) { // 'requiredFeatures', 'requiredExtensions' and 'systemLanguage' if ((!SVGUtilities.matchUserAgent(element, ctx.getUserAgent())) || (!CSSUtilities.convertDisplay(element))) { return; } Object o = elemTPI.get(element); if (o != null) { node.swapTextPaintInfo(pi, (TextPaintInfo)o); } addChildPaintAttributes(as, element, node, pi, ctx); }
protected void rebuildACI() { if (hasNewACI) return; TextNode textNode = getTextNode(); if (textNode.getAttributedCharacterIterator() == null) return; TextPaintInfo pi, oldPI; if ( cssProceedElement == e ){ pi = new TextPaintInfo(); setBaseTextPaintInfo(pi, e, node, ctx); setDecorationTextPaintInfo(pi, e); oldPI = (TextPaintInfo)elemTPI.get(e); } else { //if a child CSS property has changed, then //retrieve the parent text decoration //and only update the section of the AtrtibutedString of //the child TextPaintInfo parentPI; parentPI = getParentTextPaintInfo(cssProceedElement); pi = getTextPaintInfo(cssProceedElement, textNode, parentPI, ctx); oldPI = (TextPaintInfo)elemTPI.get(cssProceedElement); } if (oldPI == null) return; textNode.swapTextPaintInfo(pi, oldPI); if (usingComplexSVGFont) // Force Complex SVG fonts to be recreated textNode.setAttributedCharacterIterator (textNode.getAttributedCharacterIterator()); }
protected void rebuildACI() { if (hasNewACI) return; TextNode textNode = getTextNode(); if (textNode.getAttributedCharacterIterator() == null) return; TextPaintInfo pi, oldPI; if ( cssProceedElement == e ){ pi = new TextPaintInfo(); setBaseTextPaintInfo(pi, e, node, ctx); setDecorationTextPaintInfo(pi, e); oldPI = (TextPaintInfo)elemTPI.get(e); } else { //if a child CSS property has changed, then //retrieve the parent text decoration //and only update the section of the AtrtibutedString of //the child TextPaintInfo parentPI; parentPI = getParentTextPaintInfo(cssProceedElement); pi = getTextPaintInfo(cssProceedElement, textNode, parentPI, ctx); oldPI = (TextPaintInfo)elemTPI.get(cssProceedElement); } if (oldPI == null) return; textNode.swapTextPaintInfo(pi, oldPI); if (usingComplexSVGFont) // Force Complex SVG fonts to be recreated textNode.setAttributedCharacterIterator (textNode.getAttributedCharacterIterator()); }
protected void rebuildACI() { if (hasNewACI) return; TextNode textNode = getTextNode(); if (textNode.getAttributedCharacterIterator() == null) return; TextPaintInfo pi, oldPI; if ( cssProceedElement == e ){ pi = new TextPaintInfo(); setBaseTextPaintInfo(pi, e, node, ctx); setDecorationTextPaintInfo(pi, e); oldPI = (TextPaintInfo)elemTPI.get(e); } else { //if a child CSS property has changed, then //retrieve the parent text decoration //and only update the section of the AtrtibutedString of //the child TextPaintInfo parentPI; parentPI = getParentTextPaintInfo(cssProceedElement); pi = getTextPaintInfo(cssProceedElement, textNode, parentPI, ctx); oldPI = (TextPaintInfo)elemTPI.get(cssProceedElement); } if (oldPI == null) return; textNode.swapTextPaintInfo(pi, oldPI); if (usingComplexSVGFont) // Force Complex SVG fonts to be recreated textNode.setAttributedCharacterIterator (textNode.getAttributedCharacterIterator()); }