Class JDFXYPairSpan

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, IStreamWriter, org.w3c.dom.Element, org.w3c.dom.ElementTraversal, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo

    public class JDFXYPairSpan
    extends JDFSpanBase
    XYPair range class
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFXYPairSpan

        public JDFXYPairSpan​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                             java.lang.String qualifiedName)
                      throws org.w3c.dom.DOMException
        Constructor for JDFXYPairSpan
        Parameters:
        ownerDocument -
        qualifiedName -
        Throws:
        org.w3c.dom.DOMException
      • JDFXYPairSpan

        public JDFXYPairSpan​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                             java.lang.String myNamespaceURI,
                             java.lang.String qualifiedName)
                      throws org.w3c.dom.DOMException
        Constructor for JDFXYPairSpan
        Parameters:
        ownerDocument -
        namespaceURI -
        qualifiedName -
        Throws:
        org.w3c.dom.DOMException
      • JDFXYPairSpan

        public JDFXYPairSpan​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                             java.lang.String myNamespaceURI,
                             java.lang.String qualifiedName,
                             java.lang.String myLocalName)
                      throws org.w3c.dom.DOMException
        Constructor for JDFXYPairSpan
        Parameters:
        ownerDocument -
        namespaceURI -
        qualifiedName -
        localName -
        Throws:
        org.w3c.dom.DOMException
    • Method Detail

      • toString

        public java.lang.String toString()
        toString
        Overrides:
        toString in class JDFSpanBase
        Returns:
        String
        See Also:
        Object.toString()
      • setActual

        public void setActual​(JDFXYPair value)
      • setPreferred

        public void setPreferred​(JDFXYPair value)
      • getPreferred

        public JDFXYPair getPreferred()
      • init

        public boolean init()
        Description copied from class: KElement
        Method init. Superclass of all inits
        Overrides:
        init in class JDFElement
        Returns:
        boolean true always
        See Also:
        KElement.init()
      • setPreferred

        public void setPreferred​(double x,
                                 double y)
        SetPreferred
        Parameters:
        double - x
        double - y
      • addRange

        public void addRange​(double x,
                             double y)
        add an element xy to the Range attribute
        Parameters:
        double - x - x value of the JDFXYPair value to add
        double - y - y value of the JDFXYPair value to add
      • addRange

        public void addRange​(double x1,
                             double y1,
                             double x2,
                             double y2)
        add an element xy to the Range attribute
        Parameters:
        double - x1 - x value of the left JDFXYPairRange value to add
        double - y1 - y value of the left JDFXYPairRange value to add
        double - x2 - x value of the right JDFXYPairRange value to add
        double - y2 - y value of the right JDFXYPairRange value to add
      • addRange

        public void addRange​(JDFXYPair xy)
        add an element xy to the Range attribute as a JDFRange
        Parameters:
        JDFXYPair - xy - the Range value to add
      • addRange

        public void addRange​(JDFXYPair xy1,
                             JDFXYPair xy2)
        add an element xy to the Range attribute as a JDFRange
        Parameters:
        JDFXYPair - xy1 - left JDFXYPairRange value to add
        JDFXYPair - xy2 - right JDFXYPairRange value to add