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

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

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

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: fr.avianey.apache-xmlgraphics/batik

/**
 * Called when the ICC color profile has changed.
 */
public void colorProfileChanged(String cp) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    sb.append(cp);
    ICCColor iccc = (ICCColor)value.item(1);
    for (int i = 0; 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 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: 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

/**
 * Called when the ICC color profile has changed.
 */
public void colorProfileChanged(String cp) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    sb.append(cp);
    ICCColor iccc = (ICCColor)value.item(1);
    for (int i = 0; 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 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: 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 profile has changed.
 */
public void colorProfileChanged(String cp) throws DOMException {
  Value value = getValue();
  switch (getColorType()) {
  case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
    StringBuffer sb =
      new StringBuffer( value.item(0).getCssText());
    sb.append(" icc-color(");
    sb.append(cp);
    ICCColor iccc = (ICCColor)value.item(1);
    for (int i = 0; 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 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: 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: apache/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: apache/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: 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: 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

sb.append(cp);
ICCColor iccc = (ICCColor)getValue().item(1);
for (int i = 0; i < iccc.getLength(); i++) {
  sb.append( ',' );
  sb.append(iccc.getColor(i));
sb.append(cp);
iccc = (ICCColor)getValue().item(1);
for (int i = 0; i < iccc.getLength(); i++) {
  sb.append( ',' );
  sb.append(iccc.getColor(i));
origin: org.apache.xmlgraphics/batik-css

ICCColor iccc = (ICCColor)getValue().item(1);
sb.append(iccc.getColorProfile());
for (int i = 0; i < iccc.getLength(); i++) {
  sb.append( ',' );
  sb.append(iccc.getColor(i));
iccc = (ICCColor)getValue().item(1);
sb.append(iccc.getColorProfile());
for (int i = 0; i < iccc.getLength(); i++) {
  sb.append( ',' );
  sb.append(iccc.getColor(i));
origin: apache/batik

sb.append(cp);
ICCColor iccc = (ICCColor)getValue().item(1);
for (int i = 0; i < iccc.getLength(); i++) {
  sb.append( ',' );
  sb.append(iccc.getColor(i));
sb.append(cp);
iccc = (ICCColor)getValue().item(1);
for (int i = 0; i < iccc.getLength(); i++) {
  sb.append( ',' );
  sb.append(iccc.getColor(i));
origin: fr.avianey.apache-xmlgraphics/batik

sb.append(cp);
ICCColor iccc = (ICCColor)getValue().item(1);
for (int i = 0; i < iccc.getLength(); i++) {
  sb.append( ',' );
  sb.append(iccc.getColor(i));
sb.append(cp);
iccc = (ICCColor)getValue().item(1);
for (int i = 0; i < iccc.getLength(); i++) {
  sb.append( ',' );
  sb.append(iccc.getColor(i));
origin: fr.avianey.apache-xmlgraphics/batik

  sb.append(iccc.getColor(i));
for (int i = idx + 1; i < iccc.getLength(); i++) {
  sb.append( ',' );
  sb.append(iccc.getColor(i));
  sb.append(iccc.getColor(i));
for (int i = idx + 1; i < iccc.getLength(); i++) {
  sb.append( ',' );
  sb.append(iccc.getColor(i));
org.apache.batik.css.engine.value.svgICCColorgetLength

Popular methods of ICCColor

  • getColor
    Returns the color at the given index.
  • getColorProfile
    Returns the color name.
  • 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.

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JOptionPane (javax.swing)
  • From CI to AI: The AI layer in your organization
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