/** * Implements {@link Value#item(int)}. */ public Value item(int index) throws DOMException { return computedValue.item(index); }
/** * Implements {@link Value#item(int)}. */ public Value item(int index) throws DOMException { return computedValue.item(index); }
/** * Implements {@link Value#item(int)}. */ public Value item(int index) throws DOMException { return computedValue.item(index); }
/** * Implements {@link SVGNumber#getValue()}. */ public float getValue() { if (iccColors == null) { return value; } int idx = iccColors.indexOf(this); if (idx == -1) { return value; } Value value = valueProvider.getValue().item(1); return ((ICCColor)value).getColor(idx); }
/** * The returns the actual value of this component. */ protected Value getValue() { if (index >= valueProvider.getValue().getLength()) { throw new DOMException (DOMException.NO_MODIFICATION_ALLOWED_ERR, ""); } return valueProvider.getValue().item(index); }
/** * <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(); }
/** * <b>DOM</b>: Implements {@link SVGNumberList#getNumberOfItems()}. */ public int getNumberOfItems() { if (getColorType() != SVG_COLORTYPE_RGBCOLOR_ICCCOLOR) { throw new DOMException(DOMException.SYNTAX_ERR, ""); } Value value = valueProvider.getValue(); return ((ICCColor)value.item(1)).getNumberOfColors(); }
/** * <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(); }
/** * <b>DOM</b>: Implements {@link SVGNumberList#getNumberOfItems()}. */ public int getNumberOfItems() { if (getColorType() != SVG_COLORTYPE_RGBCOLOR_ICCCOLOR) { throw new DOMException(DOMException.SYNTAX_ERR, ""); } Value value = valueProvider.getValue(); return ((ICCColor)value.item(1)).getNumberOfColors(); }
/** * The returns the actual value of this component. */ protected Value getValue() { if (index >= valueProvider.getValue().getLength()) { throw new DOMException (DOMException.NO_MODIFICATION_ALLOWED_ERR, ""); } return valueProvider.getValue().item(index); }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGPaint#getUri()}. */ public String getUri() { switch (getPaintType()) { case SVG_PAINTTYPE_URI: return valueProvider.getValue().getStringValue(); case SVG_PAINTTYPE_URI_NONE: case SVG_PAINTTYPE_URI_CURRENTCOLOR: case SVG_PAINTTYPE_URI_RGBCOLOR: case SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR: return valueProvider.getValue().item(0).getStringValue(); } throw new InternalError(); }
/** * <b>DOM</b>: Implements {@link SVGNumberList#getNumberOfItems()}. */ public int getNumberOfItems() { if (getColorType() != SVG_COLORTYPE_RGBCOLOR_ICCCOLOR) { throw new DOMException(DOMException.SYNTAX_ERR, ""); } Value value = valueProvider.getValue(); return ((ICCColor)value.item(1)).getNumberOfColors(); }
/** * The returns the actual value of this component. */ protected Value getValue() { if (index >= valueProvider.getValue().getLength()) { throw new DOMException (DOMException.NO_MODIFICATION_ALLOWED_ERR, ""); } return valueProvider.getValue().item(index); }
/** * <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(); }
public static float getFloatProp(StyleMap sm, CSSEngine eng, int pidx) { Value v = sm.getValue(pidx); ValueManager [] vms = eng.getValueManagers(); if (v == null) { ValueManager vm = vms[pidx]; v = vm.getDefaultValue(); } while (v.getCssValueType() == CSSValue.CSS_VALUE_LIST) { v = v.item(0); } return v.getFloatValue(); }
public static String getStringProp(StyleMap sm, CSSEngine eng, int pidx) { Value v = sm.getValue(pidx); ValueManager [] vms = eng.getValueManagers(); if (v == null) { ValueManager vm = vms[pidx]; v = vm.getDefaultValue(); } while (v.getCssValueType() == CSSValue.CSS_VALUE_LIST) { v = v.item(0); } return v.getStringValue(); }
public static String getStringProp(StyleMap sm, CSSEngine eng, int pidx) { Value v = sm.getValue(pidx); ValueManager [] vms = eng.getValueManagers(); if (v == null) { ValueManager vm = vms[pidx]; v = vm.getDefaultValue(); } while (v.getCssValueType() == CSSValue.CSS_VALUE_LIST) { v = v.item(0); } return v.getStringValue(); }
public static String getStringProp(StyleMap sm, CSSEngine eng, int pidx) { Value v = sm.getValue(pidx); ValueManager [] vms = eng.getValueManagers(); if (v == null) { ValueManager vm = vms[pidx]; v = vm.getDefaultValue(); } while (v.getCssValueType() == CSSValue.CSS_VALUE_LIST) { v = v.item(0); } return v.getStringValue(); }
public static float getFloatProp(StyleMap sm, CSSEngine eng, int pidx) { Value v = sm.getValue(pidx); ValueManager [] vms = eng.getValueManagers(); if (v == null) { ValueManager vm = vms[pidx]; v = vm.getDefaultValue(); } while (v.getCssValueType() == CSSValue.CSS_VALUE_LIST) { v = v.item(0); } return v.getFloatValue(); }
public static float getFloatProp(StyleMap sm, CSSEngine eng, int pidx) { Value v = sm.getValue(pidx); ValueManager [] vms = eng.getValueManagers(); if (v == null) { ValueManager vm = vms[pidx]; v = vm.getDefaultValue(); } while (v.getCssValueType() == CSSValue.CSS_VALUE_LIST) { v = v.item(0); } return v.getFloatValue(); }