/** * Implements {@link * ValueManager#computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value)}. */ public Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value) { if (value == DEFAULT_VALUE) { CSSContext ctx = engine.getCSSContext(); value = ctx.getDefaultFontFamily(); } return value; } }
/** * Implements {@link * ValueManager#computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value)}. */ public Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value) { if (value == DEFAULT_VALUE) { CSSContext ctx = engine.getCSSContext(); value = ctx.getDefaultFontFamily(); } return value; } }
/** * Implements {@link * ValueManager#computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value)}. */ public Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value) { if (value == DEFAULT_VALUE) { CSSContext ctx = engine.getCSSContext(); value = ctx.getDefaultFontFamily(); } return value; } }
/** * Implements {@link * ValueManager#computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value)}. */ public Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value) { if (value.getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT) { String ident = value.getStringValue(); // Search for a direct computed value. Value v = (Value)computedValues.get(ident); if (v != null) { return v; } // Must be a system color... if (values.get(ident) == null) { throw new IllegalStateException("Not a system-color:" + ident ); } return engine.getCSSContext().getSystemColor(ident); } return super.computeValue(elt, pseudo, engine, idx, sm, value); }
/** * Implements {@link * ValueManager#computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value)}. */ public Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value) { if (value.getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT) { String ident = value.getStringValue(); // Search for a direct computed value. Value v = (Value)computedValues.get(ident); if (v != null) { return v; } // Must be a system color... if (values.get(ident) == null) { throw new IllegalStateException("Not a system-color:" + ident ); } return engine.getCSSContext().getSystemColor(ident); } return super.computeValue(elt, pseudo, engine, idx, sm, value); }
/** * Implements {@link * ValueManager#computeValue(CSSStylableElement,String,CSSEngine,int,StyleMap,Value)}. */ public Value computeValue(CSSStylableElement elt, String pseudo, CSSEngine engine, int idx, StyleMap sm, Value value) { if (value.getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT) { String ident = value.getStringValue(); // Search for a direct computed value. Value v = (Value)computedValues.get(ident); if (v != null) { return v; } // Must be a system color... if (values.get(ident) == null) { throw new IllegalStateException("Not a system-color:" + ident ); } return engine.getCSSContext().getSystemColor(ident); } return super.computeValue(elt, pseudo, engine, idx, sm, value); }
CSSContext ctx = engine.getCSSContext(); float v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, float fs; if (p == null) { CSSContext ctx = engine.getCSSContext(); fs = ctx.getMediumFontSize(); } else { CSSContext ctx = engine.getCSSContext(); float fs = ctx.getMediumFontSize(); String s = value.getStringValue();
CSSContext ctx = engine.getCSSContext(); float v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, float fs; if (p == null) { CSSContext ctx = engine.getCSSContext(); fs = ctx.getMediumFontSize(); } else { CSSContext ctx = engine.getCSSContext(); float fs = ctx.getMediumFontSize(); String s = value.getStringValue();
/** * This function creates a new 'sub' BridgeContext to associated * with 'newDoc' if one currently doesn't exist, otherwise it * returns the BridgeContext currently associated with the * document. * @param newDoc The document to get/create a BridgeContext for. */ public BridgeContext createSubBridgeContext(SVGOMDocument newDoc) { BridgeContext subCtx; CSSEngine eng = newDoc.getCSSEngine(); if (eng != null) { subCtx = (BridgeContext) newDoc.getCSSEngine().getCSSContext(); return subCtx; } subCtx = createBridgeContext(newDoc); subCtx.primaryContext = primaryContext != null ? primaryContext : this; subCtx.primaryContext.childContexts.add(new WeakReference(subCtx)); subCtx.dynamicStatus = dynamicStatus; subCtx.setGVTBuilder(getGVTBuilder()); subCtx.setTextPainter(getTextPainter()); subCtx.setDocument(newDoc); subCtx.initializeDocument(newDoc); if (isInteractive()) subCtx.addUIEventListeners(newDoc); return subCtx; }
/** * This function creates a new 'sub' BridgeContext to associated * with 'newDoc' if one currently doesn't exist, otherwise it * returns the BridgeContext currently associated with the * document. * @param newDoc The document to get/create a BridgeContext for. */ public BridgeContext createSubBridgeContext(SVGOMDocument newDoc) { BridgeContext subCtx; CSSEngine eng = newDoc.getCSSEngine(); if (eng != null) { subCtx = (BridgeContext) newDoc.getCSSEngine().getCSSContext(); return subCtx; } subCtx = createBridgeContext(newDoc); subCtx.primaryContext = primaryContext != null ? primaryContext : this; subCtx.primaryContext.childContexts.add(new WeakReference(subCtx)); subCtx.dynamicStatus = dynamicStatus; subCtx.setGVTBuilder(getGVTBuilder()); subCtx.setTextPainter(getTextPainter()); subCtx.setDocument(newDoc); subCtx.initializeDocument(newDoc); if (isInteractive()) subCtx.addUIEventListeners(newDoc); return subCtx; }
/** * This function creates a new 'sub' BridgeContext to associated * with 'newDoc' if one currently doesn't exist, otherwise it * returns the BridgeContext currently associated with the * document. * @param newDoc The document to get/create a BridgeContext for. */ public BridgeContext createSubBridgeContext(SVGOMDocument newDoc) { BridgeContext subCtx; CSSEngine eng = newDoc.getCSSEngine(); if (eng != null) { subCtx = (BridgeContext) newDoc.getCSSEngine().getCSSContext(); return subCtx; } subCtx = createBridgeContext(newDoc); subCtx.primaryContext = primaryContext != null ? primaryContext : this; subCtx.primaryContext.childContexts.add(new WeakReference(subCtx)); subCtx.dynamicStatus = dynamicStatus; subCtx.setGVTBuilder(getGVTBuilder()); subCtx.setTextPainter(getTextPainter()); subCtx.setDocument(newDoc); subCtx.initializeDocument(newDoc); if (isInteractive()) subCtx.addUIEventListeners(newDoc); return subCtx; }
sm.putParentRelative(idx, true); CSSContext ctx = engine.getCSSContext(); CSSStylableElement p = CSSEngine.getParentCSSStylableElement(elt); float fw; sm.putParentRelative(idx, true); CSSContext ctx = engine.getCSSContext(); CSSStylableElement p = CSSEngine.getParentCSSStylableElement(elt); float fw;
sm.putParentRelative(idx, true); CSSContext ctx = engine.getCSSContext(); CSSStylableElement p = CSSEngine.getParentCSSStylableElement(elt); float fw; sm.putParentRelative(idx, true); CSSContext ctx = engine.getCSSContext(); CSSStylableElement p = CSSEngine.getParentCSSStylableElement(elt); float fw;
sm.putParentRelative(idx, true); CSSContext ctx = engine.getCSSContext(); CSSStylableElement p = CSSEngine.getParentCSSStylableElement(elt); float fw; sm.putParentRelative(idx, true); CSSContext ctx = engine.getCSSContext(); CSSStylableElement p = CSSEngine.getParentCSSStylableElement(elt); float fw;
CSSContext ctx = engine.getCSSContext(); float v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); switch (getOrientation()) { case HORIZONTAL_ORIENTATION:
CSSContext ctx = engine.getCSSContext(); float v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); switch (getOrientation()) { case HORIZONTAL_ORIENTATION:
CSSContext ctx = engine.getCSSContext(); float v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, ctx = engine.getCSSContext(); switch (getOrientation()) { case HORIZONTAL_ORIENTATION:
public BridgeContext createSubBridgeContext(SVGOMDocument newDoc) { CSSEngine eng = newDoc.getCSSEngine(); if (eng != null) { return (BridgeContext)newDoc.getCSSEngine().getCSSContext(); } BridgeContext subCtx = super.createSubBridgeContext(newDoc); if (isDynamic() && subCtx.isDynamic()) { setUpdateManager(subCtx, updateManager); if (updateManager != null) { ScriptingEnvironment se; if (newDoc.isSVG12()) { se = new SVG12ScriptingEnvironment(subCtx); } else { se = new ScriptingEnvironment(subCtx); } se.loadScripts(); se.dispatchSVGLoadEvent(); if (newDoc.isSVG12()) { DefaultXBLManager xm = new DefaultXBLManager(newDoc, subCtx); setXBLManager(subCtx, xm); newDoc.setXBLManager(xm); xm.startProcessing(); } } } return subCtx; }
public BridgeContext createSubBridgeContext(SVGOMDocument newDoc) { CSSEngine eng = newDoc.getCSSEngine(); if (eng != null) { return (BridgeContext)newDoc.getCSSEngine().getCSSContext(); } BridgeContext subCtx = super.createSubBridgeContext(newDoc); if (isDynamic() && subCtx.isDynamic()) { setUpdateManager(subCtx, updateManager); if (updateManager != null) { ScriptingEnvironment se; if (newDoc.isSVG12()) { se = new SVG12ScriptingEnvironment(subCtx); } else { se = new ScriptingEnvironment(subCtx); } se.loadScripts(); se.dispatchSVGLoadEvent(); if (newDoc.isSVG12()) { DefaultXBLManager xm = new DefaultXBLManager(newDoc, subCtx); setXBLManager(subCtx, xm); newDoc.setXBLManager(xm); xm.startProcessing(); } } } return subCtx; }
public BridgeContext createSubBridgeContext(SVGOMDocument newDoc) { CSSEngine eng = newDoc.getCSSEngine(); if (eng != null) { return (BridgeContext)newDoc.getCSSEngine().getCSSContext(); } BridgeContext subCtx = super.createSubBridgeContext(newDoc); if (isDynamic() && subCtx.isDynamic()) { setUpdateManager(subCtx, updateManager); if (updateManager != null) { ScriptingEnvironment se; if (newDoc.isSVG12()) { se = new SVG12ScriptingEnvironment(subCtx); } else { se = new ScriptingEnvironment(subCtx); } se.loadScripts(); se.dispatchSVGLoadEvent(); if (newDoc.isSVG12()) { DefaultXBLManager xm = new DefaultXBLManager(newDoc, subCtx); setXBLManager(subCtx, xm); newDoc.setXBLManager(xm); xm.startProcessing(); } } } return subCtx; }