Class JDFShapeSpan

  • 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 JDFShapeSpan
    extends JDFSpanBase
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFShapeSpan

        public JDFShapeSpan​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                            java.lang.String qualifiedName)
        Constructor for JDFShapeSpan
        Parameters:
        ownerDocument -
        qualifiedName -
      • JDFShapeSpan

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

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

      • toString

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

        public void setActual​(JDFShape value)
      • getActual

        public JDFShape getActual()
      • setPreferred

        public void setPreferred​(JDFShape value)
      • getPreferred

        public JDFShape 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,
                                 double z)
        set the Preferred attribute
        Parameters:
        double - x the preferred width
        double - y the preferred height
        double - z the preferred depth
      • addRange

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

        public void addRange​(JDFShape shape1,
                             JDFShape shape2)
        add an element x y to the Range attribute as a JDFRange
        Parameters:
        JDFShape - shape1 the Range value
        JDFShape - shape2 the Range value
      • addRange

        public void addRange​(double x,
                             double y,
                             double z)
        add an element x y zto the Range attribute as a JDFRange
        Parameters:
        double - x the width
        double - y the height
        double - z the depth
      • addRange

        public void addRange​(double x1,
                             double y1,
                             double z1,
                             double x2,
                             double y2,
                             double z2)
        add an element x1 y1 z1~ x2 y2 z2to the Range attribute as a JDFRange
        Parameters:
        double - x1 the 1. width
        double - y1 the 1. height
        double - z1 the 1. depth
        double - x2 the 2. width
        double - y2 the 2. height
        double - z2 the 2. depth