Class JDFContentObject

    • Constructor Detail

      • JDFContentObject

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

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

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

      • toString

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

        public void setTrimSize​(double x,
                                double y,
                                int precision)
        Specified by:
        setTrimSize in interface IPlacedObject
        Parameters:
        x -
        y -
        precision - number of digits in decimal
      • setTrimSize

        public void setTrimSize​(JDFXYPair jdfxyPair,
                                int precision)
        Specified by:
        setTrimSize in interface IPlacedObject
        Parameters:
        jdfxyPair -
        precision - number of digits in decimal
      • getCenter

        public JDFXYPair getCenter()
        Returns:
      • getTrimSize

        public JDFXYPair getTrimSize()
        (20) get JDFXYPair attribute TrimSize
        Overrides:
        getTrimSize in class JDFAutoContentObject
        Returns:
        JDFXYPair the value of the attribute, null if a the attribute value is not a valid to create a JDFXYPair
      • setTrimSize

        public void setTrimSize​(double x,
                                double y)
        Description copied from interface: IPlacedObject
        convenience method to set TrimSize
        Specified by:
        setTrimSize in interface IPlacedObject
        Parameters:
        x -
        y -
      • calcOrd

        public static int calcOrd​(int ord,
                                  int nPages,
                                  int loop,
                                  int maxOrdFront,
                                  int maxOrdBack,
                                  int frontOffset)
        calculates a "real" ord value in an automated layout
        Parameters:
        ord - the Value of Ord in the layout
        nPages - the total number of pages that are consumed by the Layout, if frontOffset!=0 the pages before frontOffset are NOT counted
        loop - which sheet loop are we on?
        maxOrdFront - number of pages consumed from the front of the list
        maxOrdBack - positive number of pages consumed from the back of the list
        frontOffset - page number of the first page to be placed on ord 0 in loop 0
        Returns:
        the pge to assign in this Ord, -1 if no page fits