示例#1
0
        ///
        ///	 * <param name="xm">
        ///	 * @return </param>
        ///
        protected internal virtual JDFMedia initPlateMedia()
        {
            if (theParentNode != null)
            {
                theNode.ensureLink(theParentNode.getResource(ElementName.MEDIA, EnumUsage.Input, 0), EnumUsage.Input, null);
            }
            JDFMedia m = (JDFMedia)theNode.getCreateResource(ElementName.MEDIA, EnumUsage.Input, 0);

            if (EnumMediaType.Paper.Equals(m.getMediaType()))
            {
                m = (JDFMedia)theNode.getCreateResource(ElementName.MEDIA, EnumUsage.Input, 1);
            }
            m.setResStatus(EnumResStatus.Available, false);
            m.makeRootResource(null, theNode.getJDFRoot(), true);
            theNode.getJDFRoot().getCreateResourcePool().moveElement(m, null);
            m.setDescriptiveName("the plates to use");
            m.setMediaType(EnumMediaType.Plate);
            m.setPartUsage(EnumPartUsage.Implicit);
            if (bPartitionedPlateMedia && vParts != null)
            {
                VJDFAttributeMap vSheets = getReducedMap(new VString("Side Separation PartVersion", null));
                for (int i = 0; i < vSheets.Count; i++)
                {
                    JDFAttributeMap part = new JDFAttributeMap(vSheets[i]);
                    // JDFResource mm=
                    m.getCreatePartition(part, partIDKeys);
                }
            }
            else
            {
                m.setDimensionCM(new JDFXYPair(70, 102));
            }
            return(m);
        }