public override void setUp() { // TODO Auto-generated method stub base.setUp(); JDFDoc doc = new JDFDoc("JDF"); JDFNode n = doc.getJDFRoot(); n.setType(EnumType.ColorSpaceConversion); cp = (JDFColorPool)n.addResource(ElementName.COLORPOOL, null); }
public override void setUp() { base.setUp(); JDFElement.setLongID(false); d = new JDFDoc(ElementName.JDF); elem = d.getJDFRoot(); JDFResourcePool rpool = elem.appendResourcePool(); colControl = (JDFColorantControl)rpool.appendResource(ElementName.COLORANTCONTROL, EnumResourceClass.Parameter, null); colControl.setProcessColorModel("DeviceCMYK"); colControl.setResStatus(EnumResStatus.Available, true); colParams = colControl.appendColorantParams(); colPool = colControl.appendColorPool(); colPool.makeRootResource(null, null, true); }
/// /// <summary> * always reuse a colorpool </summary> /// public override JDFColorPool getCreateColorPool() { JDFColorPool cp = getColorPool(); return(cp == null?base.getCreateColorPool() : cp); }