예제 #1
0
        public virtual void testSetTolerance()
        {
            JDFDoc d = new JDFDoc(ElementName.XYPAIREVALUATION);
            JDFXYPairEvaluation ie = (JDFXYPairEvaluation)d.getRoot();

            ie.setTolerance(new JDFXYPair(1, 1));
            Assert.AreEqual("1 1", ie.getTolerance().ToString());
            ie.setValueList(new JDFXYPair(1.5, 1.5));
            ie.appendBasicPreflightTest("foo");
            Assert.IsTrue(ie.fitsMap(new JDFAttributeMap("foo", "1.2 1.6")));
        }
예제 #2
0
        protected internal virtual void appendResolutionAction()
        {
            {
                JDFAction a = aPool.appendActionTest(EnumTerm.XYPairEvaluation, true);
                a.setSeverity(EnumSeverity.Warning);
                JDFXYPairEvaluation resolution = (JDFXYPairEvaluation)a.getTestTerm();
                resolution.appendBasicPreflightTest("EffectiveResolution");
                resolution.setValueList(new JDFXYPairRangeList(new JDFXYPairRange(new JDFXYPair(0, 0), new JDFXYPair(300, 300))));

                a.setDescriptiveName("Warn when effective resolution<300 dpi");
            }
        }
예제 #3
0
        protected internal virtual void appendResolutionActionBitMap()
        {
            {
                JDFAction a = aPool.appendActionSetTest(EnumTerm.XYPairEvaluation, EnumTerm.IntegerEvaluation, true);
                a.setSeverity(EnumSeverity.Warning);
                JDFXYPairEvaluation resolution = (JDFXYPairEvaluation)a.getTestTerm();
                resolution.appendBasicPreflightTest("EffectiveResolution");
                resolution.setValueList(new JDFXYPairRangeList(new JDFXYPairRange(new JDFXYPair(0, 0), new JDFXYPair(1200, 1200))));
                JDFEvaluation setEval = (JDFEvaluation)a.getPreflightActionSetTerm();
                setEval.appendBasicPreflightTest("BitsPerSample");

                a.setDescriptiveName("Warn when effective resolution<1200 dpi");
            }
        }