/** * Returns a new uninitialized instance of this object's class. */ protected Node newNode() { return new SVGOMRectElement(); }
protected String getDefaultValue() { Attr attr = getAttributeNodeNS(null, SVG_RY_ATTRIBUTE); if (attr == null) { return "0"; } return attr.getValue(); } protected void attrChanged() {
/** * Creates a new SVGOMRectElement object. * @param prefix The namespace prefix. * @param owner The owner document. */ public SVGOMRectElement(String prefix, AbstractDocument owner) { super(prefix, owner); initializeLiveAttributes(); }
(AbstractSVGAnimatedLength) re.getX(); float x = _x.getCheckedValue(); (AbstractSVGAnimatedLength) re.getY(); float y = _y.getCheckedValue(); (AbstractSVGAnimatedLength) re.getWidth(); float w = _width.getCheckedValue(); (AbstractSVGAnimatedLength) re.getHeight(); float h = _height.getCheckedValue(); (AbstractSVGAnimatedLength) re.getRx(); float rx = _rx.getCheckedValue(); if (rx > w / 2) { (AbstractSVGAnimatedLength) re.getRy(); float ry = _ry.getCheckedValue(); if (ry > h / 2) {
/** * Updates an attribute value in this target. */ public void updateAttributeValue(String ns, String ln, AnimatableValue val) { if (ns == null) { if (ln.equals(SVG_RX_ATTRIBUTE)) { super.updateAttributeValue(ns, ln, val); AbstractSVGAnimatedLength ry = (AbstractSVGAnimatedLength) getRy(); if (!ry.isSpecified()) { super.updateAttributeValue(ns, SVG_RY_ATTRIBUTE, val); } return; } else if (ln.equals(SVG_RY_ATTRIBUTE)) { super.updateAttributeValue(ns, ln, val); AbstractSVGAnimatedLength rx = (AbstractSVGAnimatedLength) getRx(); if (!rx.isSpecified()) { super.updateAttributeValue(ns, SVG_RX_ATTRIBUTE, val); } return; } } super.updateAttributeValue(ns, ln, val); } }
protected void attrChanged() { super.attrChanged(); AbstractSVGAnimatedLength ry = (AbstractSVGAnimatedLength) getRy(); if (isSpecified() && !ry.isSpecified()) { ry.attrChanged(); } } };
protected void attrChanged() { super.attrChanged(); AbstractSVGAnimatedLength rx = (AbstractSVGAnimatedLength) getRx(); if (isSpecified() && !rx.isSpecified()) { rx.attrChanged(); } } };
x = createLiveAnimatedLength (null, SVG_X_ATTRIBUTE, SVG_RECT_X_DEFAULT_VALUE, SVGOMAnimatedLength.HORIZONTAL_LENGTH, false); y = createLiveAnimatedLength (null, SVG_Y_ATTRIBUTE, SVG_RECT_Y_DEFAULT_VALUE, SVGOMAnimatedLength.VERTICAL_LENGTH, false); width = createLiveAnimatedLength (null, SVG_WIDTH_ATTRIBUTE, null, SVGOMAnimatedLength.HORIZONTAL_LENGTH, true); height = createLiveAnimatedLength (null, SVG_HEIGHT_ATTRIBUTE, null, SVGOMAnimatedLength.VERTICAL_LENGTH, true);
(AbstractSVGAnimatedLength) re.getX(); float x = _x.getCheckedValue(); (AbstractSVGAnimatedLength) re.getY(); float y = _y.getCheckedValue(); (AbstractSVGAnimatedLength) re.getWidth(); float w = _width.getCheckedValue(); (AbstractSVGAnimatedLength) re.getHeight(); float h = _height.getCheckedValue(); (AbstractSVGAnimatedLength) re.getRx(); float rx = _rx.getCheckedValue(); if (rx > w / 2) { (AbstractSVGAnimatedLength) re.getRy(); float ry = _ry.getCheckedValue(); if (ry > h / 2) {
/** * Updates an attribute value in this target. */ public void updateAttributeValue(String ns, String ln, AnimatableValue val) { if (ns == null) { if (ln.equals(SVG_RX_ATTRIBUTE)) { super.updateAttributeValue(ns, ln, val); AbstractSVGAnimatedLength ry = (AbstractSVGAnimatedLength) getRy(); if (!ry.isSpecified()) { super.updateAttributeValue(ns, SVG_RY_ATTRIBUTE, val); } return; } else if (ln.equals(SVG_RY_ATTRIBUTE)) { super.updateAttributeValue(ns, ln, val); AbstractSVGAnimatedLength rx = (AbstractSVGAnimatedLength) getRx(); if (!rx.isSpecified()) { super.updateAttributeValue(ns, SVG_RX_ATTRIBUTE, val); } return; } } super.updateAttributeValue(ns, ln, val); } }
protected void attrChanged() { super.attrChanged(); AbstractSVGAnimatedLength ry = (AbstractSVGAnimatedLength) getRy(); if (isSpecified() && !ry.isSpecified()) { ry.attrChanged(); } } };
protected void attrChanged() { super.attrChanged(); AbstractSVGAnimatedLength rx = (AbstractSVGAnimatedLength) getRx(); if (isSpecified() && !rx.isSpecified()) { rx.attrChanged(); } } };
x = createLiveAnimatedLength (null, SVG_X_ATTRIBUTE, SVG_RECT_X_DEFAULT_VALUE, SVGOMAnimatedLength.HORIZONTAL_LENGTH, false); y = createLiveAnimatedLength (null, SVG_Y_ATTRIBUTE, SVG_RECT_Y_DEFAULT_VALUE, SVGOMAnimatedLength.VERTICAL_LENGTH, false); width = createLiveAnimatedLength (null, SVG_WIDTH_ATTRIBUTE, null, SVGOMAnimatedLength.HORIZONTAL_LENGTH, true); height = createLiveAnimatedLength (null, SVG_HEIGHT_ATTRIBUTE, null, SVGOMAnimatedLength.VERTICAL_LENGTH, true);
(AbstractSVGAnimatedLength) re.getX(); float x = _x.getCheckedValue(); (AbstractSVGAnimatedLength) re.getY(); float y = _y.getCheckedValue(); (AbstractSVGAnimatedLength) re.getWidth(); float w = _width.getCheckedValue(); (AbstractSVGAnimatedLength) re.getHeight(); float h = _height.getCheckedValue(); (AbstractSVGAnimatedLength) re.getRx(); float rx = _rx.getCheckedValue(); if (rx > w / 2) { (AbstractSVGAnimatedLength) re.getRy(); float ry = _ry.getCheckedValue(); if (ry > h / 2) {
/** * Updates an attribute value in this target. */ public void updateAttributeValue(String ns, String ln, AnimatableValue val) { if (ns == null) { if (ln.equals(SVG_RX_ATTRIBUTE)) { super.updateAttributeValue(ns, ln, val); AbstractSVGAnimatedLength ry = (AbstractSVGAnimatedLength) getRy(); if (!ry.isSpecified()) { super.updateAttributeValue(ns, SVG_RY_ATTRIBUTE, val); } return; } else if (ln.equals(SVG_RY_ATTRIBUTE)) { super.updateAttributeValue(ns, ln, val); AbstractSVGAnimatedLength rx = (AbstractSVGAnimatedLength) getRx(); if (!rx.isSpecified()) { super.updateAttributeValue(ns, SVG_RX_ATTRIBUTE, val); } return; } } super.updateAttributeValue(ns, ln, val); } }
protected void attrChanged() { super.attrChanged(); AbstractSVGAnimatedLength ry = (AbstractSVGAnimatedLength) getRy(); if (isSpecified() && !ry.isSpecified()) { ry.attrChanged(); } } };
protected void attrChanged() { super.attrChanged(); AbstractSVGAnimatedLength rx = (AbstractSVGAnimatedLength) getRx(); if (isSpecified() && !rx.isSpecified()) { rx.attrChanged(); } } };
/** * Creates a new SVGOMRectElement object. * @param prefix The namespace prefix. * @param owner The owner document. */ public SVGOMRectElement(String prefix, AbstractDocument owner) { super(prefix, owner); initializeLiveAttributes(); }
protected String getDefaultValue() { Attr attr = getAttributeNodeNS(null, SVG_RY_ATTRIBUTE); if (attr == null) { return "0"; } return attr.getValue(); } protected void attrChanged() {
/** * Returns a new uninitialized instance of this object's class. */ protected Node newNode() { return new SVGOMRectElement(); }