コード例 #1
0
        ///
        ///	 * <param name="icsLevel"> </param>
        ///
        protected internal virtual void initColorantControl()
        {
            JDFResourceLink ccLink = null;

            if (thePreviousNode != null)
            {
                ccLink = theNode.linkResource(thePreviousNode.getResource(ElementName.COLORANTCONTROL, EnumUsage.Input, 0), EnumUsage.Input, null);
            }
            if (ccLink == null && theParentNode != null)
            {
                ccLink = theNode.linkResource(theParentNode.getResource(ElementName.COLORANTCONTROL, EnumUsage.Input, 0), EnumUsage.Input, null);
            }

            JDFColorantControl cc = (JDFColorantControl)(ccLink == null ? (JDFColorantControl)theNode.getCreateResource(ElementName.COLORANTCONTROL, EnumUsage.Input, 0) : ccLink.getTarget());

            cc.setResStatus(EnumResStatus.Available, false);

            JDFColorPool cp = (JDFColorPool)theNode.getJDFRoot().getChildByTagName(ElementName.COLORPOOL, null, 0, null, false, false);

            if (cp == null)
            {
                cp = (JDFColorPool)theNode.getCreateResource(ElementName.COLORPOOL, EnumUsage.Input, 0);
                if (theParentNode != null)
                {
                    theParentNode.getCreateResourcePool().moveElement(cp, null);
                }
            }

            cc.refColorPool(cp);
            for (int i = 4; i < getNCols(); i++)
            {
                cc.getCreateColorantParams().appendSeparation(cols.stringAt(i));
            }
            for (int i = 0; i < getNCols(); i++)
            {
                string   name = cols.stringAt(i);
                JDFColor c    = cp.getCreateColorWithName(name, null);
                if (i == 0)
                {
                    c.setCMYK(new JDFCMYKColor(1, 0, 0, 0));
                }
                if (i == 1)
                {
                    c.setCMYK(new JDFCMYKColor(0, 1, 0, 0));
                }
                if (i == 2)
                {
                    c.setCMYK(new JDFCMYKColor(0, 0, 1, 0));
                }
                if (i == 3)
                {
                    c.setCMYK(new JDFCMYKColor(0, 0, 0, 1));
                }
            }
            cc.setProcessColorModel("DeviceCMYK");
            if (nCols[0] != nCols[1])
            {
                for (int ii = 0; ii < 2; ii++)
                {
                    JDFColorantControl ccP   = (JDFColorantControl)cc.addPartition(EnumPartIDKey.Side, ii == 0 ? "Front" : "Back");
                    VString            colsP = new VString();
                    for (int iii = 0; iii < nCols[ii]; iii++)
                    {
                        colsP.Add(cols.stringAt(iii));
                    }
                    JDFSeparationList co = ccP.getCreateColorantOrder();
                    co.setSeparations(colsP);
                }
            }
            else
            {
                JDFSeparationList co = cc.getCreateColorantOrder();
                co.setSeparations(cols);
            }
        }
コード例 #2
0
 //         ---------------------------------------------------------------------
 //        Methods for Attribute URLSchemes
 //        ---------------------------------------------------------------------
 ///
 ///          <summary> * (36) set attribute URLSchemes </summary>
 ///          * <param name="value">: the value to set the attribute to </param>
 ///
 public virtual void setURLSchemes(VString @value)
 {
     setAttribute(AttributeName.URLSCHEMES, @value, null);
 }
コード例 #3
0
 ///
 ///	 <summary> * SetRange
 ///	 *  </summary>
 ///	 * <param name="VString"> s - the vector of strings to set Range to </param>
 ///
 public virtual void setOfferRange(VString s)
 {
     setRangeOfferRange(ElementName.OFFERRANGE, s);
 }
コード例 #4
0
        // ************************************************************************
        // * Attribute getter / setter
        // * ************************************************************************
        //

        //         ---------------------------------------------------------------------
        //        Methods for Attribute ValueList
        //        ---------------------------------------------------------------------
        ///
        ///          <summary> * (36) set attribute ValueList </summary>
        ///          * <param name="value">: the value to set the attribute to </param>
        ///
        public virtual void setValueList(VString @value)
        {
            setAttribute(AttributeName.VALUELIST, @value, null);
        }
コード例 #5
0
 //         ---------------------------------------------------------------------
 //        Methods for Attribute Types
 //        ---------------------------------------------------------------------
 ///
 ///          <summary> * (36) set attribute Types </summary>
 ///          * <param name="value">: the value to set the attribute to </param>
 ///
 public virtual void setTypes(VString @value)
 {
     setAttribute(AttributeName.TYPES, @value, null);
 }
コード例 #6
0
 //         ---------------------------------------------------------------------
 //        Methods for Attribute SignalTypes
 //        ---------------------------------------------------------------------
 ///
 ///          <summary> * (36) set attribute SignalTypes </summary>
 ///          * <param name="value">: the value to set the attribute to </param>
 ///
 public virtual void setSignalTypes(VString @value)
 {
     setAttribute(AttributeName.SIGNALTYPES, @value, null);
 }
コード例 #7
0
ファイル: JDFAutoGangQuFilter.cs プロジェクト: cip4/JDFLibNet
        // ************************************************************************
        // * Attribute getter / setter
        // * ************************************************************************
        //

        //         ---------------------------------------------------------------------
        //        Methods for Attribute GangNames
        //        ---------------------------------------------------------------------
        ///
        ///          <summary> * (36) set attribute GangNames </summary>
        ///          * <param name="value">: the value to set the attribute to </param>
        ///
        public virtual void setGangNames(VString @value)
        {
            setAttribute(AttributeName.GANGNAMES, @value, null);
        }