/** * Implements {@link Value#getStringValue()}. */ public String getStringValue() throws DOMException { return computedValue.getStringValue(); }
/** * Implements {@link Value#getStringValue()}. */ public String getStringValue() throws DOMException { return computedValue.getStringValue(); }
/** * Implements {@link Value#getStringValue()}. */ public String getStringValue() throws DOMException { return computedValue.getStringValue(); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSPrimitiveValue#getStringValue()}. */ public String getStringValue() throws DOMException { return valueProvider.getValue().getStringValue(); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSPrimitiveValue#getStringValue()}. */ public String getStringValue() throws DOMException { return valueProvider.getValue().getStringValue(); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSPrimitiveValue#getStringValue()}. */ public String getStringValue() throws DOMException { return valueProvider.getValue().getStringValue(); }
/** * Returns the color space for the specified filter element. Checks the * 'color-interpolation-filters' property. * * @param e the element * @return true if the color space is linear, false otherwise (sRGB). */ public static boolean convertColorInterpolationFilters(Element e) { Value v = getComputedStyle(e, SVGCSSEngine.COLOR_INTERPOLATION_FILTERS_INDEX); return CSS_LINEARRGB_VALUE == v.getStringValue(); }
/** * Returns the 'clip-rule' for the specified element. * * @param e the element interested in its a 'clip-rule' * @return GeneralPath.WIND_NON_ZERO | GeneralPath.WIND_EVEN_ODD */ public static int convertClipRule(Element e) { Value v = getComputedStyle(e, SVGCSSEngine.CLIP_RULE_INDEX); return (v.getStringValue().charAt(0) == 'n') ? GeneralPath.WIND_NON_ZERO : GeneralPath.WIND_EVEN_ODD; }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSPrimitiveValue#getStringValue()}. */ public String getStringValue() throws DOMException { return valueProvider.getValue().getStringValue(); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSPrimitiveValue#getStringValue()}. */ public String getStringValue() throws DOMException { return valueProvider.getValue().getStringValue(); }
/** * Returns true if the specified element is visible, false * otherwise. Checks the 'visibility' property. * * @param e the element */ public static boolean convertVisibility(Element e) { Value v = getComputedStyle(e, SVGCSSEngine.VISIBILITY_INDEX); return v.getStringValue().charAt(0) == 'v'; }
/** * Returns the color space for the specified filter element. Checks the * 'color-interpolation-filters' property. * * @param e the element * @return true if the color space is linear, false otherwise (sRGB). */ public static boolean convertColorInterpolationFilters(Element e) { Value v = getComputedStyle(e, SVGCSSEngine.COLOR_INTERPOLATION_FILTERS_INDEX); return CSS_LINEARRGB_VALUE == v.getStringValue(); }
/** * Returns the 'clip-rule' for the specified element. * * @param e the element interested in its a 'clip-rule' * @return GeneralPath.WIND_NON_ZERO | GeneralPath.WIND_EVEN_ODD */ public static int convertClipRule(Element e) { Value v = getComputedStyle(e, SVGCSSEngine.CLIP_RULE_INDEX); return (v.getStringValue().charAt(0) == 'n') ? GeneralPath.WIND_NON_ZERO : GeneralPath.WIND_EVEN_ODD; }
/** * Returns the 'fill-rule' for the specified element. * * @param e the element interested in its a 'fill-rule' * @return GeneralPath.WIND_NON_ZERO | GeneralPath.WIND_EVEN_ODD */ public static int convertFillRule(Element e) { Value v = getComputedStyle(e, SVGCSSEngine.FILL_RULE_INDEX); return (v.getStringValue().charAt(0) == 'n') ? GeneralPath.WIND_NON_ZERO : GeneralPath.WIND_EVEN_ODD; }
/** * Returns whether color interpolations should be done in linear RGB * color space rather than sRGB. */ public boolean useLinearRGBColorInterpolation() { CSSEngine eng = ((SVGOMDocument) getOwnerDocument()).getCSSEngine(); Value v = eng.getComputedStyle(this, null, SVGCSSEngine.COLOR_INTERPOLATION_INDEX); return v.getStringValue().charAt(0) == 'l'; }
/** * Returns whether color interpolations should be done in linear RGB * color space rather than sRGB. */ public boolean useLinearRGBColorInterpolation() { CSSEngine eng = ((SVGOMDocument) getOwnerDocument()).getCSSEngine(); Value v = eng.getComputedStyle(this, null, SVGCSSEngine.COLOR_INTERPOLATION_INDEX); return v.getStringValue().charAt(0) == 'l'; }
protected AnimatableValue createAnimatableValue(AnimationTarget target, String pn, Value v) { if (v instanceof StringValue) { return new AnimatableNumberOrIdentValue(target, v.getStringValue()); } FloatValue fv = (FloatValue) v; return new AnimatableNumberOrIdentValue(target, fv.getFloatValue(), numericIdents); } }
public static String getStringProp(StyleMap sm, CSSEngine eng, int pidx) { Value v = sm.getValue(pidx); ValueManager [] vms = eng.getValueManagers(); if (v == null) { ValueManager vm = vms[pidx]; v = vm.getDefaultValue(); } while (v.getCssValueType() == CSSValue.CSS_VALUE_LIST) { v = v.item(0); } return v.getStringValue(); }
protected AnimatableValue createAnimatableValue(AnimationTarget target, String pn, Value v) { if (v instanceof StringValue) { return new AnimatableLengthOrIdentValue(target, v.getStringValue()); } short pcInterp = target.getPercentageInterpretation(null, pn, true); FloatValue fv = (FloatValue) v; return new AnimatableLengthOrIdentValue (target, fv.getPrimitiveType(), fv.getFloatValue(), pcInterp); } }
public static String getStringProp(StyleMap sm, CSSEngine eng, int pidx) { Value v = sm.getValue(pidx); ValueManager [] vms = eng.getValueManagers(); if (v == null) { ValueManager vm = vms[pidx]; v = vm.getDefaultValue(); } while (v.getCssValueType() == CSSValue.CSS_VALUE_LIST) { v = v.item(0); } return v.getStringValue(); }