Beispiel #1
0
        ///
        ///	 <summary> * zapp any direct links to colorpool </summary>
        ///
        protected internal override void initColorantControl()
        {
            base.initColorantControl();
            JDFColorPool cp = (JDFColorPool)theNode.getResource(ElementName.COLORPOOL, EnumUsage.Input, 0);

            if (cp != null)
            {
                JDFResourceLink rl = theNode.getLink(cp, EnumUsage.Input);
                if (rl != null)
                {
                    rl.deleteNode();
                }
            }
        }
Beispiel #2
0
        ///
        ///	 <summary> *  </summary>
        ///
        private void initStrippingParams()
        {
            JDFStrippingParams sp = (JDFStrippingParams)theNode.getCreateResource(ElementName.STRIPPINGPARAMS, EnumUsage.Input, 0);

            sp.setDescriptiveName("Impositioning for job " + theNode.getJobID(true));
            sp.setWorkStyle(org.cip4.jdflib.auto.JDFAutoStrippingParams.EnumWorkStyle.getEnum(workStyle.getValue()));
            // VJDFAttributeMap reduceMap=
            getReducedMap(new VString("Separation PartVersion", null));
            JDFBinderySignature bs0 = (JDFBinderySignature)theNode.getResource(ElementName.BINDERYSIGNATURE, EnumUsage.Input, 0);
            JDFBinderySignature bs1 = (JDFBinderySignature)theNode.getResource(ElementName.BINDERYSIGNATURE, EnumUsage.Input, 1);

            if (bs1 == null)
            {
                bs1 = bs0;
            }

            if (vParts != null)
            {
                VJDFAttributeMap reducedMap = getReducedMap(new VString("Side Separation PartVersion", " "));
                if (reducedMap != null)
                {
                    int size = reducedMap.Count;
                    for (int i = 0; i < size; i++)
                    {
                        JDFAttributeMap     part   = reducedMap[i];
                        JDFResource         partSP = sp.getCreatePartition(part, partIDKeys);
                        JDFBinderySignature bs     = partSP.getSheetName().ToLower().Contains("cover") ? bs0 : bs1;
                        partSP.refElement(bs);
                        JDFResourceLink rl = theNode.getLink(bs, null);
                        if (rl != null)
                        {
                            rl.deleteNode();
                        }
                    }
                }
            }
            else
            {
                sp.refElement(bs0);
            }

            sp.appendDevice().setDeviceID("Press_ID");
            sp.appendPosition().setRelativeBox(new JDFRectangle(0, 0, 0.5, 1));
            sp.appendPosition().setRelativeBox(new JDFRectangle(0.5, 1, 1, 1));

            sp.appendStripCellParams().setTrimSize(new JDFXYPair(8.5 * 72, 11 * 72));

            sp.refElement(initPaperMedia());
        }
Beispiel #3
0
        ///
        ///	 * <param name="icsLevel"> </param>
        ///
        protected internal virtual void initPlateXM(EnumUsage usage)
        {
            JDFResourceLink rl = null;

            if (thePreviousNode != null) // either input (for cp, or output for
            // plateset)
            {
                rl = theNode.linkResource(thePreviousNode.getResource(ElementName.EXPOSEDMEDIA, null, 0), usage, null);
            }

            if (rl == null && theParentNode != null)
            {
                rl = theNode.ensureLink(theParentNode.getResource(ElementName.EXPOSEDMEDIA, null, 0), usage, null);
            }

            JDFExposedMedia xm = (JDFExposedMedia)theNode.getCreateResource(ElementName.EXPOSEDMEDIA, usage, 0);

            xm.setPartUsage(EnumPartUsage.Explicit);
            rl = theNode.getLink(xm, null);

            JDFMedia m = ((JDFExposedMedia)xm.getLeaves(false)[0]).getMedia();

            if (m == null)
            {
                m = initPlateMedia();
            }
            else
            {
                m = (JDFMedia)m.getResourceRoot();
                if (theParentNode != null)
                {
                    theNode.ensureLink(theParentNode.getResource("Media", EnumUsage.Input, 0), EnumUsage.Input, null);
                }
            }
            xm.setResStatus(EnumResStatus.Unavailable, false);
            if (!bPartitionedPlateMedia && xm.getMedia() == null)
            {
                xm.refElement(m);
            }
            if (EnumUsage.Input.Equals(usage))
            {
                rl.setProcessUsage(EnumProcessUsage.Plate);
                JDFResourceLink link = theNode.getLink(m, null);
                if (link != null)
                {
                    link.deleteNode();
                }
            }

            if (vParts != null)
            {
                for (int i = 0; i < vParts.Count; i++)
                {
                    JDFAttributeMap part  = new JDFAttributeMap(vParts[i]);
                    JDFResource     xmp   = xm.getCreatePartition(part, partIDKeys);
                    int             ncols = "Front".Equals(part.get("Side")) ? nCols[0] : nCols[1];

                    for (int j = 0; j < ncols; j++)
                    {
                        part.put(EnumPartIDKey.Separation, cols.stringAt(j));
                        xmp.getCreatePartition(part, partIDKeys);
                    }
                }
                if (bPartitionedPlateMedia)
                {
                    VJDFAttributeMap vSheets = getReducedMap(new VString("Side Separation PartVersion", null));
                    for (int i = 0; i < vSheets.Count; i++)
                    {
                        JDFAttributeMap part = new JDFAttributeMap(vSheets[i]);
                        JDFExposedMedia xmp  = (JDFExposedMedia)xm.getCreatePartition(part, partIDKeys);
                        if (xmp.getMedia() == null)
                        {
                            xmp.refMedia((JDFMedia)m.getCreatePartition(part, null));
                        }
                    }
                }
            }
        }