internal SLTextAxis(List <System.Drawing.Color> ThemeColors, bool Date1904, bool IsStylish, bool ThrowExceptionsIfAny)
            : base(ThemeColors, IsStylish, ThrowExceptionsIfAny)
        {
            this.Date1904 = Date1904;

            this.AxisType    = SLAxisType.Category;
            this.AutoLabeled = true;

            this.iTickLabelSkip = 1;
            this.iTickMarkSkip  = 1;
            this.iLabelOffset   = 100;

            this.ValueMajorUnit        = null;
            this.ValueMinorUnit        = null;
            this.BuiltInUnitValues     = null;
            this.ShowDisplayUnitsLabel = false;

            this.BaseUnit       = null;
            this.iMajorUnit     = null;
            this.vMajorTimeUnit = C.TimeUnitValues.Days;
            this.iMinorUnit     = null;
            this.vMinorTimeUnit = C.TimeUnitValues.Days;

            this.CrossBetween   = C.CrossBetweenValues.Between;
            this.LabelAlignment = C.LabelAlignmentValues.Center;

            // it used to be true. I have no idea what this does...
            this.NoMultiLevelLabels = false;

            if (IsStylish)
            {
                this.ShapeProperties.Fill.SetNoFill();
                this.ShapeProperties.Outline.Width            = 0.75m;
                this.ShapeProperties.Outline.CapType          = A.LineCapValues.Flat;
                this.ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single;
                this.ShapeProperties.Outline.Alignment        = A.PenAlignmentValues.Center;
                this.ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0);
                this.ShapeProperties.Outline.JoinType = Drawing.SLLineJoinValues.Round;
            }
        }
        internal SLTextAxis(List<System.Drawing.Color> ThemeColors, bool Date1904, bool IsStylish = false)
            : base(ThemeColors, IsStylish)
        {
            this.Date1904 = Date1904;

            this.AxisType = SLAxisType.Category;
            this.AutoLabeled = true;

            this.iTickLabelSkip = 1;
            this.iTickMarkSkip = 1;
            this.iLabelOffset = 100;

            this.ValueMajorUnit = null;
            this.ValueMinorUnit = null;
            this.BuiltInUnitValues = null;
            this.ShowDisplayUnitsLabel = false;

            this.BaseUnit = null;
            this.iMajorUnit = null;
            this.vMajorTimeUnit = C.TimeUnitValues.Days;
            this.iMinorUnit = null;
            this.vMinorTimeUnit = C.TimeUnitValues.Days;

            this.CrossBetween = C.CrossBetweenValues.Between;
            this.LabelAlignment = C.LabelAlignmentValues.Center;

            // it used to be true. I have no idea what this does...
            this.NoMultiLevelLabels = false;

            if (IsStylish)
            {
                this.ShapeProperties.Fill.SetNoFill();
                this.ShapeProperties.Outline.Width = 0.75m;
                this.ShapeProperties.Outline.CapType = A.LineCapValues.Flat;
                this.ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single;
                this.ShapeProperties.Outline.Alignment = A.PenAlignmentValues.Center;
                this.ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0);
                this.ShapeProperties.Outline.JoinType = Drawing.SLLineJoinValues.Round;
            }
        }
