Codota Logo
ColorManager
Code IndexAdd Codota to your IDE (free)

How to use
ColorManager
in
org.apache.batik.css.engine.value.svg

Best Java code snippets using org.apache.batik.css.engine.value.svg.ColorManager (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.netbeans.modules/org-netbeans-modules-visualweb-designer-cssengine

  public Value computeValue(CSSStylableElement elt,
               String pseudo,
               CSSEngine engine,
               int idx,
               StyleMap sm,
               Value value) {
    if (value == CssValueConstants.TRANSPARENT_VALUE) {
      return CssValueConstants.TRANSPARENT_RGB_VALUE;
    }
    return super.computeValue(elt, pseudo, engine, idx, sm, value);
  }
}
origin: org.apache.xmlgraphics/batik-css

Value v = super.createValue(lu, engine);
lu = lu.getNextLexicalUnit();
if (lu == null) {
origin: fr.avianey.apache-xmlgraphics/batik

Value v = super.createValue(lu, engine);
lu = lu.getNextLexicalUnit();
if (lu == null) {
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * 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 == SVGValueConstants.CURRENTCOLOR_VALUE) {
    sm.putColorRelative(idx, true);
    int ci = engine.getColorIndex();
    return engine.getComputedStyle(elt, pseudo, ci);
  }
  if (value.getCssValueType() == CSSValue.CSS_VALUE_LIST) {
    ListValue lv = (ListValue)value;
    Value v = lv.item(0);
    Value t = super.computeValue(elt, pseudo, engine, idx, sm, v);
    if (t != v) {
      ListValue result = new ListValue(' ');
      result.append(t);
      result.append(lv.item(1));
      return result;
    }
    return value;
  }
  return super.computeValue(elt, pseudo, engine, idx, sm, value);
}
origin: apache/batik

Value v = super.createValue(lu, engine);
lu = lu.getNextLexicalUnit();
if (lu == null) {
origin: apache/batik

/**
 * 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 == SVGValueConstants.CURRENTCOLOR_VALUE) {
    sm.putColorRelative(idx, true);
    int ci = engine.getColorIndex();
    return engine.getComputedStyle(elt, pseudo, ci);
  }
  if (value.getCssValueType() == CSSValue.CSS_VALUE_LIST) {
    ListValue lv = (ListValue)value;
    Value v = lv.item(0);
    Value t = super.computeValue(elt, pseudo, engine, idx, sm, v);
    if (t != v) {
      ListValue result = new ListValue(' ');
      result.append(t);
      result.append(lv.item(1));
      return result;
    }
    return value;
  }
  return super.computeValue(elt, pseudo, engine, idx, sm, value);
}
origin: org.apache.xmlgraphics/batik-css

/**
 * 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 == SVGValueConstants.CURRENTCOLOR_VALUE) {
    sm.putColorRelative(idx, true);
    int ci = engine.getColorIndex();
    return engine.getComputedStyle(elt, pseudo, ci);
  }
  if (value.getCssValueType() == CSSValue.CSS_VALUE_LIST) {
    ListValue lv = (ListValue)value;
    Value v = lv.item(0);
    Value t = super.computeValue(elt, pseudo, engine, idx, sm, v);
    if (t != v) {
      ListValue result = new ListValue(' ');
      result.append(t);
      result.append(lv.item(1));
      return result;
    }
    return value;
  }
  return super.computeValue(elt, pseudo, engine, idx, sm, value);
}
org.apache.batik.css.engine.value.svgColorManager

Javadoc

This class provides a manager for the 'color' property values.

Most used methods

  • computeValue
  • createValue

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now