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()); }
tn.setAttributedCharacterIterator(null); return; tn.setAttributedCharacterIterator(as.getIterator()); tn.setAttributedCharacterIterator(as.getIterator());
tn.setAttributedCharacterIterator(null); return; tn.setAttributedCharacterIterator(as.getIterator()); tn.setAttributedCharacterIterator(as.getIterator());
tn.setAttributedCharacterIterator(null); return; tn.setAttributedCharacterIterator(as.getIterator()); tn.setAttributedCharacterIterator(as.getIterator());