Tabnine Logo
SVGOMRectElement
Code IndexAdd Tabnine to your IDE (free)

How to use
SVGOMRectElement
in
org.apache.batik.anim.dom

Best Java code snippets using org.apache.batik.anim.dom.SVGOMRectElement (Showing top 20 results out of 315)

origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns a new uninitialized instance of this object's class.
 */
protected Node newNode() {
  return new SVGOMRectElement();
}
origin: fr.avianey.apache-xmlgraphics/batik

protected String getDefaultValue() {
  Attr attr = getAttributeNodeNS(null, SVG_RY_ATTRIBUTE);
  if (attr == null) {
    return "0";
  }
  return attr.getValue();
}
protected void attrChanged() {
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * 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();
}
origin: fr.avianey.apache-xmlgraphics/batik

  (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) {
origin: org.apache.xmlgraphics/batik-anim

  /**
   * 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);
  }
}
origin: org.apache.xmlgraphics/batik-anim

  protected void attrChanged() {
    super.attrChanged();
    AbstractSVGAnimatedLength ry =
      (AbstractSVGAnimatedLength) getRy();
    if (isSpecified() && !ry.isSpecified()) {
      ry.attrChanged();
    }
  }
};
origin: apache/batik

  protected void attrChanged() {
    super.attrChanged();
    AbstractSVGAnimatedLength rx =
      (AbstractSVGAnimatedLength) getRx();
    if (isSpecified() && !rx.isSpecified()) {
      rx.attrChanged();
    }
  }
};
origin: apache/batik

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);
origin: org.apache.xmlgraphics/batik-bridge

  (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) {
origin: apache/batik

  /**
   * 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);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  protected void attrChanged() {
    super.attrChanged();
    AbstractSVGAnimatedLength ry =
      (AbstractSVGAnimatedLength) getRy();
    if (isSpecified() && !ry.isSpecified()) {
      ry.attrChanged();
    }
  }
};
origin: org.apache.xmlgraphics/batik-anim

  protected void attrChanged() {
    super.attrChanged();
    AbstractSVGAnimatedLength rx =
      (AbstractSVGAnimatedLength) getRx();
    if (isSpecified() && !rx.isSpecified()) {
      rx.attrChanged();
    }
  }
};
origin: fr.avianey.apache-xmlgraphics/batik

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);
origin: apache/batik

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

  /**
   * 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);
  }
}
origin: apache/batik

  protected void attrChanged() {
    super.attrChanged();
    AbstractSVGAnimatedLength ry =
      (AbstractSVGAnimatedLength) getRy();
    if (isSpecified() && !ry.isSpecified()) {
      ry.attrChanged();
    }
  }
};
origin: fr.avianey.apache-xmlgraphics/batik

  protected void attrChanged() {
    super.attrChanged();
    AbstractSVGAnimatedLength rx =
      (AbstractSVGAnimatedLength) getRx();
    if (isSpecified() && !rx.isSpecified()) {
      rx.attrChanged();
    }
  }
};
origin: org.apache.xmlgraphics/batik-anim

/**
 * 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();
}
origin: org.apache.xmlgraphics/batik-anim

protected String getDefaultValue() {
  Attr attr = getAttributeNodeNS(null, SVG_RY_ATTRIBUTE);
  if (attr == null) {
    return "0";
  }
  return attr.getValue();
}
protected void attrChanged() {
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns a new uninitialized instance of this object's class.
 */
protected Node newNode() {
  return new SVGOMRectElement();
}
org.apache.batik.anim.domSVGOMRectElement

Javadoc

This class implements SVGRectElement.

Most used methods

  • getRx
    DOM: Implements SVGRectElement#getRx().
  • getRy
    DOM: Implements SVGRectElement#getRy().
  • <init>
    Creates a new SVGOMRectElement object.
  • createLiveAnimatedLength
  • getAttributeNodeNS
  • getHeight
    DOM: Implements SVGRectElement#getHeight().
  • getWidth
    DOM: Implements SVGRectElement#getWidth().
  • getX
    DOM: Implements SVGRectElement#getX().
  • getY
    DOM: Implements SVGRectElement#getY().
  • initializeLiveAttributes
    Initializes the live attribute values of this element.

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot alternatives
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