Tabnine Logo
ICCColor.getColorProfile
Code IndexAdd Tabnine to your IDE (free)

How to use
getColorProfile
method
in
org.apache.batik.css.engine.value.svg.ICCColor

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

origin: org.apache.xmlgraphics/batik-css

/**
 * Called when the ICC colors has been initialized.
 */
public void colorsInitialized(float f) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    sb.append(',');
    sb.append(f);
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Called when the ICC colors has been initialized.
 */
public void colorsInitialized(float f) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    sb.append(',');
    sb.append(f);
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: apache/batik

/**
 * Called when the ICC colors has been initialized.
 */
public void colorsInitialized(float f) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    sb.append(',');
    sb.append(f);
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Called when the ICC colors has changed.
 */
public void colorsCleared() throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Called when the ICC colors has changed.
 */
public void colorsCleared() throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: apache/batik

/**
 * Called when the ICC colors has changed.
 */
public void colorsCleared() throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: apache/batik

  /**
   * Called when the ICC color has been append.
   */
  public void colorAppend(float f) throws DOMException {
    Value value = getValue();
    switch (getColorType()) {
    case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
      StringBuffer sb =
        new StringBuffer( value.item(0).getCssText());
      sb.append(" icc-color(");
      ICCColor iccc = (ICCColor)value.item(1);
      sb.append(iccc.getColorProfile());
      for (int i = 0; i < iccc.getLength(); i++) {
        sb.append(',');
        sb.append(iccc.getColor(i));
      }
      sb.append(',');
      sb.append(f);
      sb.append(')');
      textChanged(sb.toString());
      break;
    default:
      throw new DOMException
        (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
    }
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGICCColor#getColorProfile()}.
 */
public String getColorProfile() {
  if (getColorType() != SVG_COLORTYPE_RGBCOLOR_ICCCOLOR) {
    throw new DOMException(DOMException.SYNTAX_ERR, "");
  }
  Value value = valueProvider.getValue();
  return ((ICCColor)value.item(1)).getColorProfile();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Called when the ICC color has been inserted.
 */
public void colorInsertedBefore(float f, int idx) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    for (int i = 0; i < idx; i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    sb.append(',');
    sb.append(f);
    for (int i = idx; i < iccc.getLength(); i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Called when the ICC color has been replaced.
 */
public void colorReplaced(float f, int idx) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    for (int i = 0; i < idx; i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    sb.append(',');
    sb.append(f);
    for (int i = idx + 1; i < iccc.getLength(); i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGICCColor#getColorProfile()}.
 */
public String getColorProfile() {
  if (getColorType() != SVG_COLORTYPE_RGBCOLOR_ICCCOLOR) {
    throw new DOMException(DOMException.SYNTAX_ERR, "");
  }
  Value value = valueProvider.getValue();
  return ((ICCColor)value.item(1)).getColorProfile();
}
origin: org.apache.xmlgraphics/batik-css

  /**
   * Called when the ICC color has been append.
   */
  public void colorAppend(float f) throws DOMException {
    Value value = getValue();
    switch (getColorType()) {
    case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
      StringBuffer sb =
        new StringBuffer( value.item(0).getCssText());
      sb.append(" icc-color(");
      ICCColor iccc = (ICCColor)value.item(1);
      sb.append(iccc.getColorProfile());
      for (int i = 0; i < iccc.getLength(); i++) {
        sb.append(',');
        sb.append(iccc.getColor(i));
      }
      sb.append(',');
      sb.append(f);
      sb.append(')');
      textChanged(sb.toString());
      break;
    default:
      throw new DOMException
        (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
    }
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Called when the ICC color has been inserted.
 */
public void colorInsertedBefore(float f, int idx) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    for (int i = 0; i < idx; i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    sb.append(',');
    sb.append(f);
    for (int i = idx; i < iccc.getLength(); i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Called when the ICC color has been removed.
 */
public void colorRemoved(int idx) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    for (int i = 0; i < idx; i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    for (int i = idx + 1; i < iccc.getLength(); i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Called when the ICC color has been append.
   */
  public void colorAppend(float f) throws DOMException {
    Value value = getValue();
    switch (getColorType()) {
    case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
      StringBuffer sb =
        new StringBuffer( value.item(0).getCssText());
      sb.append(" icc-color(");
      ICCColor iccc = (ICCColor)value.item(1);
      sb.append(iccc.getColorProfile());
      for (int i = 0; i < iccc.getLength(); i++) {
        sb.append(',');
        sb.append(iccc.getColor(i));
      }
      sb.append(',');
      sb.append(f);
      sb.append(')');
      textChanged(sb.toString());
      break;
    default:
      throw new DOMException
        (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
    }
  }
}
origin: apache/batik

/**
 * Called when the ICC color has been removed.
 */
public void colorRemoved(int idx) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    for (int i = 0; i < idx; i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    for (int i = idx + 1; i < iccc.getLength(); i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: apache/batik

/**
 * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGICCColor#getColorProfile()}.
 */
public String getColorProfile() {
  if (getColorType() != SVG_COLORTYPE_RGBCOLOR_ICCCOLOR) {
    throw new DOMException(DOMException.SYNTAX_ERR, "");
  }
  Value value = valueProvider.getValue();
  return ((ICCColor)value.item(1)).getColorProfile();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Called when the ICC color has been removed.
 */
public void colorRemoved(int idx) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)value.item(1);
    sb.append(iccc.getColorProfile());
    for (int i = 0; i < idx; i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    for (int i = idx + 1; i < iccc.getLength(); i++) {
      sb.append(',');
      sb.append(iccc.getColor(i));
    }
    sb.append(')');
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: org.apache.xmlgraphics/batik-css

/**
 * Called when the ICC colors has changed.
 */
public void colorsCleared() throws DOMException {
  switch (getPaintType()) {
  case SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer(getValue().item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)getValue().item(1);
    sb.append(iccc.getColorProfile());
    sb.append( ')' );
    textChanged(sb.toString());
    break;
  case SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR:
    sb = new StringBuffer(getValue().item(0).getCssText());
    sb.append( ' ' );
    sb.append(getValue().item(1).getCssText());
    sb.append(" icc-color(");
    iccc = (ICCColor)getValue().item(1);
    sb.append(iccc.getColorProfile());
    sb.append( ')' );
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
origin: apache/batik

/**
 * Called when the ICC colors has changed.
 */
public void colorsCleared() throws DOMException {
  switch (getPaintType()) {
  case SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer(getValue().item(0).getCssText());
    sb.append(" icc-color(");
    ICCColor iccc = (ICCColor)getValue().item(1);
    sb.append(iccc.getColorProfile());
    sb.append( ')' );
    textChanged(sb.toString());
    break;
  case SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR:
    sb = new StringBuffer(getValue().item(0).getCssText());
    sb.append( ' ' );
    sb.append(getValue().item(1).getCssText());
    sb.append(" icc-color(");
    iccc = (ICCColor)getValue().item(1);
    sb.append(iccc.getColorProfile());
    sb.append( ')' );
    textChanged(sb.toString());
    break;
  default:
    throw new DOMException
      (DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
  }
}
org.apache.batik.css.engine.value.svgICCColorgetColorProfile

Javadoc

Returns the color name.

Popular methods of ICCColor

  • getColor
    Returns the color at the given index.
  • getNumberOfColors
    Returns the number of colors.
  • <init>
    Creates a new ICCColor.
  • append
    Appends a color to the list.
  • getCssText
    A string representation of the current value.
  • getLength

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Reference (javax.naming)
  • Best IntelliJ 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