Ejemplo n.º 1
0
 /// <summary>
 /// Create a new generator for a molecule.
 /// </summary>
 /// <param name="mol">molecule</param>
 /// <param name="font">the font</param>
 /// <param name="emSize">the font size</param>
 /// <param name="model">the rendering parameters</param>
 public StandardDonutGenerator(IAtomContainer mol, Typeface font, double emSize, RendererModel model, double stroke)
 {
     this.mol               = mol;
     this.font              = font;
     this.emSize            = emSize;
     this.forceDelocalised  = model.GetForceDelocalisedBondDisplay();
     this.delocalisedDonuts = model.GetDelocalisedDonutsBondDisplay();
     this.dbSpacing         = model.GetBondSeparation();
     this.scale             = model.GetScale();
     this.stroke            = stroke;
     this.fgColor           = model.GetAtomColorer().GetAtomColor(CDK.Builder.NewAtom("C"));
 }