/** * Returns CSSEngine associated to the specified element. * @param e the element */ public static CSSEngine getCSSEngine(Element e) { return ((SVGOMDocument)e.getOwnerDocument()).getCSSEngine(); }
/** * Returns the CSS engine associated with given element. */ public CSSEngine getCSSEngineForElement(Element e) { SVGOMDocument doc = (SVGOMDocument)e.getOwnerDocument(); return doc.getCSSEngine(); }
/** * Returns CSSEngine associated to the specified element. * @param e the element */ public static CSSEngine getCSSEngine(Element e) { return ((SVGOMDocument)e.getOwnerDocument()).getCSSEngine(); }
/** * Returns the CSS engine associated with given element. */ public CSSEngine getCSSEngineForElement(Element e) { SVGOMDocument doc = (SVGOMDocument)e.getOwnerDocument(); return doc.getCSSEngine(); }
/** * Returns CSSEngine associated to the specified element. * @param e the element */ public static CSSEngine getCSSEngine(Element e) { return ((SVGOMDocument)e.getOwnerDocument()).getCSSEngine(); }
/** * Returns the CSS engine associated with given element. */ public CSSEngine getCSSEngineForElement(Element e) { SVGOMDocument doc = (SVGOMDocument)e.getOwnerDocument(); return doc.getCSSEngine(); }
/** * Returns the override style declaration for this element. */ public CSSStyleDeclaration getOverrideStyle() { if (overrideStyleDeclaration == null) { CSSEngine eng = ((SVGOMDocument) getOwnerDocument()).getCSSEngine(); overrideStyleDeclaration = new OverrideStyleDeclaration(eng); } return overrideStyleDeclaration; }
/** * Returns the override style declaration for this element. */ public CSSStyleDeclaration getOverrideStyle() { if (overrideStyleDeclaration == null) { CSSEngine eng = ((SVGOMDocument) getOwnerDocument()).getCSSEngine(); overrideStyleDeclaration = new OverrideStyleDeclaration(eng); } return overrideStyleDeclaration; }
/** * Returns the override style declaration for this element. */ public CSSStyleDeclaration getOverrideStyle() { if (overrideStyleDeclaration == null) { CSSEngine eng = ((SVGOMDocument) getOwnerDocument()).getCSSEngine(); overrideStyleDeclaration = new OverrideStyleDeclaration(eng); } return overrideStyleDeclaration; }
/** * 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'; }
/** * 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'; }
/** * Creates a new SVGAnimationEngine. */ public SVGAnimationEngine(Document doc, BridgeContext ctx) { super(doc); this.ctx = ctx; SVGOMDocument d = (SVGOMDocument) doc; cssEngine = d.getCSSEngine(); dummyStyleMap = new StyleMap(cssEngine.getNumberOfProperties()); isSVG12 = d.isSVG12(); }
/** * Creates a new SVGAnimationEngine. */ public SVGAnimationEngine(Document doc, BridgeContext ctx) { super(doc); this.ctx = ctx; SVGOMDocument d = (SVGOMDocument) doc; cssEngine = d.getCSSEngine(); dummyStyleMap = new StyleMap(cssEngine.getNumberOfProperties()); isSVG12 = d.isSVG12(); }
/** * Returns the value corresponding to the default font. */ public Value getDefaultFontFamily() { // No cache needed since the default font family is asked only // one time on the root element (only if it does not have its // own font-family). SVGOMDocument doc = (SVGOMDocument)document; SVGStylableElement root = (SVGStylableElement)doc.getRootElement(); String str = userAgent.getDefaultFontFamily(); return doc.getCSSEngine().parsePropertyValue (root,SVGConstants.CSS_FONT_FAMILY_PROPERTY, str); }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGStylable#getStyle()}. */ public CSSStyleDeclaration getStyle() { if (style == null) { CSSEngine eng = ((SVGOMDocument)getOwnerDocument()).getCSSEngine(); style = new StyleDeclaration(eng); putLiveAttributeValue(null, SVG_STYLE_ATTRIBUTE, style); } return style; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGStylable#getStyle()}. */ public CSSStyleDeclaration getStyle() { if (style == null) { CSSEngine eng = ((SVGOMDocument)getOwnerDocument()).getCSSEngine(); style = new StyleDeclaration(eng); putLiveAttributeValue(null, SVG_STYLE_ATTRIBUTE, style); } return style; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGStylable#getStyle()}. */ public CSSStyleDeclaration getStyle() { if (style == null) { CSSEngine eng = ((SVGOMDocument)getOwnerDocument()).getCSSEngine(); style = new StyleDeclaration(eng); putLiveAttributeValue(null, SVG_STYLE_ATTRIBUTE, style); } return style; }
/** * Creates a new SVGAnimationEngine. */ public SVGAnimationEngine(Document doc, BridgeContext ctx) { super(doc); this.ctx = ctx; SVGOMDocument d = (SVGOMDocument) doc; cssEngine = d.getCSSEngine(); dummyStyleMap = new StyleMap(cssEngine.getNumberOfProperties()); isSVG12 = d.isSVG12(); }
/** * Returns the value corresponding to the default font. */ public Value getDefaultFontFamily() { // No cache needed since the default font family is asked only // one time on the root element (only if it does not have its // own font-family). SVGOMDocument doc = (SVGOMDocument)document; SVGStylableElement root = (SVGStylableElement)doc.getRootElement(); String str = userAgent.getDefaultFontFamily(); return doc.getCSSEngine().parsePropertyValue (root,SVGConstants.CSS_FONT_FAMILY_PROPERTY, str); }