Beispiel #3
0
        internal SLTextAxis(List <Color> ThemeColors, bool Date1904, bool IsStylish = false)
            : base(ThemeColors, IsStylish)
        {
            this.Date1904 = Date1904;

            AxisType    = SLAxisType.Category;
            AutoLabeled = true;

            iTickLabelSkip = 1;
            iTickMarkSkip  = 1;
            iLabelOffset   = 100;

            ValueMajorUnit        = null;
            ValueMinorUnit        = null;
            BuiltInUnitValues     = null;
            ShowDisplayUnitsLabel = false;

            BaseUnit       = null;
            iMajorUnit     = null;
            vMajorTimeUnit = C.TimeUnitValues.Days;
            iMinorUnit     = null;
            vMinorTimeUnit = C.TimeUnitValues.Days;

            CrossBetween   = C.CrossBetweenValues.Between;
            LabelAlignment = C.LabelAlignmentValues.Center;

            // it used to be true. I have no idea what this does...
            NoMultiLevelLabels = false;

            if (IsStylish)
            {
                ShapeProperties.Fill.SetNoFill();
                ShapeProperties.Outline.Width            = 0.75m;
                ShapeProperties.Outline.CapType          = A.LineCapValues.Flat;
                ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single;
                ShapeProperties.Outline.Alignment        = A.PenAlignmentValues.Center;
                ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0);
                ShapeProperties.Outline.JoinType = SLLineJoinValues.Round;
            }
        }
 /// <summary>
 /// Set the minor unit for date axes.
 /// </summary>
 /// <param name="MinorUnit">A positive value. Suggested range is 1 to 999999999 (both inclusive).</param>
 /// <param name="MinorTimeUnit">The time unit.</param>
 public void SetDateMinorUnit(int MinorUnit, C.TimeUnitValues MinorTimeUnit)
 {
     this.iMinorUnit = MinorUnit;
     this.vMinorTimeUnit = MinorTimeUnit;
 }
 /// <summary>
 /// Set the major unit for date axes.
 /// </summary>
 /// <param name="MajorUnit">A positive value. Suggested range is 1 to 999999999 (both inclusive).</param>
 /// <param name="MajorTimeUnit">The time unit.</param>
 public void SetDateMajorUnit(int MajorUnit, C.TimeUnitValues MajorTimeUnit)
 {
     this.iMajorUnit = MajorUnit;
     this.vMajorTimeUnit = MajorTimeUnit;
 }
 /// <summary>
 /// Set the minor unit for date axes to be automatic.
 /// </summary>
 public void SetAutomaticDateMinorUnit()
 {
     this.iMinorUnit = null;
     this.vMinorTimeUnit = C.TimeUnitValues.Days;
 }
 /// <summary>
 /// Set the minor unit for date axes.
 /// </summary>
 /// <param name="MinorUnit">A positive value. Suggested range is 1 to 999999999 (both inclusive).</param>
 /// <param name="MinorTimeUnit">The time unit.</param>
 public void SetDateMinorUnit(int MinorUnit, C.TimeUnitValues MinorTimeUnit)
 {
     this.iMinorUnit     = MinorUnit;
     this.vMinorTimeUnit = MinorTimeUnit;
 }
 /// <summary>
 /// Set the minor unit for date axes to be automatic.
 /// </summary>
 public void SetAutomaticDateMinorUnit()
 {
     this.iMinorUnit     = null;
     this.vMinorTimeUnit = C.TimeUnitValues.Days;
 }
 /// <summary>
 /// Set the major unit for date axes.
 /// </summary>
 /// <param name="MajorUnit">A positive value. Suggested range is 1 to 999999999 (both inclusive).</param>
 /// <param name="MajorTimeUnit">The time unit.</param>
 public void SetDateMajorUnit(int MajorUnit, C.TimeUnitValues MajorTimeUnit)
 {
     this.iMajorUnit     = MajorUnit;
     this.vMajorTimeUnit = MajorTimeUnit;
 }
Beispiel #10
0
 /// <summary>
 ///     Set the minor unit for date axes.
 /// </summary>
 /// <param name="MinorUnit">A positive value. Suggested range is 1 to 999999999 (both inclusive).</param>
 /// <param name="MinorTimeUnit">The time unit.</param>
 public void SetDateMinorUnit(int MinorUnit, C.TimeUnitValues MinorTimeUnit)
 {
     iMinorUnit     = MinorUnit;
     vMinorTimeUnit = MinorTimeUnit;
 }
Beispiel #11
0
 /// <summary>
 ///     Set the major unit for date axes.
 /// </summary>
 /// <param name="MajorUnit">A positive value. Suggested range is 1 to 999999999 (both inclusive).</param>
 /// <param name="MajorTimeUnit">The time unit.</param>
 public void SetDateMajorUnit(int MajorUnit, C.TimeUnitValues MajorTimeUnit)
 {
     iMajorUnit     = MajorUnit;
     vMajorTimeUnit = MajorTimeUnit;
 }
Beispiel #12
0
 /// <summary>
 ///     Set the major unit for date axes to be automatic.
 /// </summary>
 public void SetAutomaticDateMajorUnit()
 {
     iMajorUnit     = null;
     vMajorTimeUnit = C.TimeUnitValues.Days;
 }
Beispiel #13
0
        internal SLTextAxis(List<System.Drawing.Color> ThemeColors, bool Date1904)
            : base(ThemeColors)
        {
            this.Date1904 = Date1904;

            this.AxisType = SLAxisType.Category;

            this.iTickLabelSkip = 1;
            this.iTickMarkSkip = 1;
            this.iLabelOffset = 100;

            this.ValueMajorUnit = null;
            this.ValueMinorUnit = null;
            this.BuiltInUnitValues = null;
            this.ShowDisplayUnitsLabel = false;

            this.BaseUnit = null;
            this.iMajorUnit = null;
            this.vMajorTimeUnit = C.TimeUnitValues.Days;
            this.iMinorUnit = null;
            this.vMinorTimeUnit = C.TimeUnitValues.Days;

            this.CrossBetween = C.CrossBetweenValues.Between;
            this.LabelAlignment = C.LabelAlignmentValues.Center;
        }