Tabnine Logo
ImportRule.setParent
Code IndexAdd Tabnine to your IDE (free)

How to use
setParent
method
in
org.apache.batik.css.engine.ImportRule

Best Java code snippets using org.apache.batik.css.engine.ImportRule.setParent (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.engineImportRulesetParent

Popular methods of ImportRule

  • getURI
    Returns the URI of the imported stylesheet.
  • <init>
  • setMediaList
  • setURI
    Sets the URI of the imported stylesheet.
  • getMediaList
  • getRelativeUri

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • BoxLayout (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text plugins
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