/** * Returns the computed style of the given property. */ public static Value getComputedStyle(Element e, int property) { CSSEngine engine = getCSSEngine(e); if (engine == null) return null; return engine.getComputedStyle((CSSStylableElement)e, null, property); }
/** * Returns the computed style of the given property. */ public static Value getComputedStyle(Element e, int property) { CSSEngine engine = getCSSEngine(e); if (engine == null) return null; return engine.getComputedStyle((CSSStylableElement)e, null, property); }
/** * Returns the computed style of the given property. */ public static Value getComputedStyle(Element e, int property) { CSSEngine engine = getCSSEngine(e); if (engine == null) return null; return engine.getComputedStyle((CSSStylableElement)e, null, property); }
/** * Partially computes the style in the 'def' tree and set it in the 'use' * tree. * <p>Note: This method must be called only when 'use' has been * added to the DOM tree. * * @param refElement the referenced element * @param localRefElement the referenced element in the current document */ public static void computeStyleAndURIs(Element refElement, Element localRefElement, String uri) { // Pull fragement id off first... int idx = uri.indexOf('#'); if (idx != -1) uri = uri.substring(0,idx); // Only set xml:base if we have a real URL. if (uri.length() != 0) localRefElement.setAttributeNS(XML_NAMESPACE_URI, "base", uri); CSSEngine engine = CSSUtilities.getCSSEngine(localRefElement); CSSEngine refEngine = CSSUtilities.getCSSEngine(refElement); engine.importCascadedStyleMaps(refElement, refEngine, localRefElement); }
/** * Partially computes the style in the 'def' tree and set it in the 'use' * tree. * <p>Note: This method must be called only when 'use' has been * added to the DOM tree. * * @param refElement the referenced element * @param localRefElement the referenced element in the current document */ public static void computeStyleAndURIs(Element refElement, Element localRefElement, String uri) { // Pull fragement id off first... int idx = uri.indexOf('#'); if (idx != -1) uri = uri.substring(0,idx); // Only set xml:base if we have a real URL. if (uri.length() != 0) localRefElement.setAttributeNS(XML_NAMESPACE_URI, "base", uri); CSSEngine engine = CSSUtilities.getCSSEngine(localRefElement); CSSEngine refEngine = CSSUtilities.getCSSEngine(refElement); engine.importCascadedStyleMaps(refElement, refEngine, localRefElement); }
/** * Partially computes the style in the 'def' tree and set it in the 'use' * tree. * <p>Note: This method must be called only when 'use' has been * added to the DOM tree. * * @param refElement the referenced element * @param localRefElement the referenced element in the current document */ public static void computeStyleAndURIs(Element refElement, Element localRefElement, String uri) { // Pull fragement id off first... int idx = uri.indexOf('#'); if (idx != -1) uri = uri.substring(0,idx); // Only set xml:base if we have a real URL. if (uri.length() != 0) localRefElement.setAttributeNS(XML_NAMESPACE_URI, "base", uri); CSSEngine engine = CSSUtilities.getCSSEngine(localRefElement); CSSEngine refEngine = CSSUtilities.getCSSEngine(refElement); engine.importCascadedStyleMaps(refElement, refEngine, localRefElement); }
BridgeContext ctx) { Map refs = new HashMap(); CSSEngine eng = CSSUtilities.getCSSEngine(paintElement); int pidx = eng.getPropertyIndex (SVG12CSSConstants.CSS_SOLID_OPACITY_PROPERTY);
BridgeContext ctx) { Map refs = new HashMap(); CSSEngine eng = CSSUtilities.getCSSEngine(paintElement); int pidx = eng.getPropertyIndex (SVG12CSSConstants.CSS_SOLID_OPACITY_PROPERTY);
BridgeContext ctx) { Map refs = new HashMap(); CSSEngine eng = CSSUtilities.getCSSEngine(paintElement); int pidx = eng.getPropertyIndex (SVG12CSSConstants.CSS_SOLID_OPACITY_PROPERTY);
protected void initCSSPropertyIndexes(Element e) { CSSEngine eng = CSSUtilities.getCSSEngine(e); marginTopIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_TOP_PROPERTY); marginRightIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_RIGHT_PROPERTY); marginBottomIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_BOTTOM_PROPERTY); marginLeftIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_LEFT_PROPERTY); indentIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_INDENT_PROPERTY); textAlignIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_TEXT_ALIGN_PROPERTY); lineHeightIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_LINE_HEIGHT_PROPERTY); }
BridgeContext ctx) { Map refs = new HashMap(); CSSEngine eng = CSSUtilities.getCSSEngine(paintElement); int pidx = eng.getPropertyIndex (SVG12CSSConstants.CSS_SOLID_COLOR_PROPERTY);
protected void initCSSPropertyIndexes(Element e) { CSSEngine eng = CSSUtilities.getCSSEngine(e); marginTopIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_TOP_PROPERTY); marginRightIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_RIGHT_PROPERTY); marginBottomIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_BOTTOM_PROPERTY); marginLeftIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_LEFT_PROPERTY); indentIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_INDENT_PROPERTY); textAlignIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_TEXT_ALIGN_PROPERTY); lineHeightIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_LINE_HEIGHT_PROPERTY); }
protected void initCSSPropertyIndexes(Element e) { CSSEngine eng = CSSUtilities.getCSSEngine(e); marginTopIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_TOP_PROPERTY); marginRightIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_RIGHT_PROPERTY); marginBottomIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_BOTTOM_PROPERTY); marginLeftIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_MARGIN_LEFT_PROPERTY); indentIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_INDENT_PROPERTY); textAlignIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_TEXT_ALIGN_PROPERTY); lineHeightIndex = eng.getPropertyIndex(SVG12CSSConstants.CSS_LINE_HEIGHT_PROPERTY); }
BridgeContext ctx) { Map refs = new HashMap(); CSSEngine eng = CSSUtilities.getCSSEngine(paintElement); int pidx = eng.getPropertyIndex (SVG12CSSConstants.CSS_SOLID_COLOR_PROPERTY);
BridgeContext ctx) { Map refs = new HashMap(); CSSEngine eng = CSSUtilities.getCSSEngine(paintElement); int pidx = eng.getPropertyIndex (SVG12CSSConstants.CSS_SOLID_COLOR_PROPERTY);