/** * 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, ""); } }
/** * 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, ""); } }
/** * 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, ""); } }
/** * 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, ""); } }
/** * 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, ""); } }
/** * 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, ""); } }
/** * 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, ""); } } }
/** * <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(); }
/** * 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, ""); } }
/** * 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, ""); } }
/** * <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(); }
/** * 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, ""); } } }
/** * 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, ""); } }
/** * 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, ""); } }
/** * 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, ""); } } }
/** * 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, ""); } }
/** * <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(); }
/** * 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, ""); } }
/** * 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, ""); } }
/** * 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, ""); } }