Tabnine Logo
org.apache.batik.css.engine
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.batik.css.engine (Showing top 20 results out of 315)

origin: fr.avianey.apache-xmlgraphics/batik

/**
 * <b>SAC</b>: Implements {@link
 * org.w3c.css.sac.DocumentHandler#startSelector(SelectorList)}.
 */
public void startSelector(SelectorList selectors) throws CSSException {
  styleRule = new StyleRule();
  styleRule.setSelectorList(selectors);
  styleDeclaration = new StyleDeclaration();
  styleRule.setStyleDeclaration(styleDeclaration);
  styleSheet.append(styleRule);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * <b>SAC</b>: Implements {@link
 * org.w3c.css.sac.DocumentHandler#startMedia(SACMediaList)}.
 */
public void startMedia(SACMediaList media) throws CSSException {
  MediaRule mr = new MediaRule();
  mr.setMediaList(media);
  mr.setParent(styleSheet);
  styleSheet.append(mr);
  styleSheet = mr;
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Tells whether the given property is important.
 */
public boolean isImportant(String name) {
  int idx = cssEngine.getPropertyIndex(name);
  for (int i = 0; i < declaration.size(); i++) {
    if (idx == declaration.getIndex(i)) {
      return declaration.getPriority(i);
    }
  }
  return false;
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Returns the current value associated with this object.
 */
public Value getValue(String name) {
  int idx = cssEngine.getPropertyIndex(name);
  for (int i = 0; i < declaration.size(); i++) {
    if (idx == declaration.getIndex(i)) {
      return declaration.getValue(i);
    }
  }
  return null;
}
origin: org.apache.xmlgraphics/batik-css

  /**
   * Returns the value at the given.
   */
  public String item(int idx) {
    return cssEngine.getPropertyName(declaration.getIndex(idx));
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * <b>SAC</b>: Implements {@link
 * DocumentHandler#endDocument(InputSource)}.
 */
public void endDocument(InputSource source) {
  throwUnsupportedEx();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the current value associated with this object.
 */
public Value getValue(String name) {
  int idx = cssEngine.getPropertyIndex(name);
  for (int i = 0; i < declaration.size(); i++) {
    if (idx == declaration.getIndex(i)) {
      return declaration.getValue(i);
    }
  }
  return null;
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Tells whether the given property is important.
 */
public boolean isImportant(String name) {
  int idx = cssEngine.getPropertyIndex(name);
  for (int i = 0; i < declaration.size(); i++) {
    if (idx == declaration.getIndex(i)) {
      return declaration.getPriority(i);
    }
  }
  return false;
}
origin: org.apache.xmlgraphics/batik-css

/**
 * <b>SAC</b>: Implements {@link
 * org.w3c.css.sac.DocumentHandler#startSelector(SelectorList)}.
 */
public void startSelector(SelectorList selectors) throws CSSException {
  styleRule = new StyleRule();
  styleRule.setSelectorList(selectors);
  styleDeclaration = new StyleDeclaration();
  styleRule.setStyleDeclaration(styleDeclaration);
  styleSheet.append(styleRule);
}
origin: org.apache.xmlgraphics/batik-css

/**
 * <b>SAC</b>: Implements {@link
 * org.w3c.css.sac.DocumentHandler#startMedia(SACMediaList)}.
 */
public void startMedia(SACMediaList media) throws CSSException {
  MediaRule mr = new MediaRule();
  mr.setMediaList(media);
  mr.setParent(styleSheet);
  styleSheet.append(mr);
  styleSheet = mr;
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Returns the value at the given.
   */
  public String item(int idx) {
    return cssEngine.getPropertyName(declaration.getIndex(idx));
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * <b>SAC</b>: Implements {@link
 * DocumentHandler#startMedia(SACMediaList)}.
 */
public void startMedia(SACMediaList media) {
  throwUnsupportedEx();
}
origin: apache/batik

/**
 * Returns the current value associated with this object.
 */
public Value getValue(String name) {
  int idx = cssEngine.getPropertyIndex(name);
  for (int i = 0; i < declaration.size(); i++) {
    if (idx == declaration.getIndex(i)) {
      return declaration.getValue(i);
    }
  }
  return null;
}
origin: apache/batik

/**
 * Tells whether the given property is important.
 */
public boolean isImportant(String name) {
  int idx = cssEngine.getPropertyIndex(name);
  for (int i = 0; i < declaration.size(); i++) {
    if (idx == declaration.getIndex(i)) {
      return declaration.getPriority(i);
    }
  }
  return false;
}
origin: apache/batik

/**
 * <b>SAC</b>: Implements {@link
 * org.w3c.css.sac.DocumentHandler#startSelector(SelectorList)}.
 */
public void startSelector(SelectorList selectors) throws CSSException {
  styleRule = new StyleRule();
  styleRule.setSelectorList(selectors);
  styleDeclaration = new StyleDeclaration();
  styleRule.setStyleDeclaration(styleDeclaration);
  styleSheet.append(styleRule);
}
origin: apache/batik

/**
 * <b>SAC</b>: Implements {@link
 * org.w3c.css.sac.DocumentHandler#startMedia(SACMediaList)}.
 */
public void startMedia(SACMediaList media) throws CSSException {
  MediaRule mr = new MediaRule();
  mr.setMediaList(media);
  mr.setParent(styleSheet);
  styleSheet.append(mr);
  styleSheet = mr;
}
origin: apache/batik

  /**
   * Returns the value at the given.
   */
  public String item(int idx) {
    return cssEngine.getPropertyName(declaration.getIndex(idx));
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * <b>SAC</b>: Implements {@link
 * DocumentHandler#startPage(String,String)}.
 */
public void startPage(String name, String pseudo_page) {
  throwUnsupportedEx();
}
origin: org.apache.xmlgraphics/batik-css

/**
 * <b>SAC</b>: Implements {@link
 * DocumentHandler#startSelector(SelectorList)}.
 */
public void startSelector(SelectorList selectors) {
  throwUnsupportedEx();
}
origin: org.apache.xmlgraphics/batik-css

/**
 * <b>SAC</b>: Implements {@link
 * DocumentHandler#property(String,LexicalUnit,boolean)}.
 */
public void property(String name, LexicalUnit value, boolean important) {
  throwUnsupportedEx();
}
org.apache.batik.css.engine

Most used classes

  • CSSEngine
    This is the base class for all the CSS engines.
  • CSSStylableElement
    This interface must be implemented by the DOM elements which needs CSS support.
  • StyleSheet
    This class represents a list of rules.
  • Value
    This interface represents a property value.
  • ValueManager
    This interface is implemented by objects which manage the values associated with a property.
  • StyleDeclaration,
  • StyleMap,
  • ComputedValue,
  • FloatValue,
  • ListValue,
  • CSSEngineEvent,
  • CSSNavigableNode,
  • FontFaceRule,
  • ImportRule,
  • Rule,
  • SVG12CSSEngine,
  • StringIntMap,
  • StyleRule,
  • SystemColorSupport
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