예제 #1
0
 /// <summary>
 /// Instantiate an Axis.
 /// </summary>
 /// <param name="format">The AxisFormat of this axis.</param>
 /// <param name="majorIncrement">How often a major increment (tick) occurs.</param>
 /// <param name="minorIncrement">How often a minor increment (tick) occurs.</param>
 /// <param name="pixelsPerIncrement">Number of pixels per increment</param>
 public AbstractScaleAxis(AxisFormat format, int majorIncrement, int minorIncrement,
                          int pixelsPerIncrement) : base(format)
 {
     Format             = format;
     MajorIncrement     = majorIncrement;
     MinorIncrement     = minorIncrement;
     PixelsPerIncrement = pixelsPerIncrement;
 }
예제 #2
0
        /// <summary>
        /// Instantiate an Axis.
        /// </summary>
        /// <param name="format">The AxisFormat of this axis.</param>
        /// <param name="minimumValue">The minimum value displayed on this axis.</param>
        /// <param name="maximumValue">The maximum value displayed on this axis.</param>
        /// <param name="majorIncrement">How often a major increment (tick) occurs.</param>
        /// <param name="minorIncrement">How often a minor increment (tick) occurs.</param>
        /// <param name="pixelsPerIncrement">Number of pixels per increment</param>
        public AbstractScaleAxis(AxisFormat format, TAxisDataType minimumValue, TAxisDataType maximumValue, int majorIncrement, int minorIncrement,
                                 int pixelsPerIncrement) : base(format)
        {
            Format             = format;
            MinimumValue       = minimumValue;
            MaximumValue       = maximumValue;
            MajorIncrement     = majorIncrement;
            MinorIncrement     = minorIncrement;
            PixelsPerIncrement = pixelsPerIncrement;

            /*string errorMessage;
             * if (AreAxisValuesValid(out errorMessage) == false)
             * {
             *  throw new ArgumentException(errorMessage);
             * }*/
        }
예제 #3
0
 public GraphChartSpecifications(Vector3 Position, Vector2 Size, string GraphChartName, float VerticalAxisTextSeperation, int VerticalAxisFontSize, AxisFormat HorizontalAxisFormat, float HorizontalAxisTextSeperation, int HorizontalAxisFontSize, double LineThickness, double PointSize, string Canvas)
 {
     this.Position                     = Position;
     this.Size                         = Size;
     this.GraphChartName               = GraphChartName;
     this.VerticalAxisTextSeperation   = VerticalAxisTextSeperation;
     this.VerticalAxisFontSize         = VerticalAxisFontSize;
     this.HorizontalAxisFormat         = HorizontalAxisFormat;
     this.HorizontalAxisTextSeperation = HorizontalAxisTextSeperation;
     this.HorizontalAxisFontSize       = HorizontalAxisFontSize;
     this.LineThickness                = LineThickness;
     this.PointSize                    = PointSize;
     this.Parent                       = null;
     this.Canvas                       = Canvas;
 }