예제 #1
0
        /// <summary>
        /// Returns the drawing color of the given atom. An atom is colored as
        /// highlighted if highlighted. The atom is color marked if in a
        /// substructure. If not, the color from the CDK2DAtomColor is used (if
        /// selected). Otherwise, the atom is colored black.
        /// </summary>
        protected internal virtual Color GetAtomColor(IAtom atom, RendererModel model)
        {
            var atomColor = model.GetAtomColor();

            if (model.GetAtomColorByType())
            {
                atomColor = model.GetAtomColorer().GetAtomColor(atom);
            }
            return(atomColor);
        }