Tabnine Logo
CSSUtilities.getCSSEngine
Code IndexAdd Tabnine to your IDE (free)

How to use
getCSSEngine
method
in
org.apache.batik.bridge.CSSUtilities

Best Java code snippets using org.apache.batik.bridge.CSSUtilities.getCSSEngine (Showing top 15 results out of 315)

origin: apache/batik

/**
 * 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);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * 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);
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * 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);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * 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);
}
origin: org.apache.xmlgraphics/batik-bridge

/**
 * 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);
}
origin: apache/batik

/**
 * 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);
}
origin: org.apache.xmlgraphics/batik-bridge

                 BridgeContext ctx) {
Map refs = new HashMap();
CSSEngine eng = CSSUtilities.getCSSEngine(paintElement);
int pidx = eng.getPropertyIndex
  (SVG12CSSConstants.CSS_SOLID_OPACITY_PROPERTY);
origin: fr.avianey.apache-xmlgraphics/batik

                 BridgeContext ctx) {
Map refs = new HashMap();
CSSEngine eng = CSSUtilities.getCSSEngine(paintElement);
int pidx = eng.getPropertyIndex
  (SVG12CSSConstants.CSS_SOLID_OPACITY_PROPERTY);
origin: apache/batik

                 BridgeContext ctx) {
Map refs = new HashMap();
CSSEngine eng = CSSUtilities.getCSSEngine(paintElement);
int pidx = eng.getPropertyIndex
  (SVG12CSSConstants.CSS_SOLID_OPACITY_PROPERTY);
origin: org.apache.xmlgraphics/batik-bridge

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);
}
origin: fr.avianey.apache-xmlgraphics/batik

                BridgeContext ctx) {
Map refs = new HashMap();
CSSEngine eng = CSSUtilities.getCSSEngine(paintElement);
int pidx = eng.getPropertyIndex
  (SVG12CSSConstants.CSS_SOLID_COLOR_PROPERTY);
origin: fr.avianey.apache-xmlgraphics/batik

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);
}
origin: apache/batik

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);
}
origin: org.apache.xmlgraphics/batik-bridge

                BridgeContext ctx) {
Map refs = new HashMap();
CSSEngine eng = CSSUtilities.getCSSEngine(paintElement);
int pidx = eng.getPropertyIndex
  (SVG12CSSConstants.CSS_SOLID_COLOR_PROPERTY);
origin: apache/batik

                BridgeContext ctx) {
Map refs = new HashMap();
CSSEngine eng = CSSUtilities.getCSSEngine(paintElement);
int pidx = eng.getPropertyIndex
  (SVG12CSSConstants.CSS_SOLID_COLOR_PROPERTY);
org.apache.batik.bridgeCSSUtilitiesgetCSSEngine

Javadoc

Returns CSSEngine associated to the specified element.

Popular methods of CSSUtilities

  • convertDisplay
    Returns true if the specified element has to be displayed, false otherwise. Checks the 'display' pro
  • computeStyleAndURIs
    Partially computes the style in the 'def' tree and set it in the 'use' tree. Note: This method must
  • convertClip
    Returns an array of floating offsets representing the 'clip' property or null if 'auto'. The offsets
  • convertClipPath
    Returns a Clip referenced by the specified element and which applies on the specified graphics node.
  • convertClipRule
    Returns the 'clip-rule' for the specified element.
  • convertColorInterpolation
    Returns the color space for the specified element. Checks the 'color-interpolation' property
  • convertColorInterpolationFilters
    Returns the color space for the specified filter element. Checks the 'color-interpolation-filters' p
  • convertColorRendering
    Fills the rendering hints for the specified element or do nothing if none has been specified. If the
  • convertCursor
    Returns the Cursor corresponding to the input element's cursor property
  • convertEnableBackground
    Returns the subregion of user space where access to the background image is allowed to happen.
  • convertFillRule
    Returns the 'fill-rule' for the specified element.
  • convertFilter
    Returns a Filter referenced by the specified element and which applies on the specified graphics nod
  • convertFillRule,
  • convertFilter,
  • convertFloodColor,
  • convertImageRendering,
  • convertLightingColor,
  • convertMask,
  • convertOpacity,
  • convertOverflow,
  • convertPointerEvents,
  • convertShapeRendering

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • BoxLayout (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now