示例#1
0
 /// <summary>
 /// Creates a category that has the same value for both minimum and maximum
 /// </summary>
 /// <param name="value">The value to use</param>
 public Category(double value)
 {
     _range = new Range(value, value);
 }
示例#2
0
 /// <summary>
 /// Creaates a new instance of this category, and tailors the range to the specifeid values.
 /// </summary>
 /// <param name="startValue">The start value</param>
 /// <param name="endValue">The end value</param>
 public Category(double? startValue, double? endValue)
 {
     _range = new Range(startValue, endValue);
 }
示例#3
0
 /// <summary>
 /// Creates a new ColorRange using the specified color and the specified
 /// nullable double values.  A null value represents an unbounded range.
 /// </summary>
 /// <param name="color">The System.Drawing.Color to use</param>
 /// <param name="max">A double value representing the maximum (exclusive)</param>
 /// <param name="min">A double value representing the minimum value (inclusive)</param>
 public ColorRange(Color color, double? min, double? max)
 {
     _color = color;
     _range = new Range(min, max);
 }
示例#4
0
 /// <summary>
 /// Generates a color range with the specified color and range.
 /// </summary>
 /// <param name="color">The System.Drawing.Color to use for this range</param>
 /// <param name="range">The numeric bounds to use for this color.</param>
 public ColorRange(Color color, Range range)
 {
     _color = color;
     _range = range;
 }
示例#5
0
 /// <summary>
 /// Generates a color range with no limits of the specified color
 /// </summary>
 /// <param name="color">The System.Drawing.Color to use</param>
 public ColorRange(Color color)
 {
     _color = color;
     _range = new Range(null, null);
 }
示例#6
0
 /// <summary>
 /// Generates a color range with no limits and the color gray.
 /// </summary>
 public ColorRange()
 {
     _color = Color.Gray;
     _range = new Range(null, null);
 }