450451452453454455456457458459460
for (int i = 0; i < n; i++) { iccColors.add(null); } } float f = newItem.getValue(); SVGNumber result = new ColorNumber(f); iccColors.add(result); handler.colorAppend(f); return result; } }
119120121122123124125126127
/** */ protected SVGItem createSVGItem(Object newItem){ SVGNumber l = (SVGNumber)newItem; return new SVGNumberItem(l.getValue()); }
123124125126127128129130
/** * Creates a new {@link SVGNumberItem} from the given {@link SVGNumber}. */ protected SVGItem createSVGItem(Object newItem) { SVGNumber l = (SVGNumber)newItem; return new SVGNumberItem(l.getValue()); }
326327328329330331332333334335336
throw new DOMException (DOMException.NO_MODIFICATION_ALLOWED_ERR, ""); } else { float f = newItem.getValue(); iccColors = new ArrayList(); SVGNumber result = new ColorNumber(f); iccColors.add(result); handler.colorsInitialized(f); return result; } }
352353354355356357358359360
iccColors.add(null); } } Value value = valueProvider.getValue().item(1); float f = ((ICCColor)value).getColor(index); SVGNumber result = new ColorNumber(f); iccColors.set(index, result); return result; }
378379380381382383384385386387388
for (int i = iccColors.size(); i < n; i++) { iccColors.add(null); } } float f = newItem.getValue(); SVGNumber result = new ColorNumber(f); iccColors.add(index, result); handler.colorInsertedBefore(f, index); return result; } }
406407408409410411412413414415416
for (int i = iccColors.size(); i < n; i++) { iccColors.add(null); } } float f = newItem.getValue(); SVGNumber result = new ColorNumber(f); iccColors.set(index, result); handler.colorReplaced(f, index); return result; } }
425426427428429430431432433434435
} else { int n = getNumberOfItems(); if (index < 0 || index >= n) { throw new DOMException(DOMException.INDEX_SIZE_ERR, ""); } SVGNumber result = null; if (iccColors != null) { result = (ColorNumber)iccColors.get(index); } if (result == null) { Value value = valueProvider.getValue().item(1);
455456457458459460461462463464465
547548549550551552553554555556557
/** * <b>DOM</b>: Implements {@link SVGSVGElement#createSVGNumber()}. */ public SVGNumber createSVGNumber() { return new SVGNumber() { protected float value; public float getValue() { return value; } public void setValue(float f) {