/** * Converts the font-size CSS value to a float value. * @param e the element */ public static Float convertFontSize(Element e) { Value v = CSSUtilities.getComputedStyle (e, SVGCSSEngine.FONT_SIZE_INDEX); return v.getFloatValue(); }
/** * Returns the font-size on the associated element. */ public float getFontSize() { return CSSUtilities.getComputedStyle (e, SVGCSSEngine.FONT_SIZE_INDEX).getFloatValue(); } }
/** * 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 font-size on the associated element. */ public float getFontSize() { return CSSUtilities.getComputedStyle (e, SVGCSSEngine.FONT_SIZE_INDEX).getFloatValue(); } }
/** * Returns the font-size value. */ public float getFontSize() { return CSSUtilities.getComputedStyle (e, SVGCSSEngine.FONT_SIZE_INDEX).getFloatValue(); }
/** * 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 font-size value. */ public float getFontSize() { return CSSUtilities.getComputedStyle (e, SVGCSSEngine.FONT_SIZE_INDEX).getFloatValue(); }
/** * Returns the font-size on the associated element. */ public float getFontSize() { return CSSUtilities.getComputedStyle (e, SVGCSSEngine.FONT_SIZE_INDEX).getFloatValue(); } }
/** * Returns the font-size on the associated element. */ public float getFontSize() { return CSSUtilities.getComputedStyle (e, SVGCSSEngine.FONT_SIZE_INDEX).getFloatValue(); } }
/** * 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 '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 the font-size value. */ public float getFontSize() { return CSSUtilities.getComputedStyle (e, SVGCSSEngine.FONT_SIZE_INDEX).getFloatValue(); }
/** * 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 '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 the font-size on the associated element. */ public float getFontSize() { return CSSUtilities.getComputedStyle (e, SVGCSSEngine.FONT_SIZE_INDEX).getFloatValue(); } }
/** * Returns the font-size on the associated element. */ public float getFontSize() { return CSSUtilities.getComputedStyle (e, SVGCSSEngine.FONT_SIZE_INDEX).getFloatValue(); } }
/** * 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; }