Exemplo n.º 1
0
        public virtual void createAddressBook()
        {
            initCustomerInfo(null, null, "Art Point", "Address Pocketbook");
            theNode.setDescriptiveName("7.5.2   A5 brochure 4c/4c, 4pg Cover, 32 pg Text");
            JDFNode cover = addJDFNode(theNode, EnumType.Product);

            cover.setDescriptiveName("Address Book Cover");

            initMediaIntent(cover, 200, EnumSpanCoatings.Glossy, null);
            JDFLayoutIntent li     = initLayoutIntent(cover, 14.8, 21, 4, 2);
            JDFColorIntent  ci     = initColorIntent(cover, 4, 4, null);
            JDFComponent    cCover = initOutputComponent(cover, li, "Cover");

            cCover.setComponentType(EnumComponentType.PartialProduct, EnumComponentType.Sheet);

            JDFNode body = addJDFNode(theNode, EnumType.Product);

            body.setDescriptiveName("Address Book Body");
            body.linkResource(ci, EnumUsage.Input, null);
            initMediaIntent(body, 135, EnumSpanCoatings.Coated, null);
            initLayoutIntent(body, 14.8, 21, 32, 2);
            JDFComponent cBody = initOutputComponent(body, li, "Body");

            cBody.setComponentType(EnumComponentType.PartialProduct, EnumComponentType.Sheet);

            initBindingIntent(cCover, cBody, 2);

            initOutputComponent(theNode, li, null);
            initDeliveryIntent(5000);
        }
Exemplo n.º 2
0
        ///
        ///     <summary> *  </summary>
        ///
        protected internal virtual JDFColorIntent initColorIntent(JDFNode node, int front, int back, string coatings)
        {
            JDFColorIntent ci  = (JDFColorIntent)node.addResource(ElementName.COLORINTENT, EnumUsage.Input);
            VElement       vci = new VElement();

            nCols[0] = front;
            nCols[1] = back;
            if (front != back && back != 0)
            {
                vci.Add(ci.addPartition(EnumPartIDKey.Side, EnumSide.Front));
                vci.Add(ci.addPartition(EnumPartIDKey.Side, EnumSide.Back));
            }
            else
            {
                vci.Add(ci);
            }

            for (int i = 0; i < vci.Count; i++)
            {
                int     colors  = i == 0 ? front : back;
                VString newCols = new VString();
                for (int j = 0; j < colors; j++)
                {
                    newCols.Add(cols[j]);
                }
                JDFColorIntent cip = (JDFColorIntent)vci[i];
                cip.appendColorsUsed().setSeparations(newCols);
            }
            ci.setResStatus(EnumResStatus.Available, false);
            ci.preferredToActual();
            return(ci);
        }
Exemplo n.º 3
0
        ///
        ///	 <summary> * recalculate ncols from parent color intent if it exists </summary>
        ///
        private void initColsFromParent()
        {
            if (theParentNode == null)
            {
                return;
            }
            JDFColorIntent ci = (JDFColorIntent)theParentNode.getResource(ElementName.COLORINTENT, EnumUsage.Input, 0);

            if (ci == null)
            {
                return;
            }
            int c = ci.getNumColors();

            if (c > 0)
            {
                nCols[0] = nCols[1] = c;
            }
        }