/** * Constructs a TextDecoration object for the specified element. This will * contain all of the decoration properties to be used when drawing the * text. */ protected TextPaintInfo getTextPaintInfo(Element element, GraphicsNode node, TextPaintInfo parentTPI, BridgeContext ctx) { // Force the engine to update stuff.. CSSUtilities.getComputedStyle (element, SVGCSSEngine.TEXT_DECORATION_INDEX); TextPaintInfo pi = new TextPaintInfo(parentTPI); // Was text-decoration explicity set on this element? StyleMap sm = ((CSSStylableElement)element).getComputedStyleMap(null); if ((sm.isNullCascaded(SVGCSSEngine.TEXT_DECORATION_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.FILL_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.STROKE_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.STROKE_WIDTH_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.OPACITY_INDEX))) { // If not, keep the same decorations. return pi; } setBaseTextPaintInfo(pi, element, node, ctx); if (!sm.isNullCascaded(SVGCSSEngine.TEXT_DECORATION_INDEX)) setDecorationTextPaintInfo(pi, element); return pi; }
/** * Constructs a TextDecoration object for the specified element. This will * contain all of the decoration properties to be used when drawing the * text. */ protected TextPaintInfo getTextPaintInfo(Element element, GraphicsNode node, TextPaintInfo parentTPI, BridgeContext ctx) { // Force the engine to update stuff.. CSSUtilities.getComputedStyle (element, SVGCSSEngine.TEXT_DECORATION_INDEX); TextPaintInfo pi = new TextPaintInfo(parentTPI); // Was text-decoration explicity set on this element? StyleMap sm = ((CSSStylableElement)element).getComputedStyleMap(null); if ((sm.isNullCascaded(SVGCSSEngine.TEXT_DECORATION_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.FILL_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.STROKE_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.STROKE_WIDTH_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.OPACITY_INDEX))) { // If not, keep the same decorations. return pi; } setBaseTextPaintInfo(pi, element, node, ctx); if (!sm.isNullCascaded(SVGCSSEngine.TEXT_DECORATION_INDEX)) setDecorationTextPaintInfo(pi, element); return pi; }
/** * Constructs a TextDecoration object for the specified element. This will * contain all of the decoration properties to be used when drawing the * text. */ protected TextPaintInfo getTextPaintInfo(Element element, GraphicsNode node, TextPaintInfo parentTPI, BridgeContext ctx) { // Force the engine to update stuff.. CSSUtilities.getComputedStyle (element, SVGCSSEngine.TEXT_DECORATION_INDEX); TextPaintInfo pi = new TextPaintInfo(parentTPI); // Was text-decoration explicity set on this element? StyleMap sm = ((CSSStylableElement)element).getComputedStyleMap(null); if ((sm.isNullCascaded(SVGCSSEngine.TEXT_DECORATION_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.FILL_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.STROKE_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.STROKE_WIDTH_INDEX)) && (sm.isNullCascaded(SVGCSSEngine.OPACITY_INDEX))) { // If not, keep the same decorations. return pi; } setBaseTextPaintInfo(pi, element, node, ctx); if (!sm.isNullCascaded(SVGCSSEngine.TEXT_DECORATION_INDEX)) setDecorationTextPaintInfo(pi, element); return pi; }
private static void clearComputedValue(StyleMap style, int n) { if (style.isNullCascaded(n)) { style.putValue(n, null); } else { Value v = style.getValue(n); if (v instanceof ComputedValue) { ComputedValue cv = (ComputedValue)v; v = cv.getCascadedValue(); style.putValue(n, v); } } style.putComputed(n, false); }
private static void clearComputedValue(StyleMap style, int n) { if (style.isNullCascaded(n)) { style.putValue(n, null); } else { Value v = style.getValue(n); if (v instanceof ComputedValue) { ComputedValue cv = (ComputedValue)v; v = cv.getCascadedValue(); style.putValue(n, v); } } style.putComputed(n, false); }
private static void clearComputedValue(StyleMap style, int n) { if (style.isNullCascaded(n)) { style.putValue(n, null); } else { Value v = style.getValue(n); if (v instanceof ComputedValue) { ComputedValue cv = (ComputedValue)v; v = cv.getCascadedValue(); style.putValue(n, v); } } style.putComputed(n, false); }
if (!sm.isNullCascaded(pidx)) {
if (!sm.isNullCascaded(pidx)) {
if (!sm.isNullCascaded(pidx)) {
if (!sm.isNullCascaded(pidx)) {
if (!sm.isNullCascaded(pidx)) {
if (!sm.isNullCascaded(pidx)) {
if (!style.isNullCascaded(i)) { ov = style.getValue(i); if (ov instanceof ComputedValue) {
if (!style.isNullCascaded(i)) { ov = style.getValue(i); if (ov instanceof ComputedValue) {
if (!style.isNullCascaded(i)) { ov = style.getValue(i); if (ov instanceof ComputedValue) {