Tabnine Logo
ImportRule.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.batik.css.engine.ImportRule
constructor

Best Java code snippets using org.apache.batik.css.engine.ImportRule.<init> (Showing top 3 results out of 315)

origin: org.apache.xmlgraphics/batik-css

/**
 * <b>SAC</b>: Implements {@link
 * DocumentHandler#importStyle(String,SACMediaList,String)}.
 */
public void importStyle(String       uri,
            SACMediaList media,
            String       defaultNamespaceURI)
  throws CSSException {
  ImportRule ir = new ImportRule();
  ir.setMediaList(media);
  ir.setParent(styleSheet);
  ParsedURL base = getCSSBaseURI();
  ParsedURL url;
  if (base == null) {
    url = new ParsedURL(uri);
  } else {
    url = new ParsedURL(base, uri);
  }
  ir.setURI(url);
  styleSheet.append(ir);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * <b>SAC</b>: Implements {@link
 * DocumentHandler#importStyle(String,SACMediaList,String)}.
 */
public void importStyle(String       uri,
            SACMediaList media,
            String       defaultNamespaceURI)
  throws CSSException {
  ImportRule ir = new ImportRule();
  ir.setMediaList(media);
  ir.setParent(styleSheet);
  ParsedURL base = getCSSBaseURI();
  ParsedURL url;
  if (base == null) {
    url = new ParsedURL(uri);
  } else {
    url = new ParsedURL(base, uri);
  }
  ir.setURI(url);
  styleSheet.append(ir);
}
origin: apache/batik

/**
 * <b>SAC</b>: Implements {@link
 * DocumentHandler#importStyle(String,SACMediaList,String)}.
 */
public void importStyle(String       uri,
            SACMediaList media,
            String       defaultNamespaceURI)
  throws CSSException {
  ImportRule ir = new ImportRule();
  ir.setMediaList(media);
  ir.setParent(styleSheet);
  ParsedURL base = getCSSBaseURI();
  ParsedURL url;
  if (base == null) {
    url = new ParsedURL(uri);
  } else {
    url = new ParsedURL(base, uri);
  }
  ir.setURI(url);
  styleSheet.append(ir);
}
org.apache.batik.css.engineImportRule<init>

Popular methods of ImportRule

  • getURI
    Returns the URI of the imported stylesheet.
  • setMediaList
  • setParent
  • setURI
    Sets the URI of the imported stylesheet.
  • getMediaList
  • getRelativeUri

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JFileChooser (javax.swing)
  • JLabel (javax.swing)
  • CodeWhisperer alternatives
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