예제 #1
0
        /// <summary>
        /// Build the correct string for marker parameters
        /// </summary>
        /// <param name="size"></param>
        /// <param name="color"></param>
        /// <param name="label"></param>
        /// <returns></returns>
        private string GetMarkerParams(mSize size, mColor color, string label)
        {
            string marker;

            marker = size.ToString().ToLower() + "," + color.ToString().ToLower() + "," + label;
            return(marker);
        }
예제 #2
0
        /// <summary>
        /// Build the correct string for marker parameters
        /// </summary>
        /// <returns></returns>
        /// <remarks>
        /// (Some marker sizes such as 'tiny' won't accept character values,
        ///     this function makes sure they'll be rendered even if the inputed parameters are wrong
        /// </remarks>
        private static string GetMarkerParams(mSize size, mColor color, string character)
        {
            string marker;

            // check if can render character
            if ((size == mSize.Normal) || (size == mSize.Mid))
            {
                if (size == mSize.Normal)
                {
                    marker = color.ToString().ToLower() + character;
                }
                else
                {
                    marker = size.ToString().ToLower() + color.ToString().ToLower() + character;
                }
            }
            else
            {
                // just render size and color - character not supported
                marker = size.ToString().ToLower() + color.ToString().ToLower();
            }

            return(marker);
        }
예제 #3
0
        /// <summary>
        /// Build the correct string for marker parameters
        /// </summary>
        /// <returns></returns>
        /// <remarks>
        /// (Some marker sizes such as 'tiny' won't accept character values, 
        ///     this function makes sure they'll be rendered even if the inputed parameters are wrong
        /// </remarks>
        private static string GetMarkerParams(mSize size, mColor color, string character)
        {
            string marker;

            // check if can render character
            if ((size == mSize.Normal) || (size == mSize.Mid))
            {
                if (size == mSize.Normal)
                {
                    marker = color.ToString().ToLower() + character;
                }
                else
                {
                    marker = size.ToString().ToLower() + color.ToString().ToLower() + character;
                }
            }
            else
            {
                // just render size and color - character not supported
                marker = size.ToString().ToLower() + color.ToString().ToLower();
            }

            return marker;
        }