2 writes to _axis
System.Windows.Forms.DataVisualization (2)
Common\General\Label.cs (2)
1111
_axis
= axis;
2530
set {
_axis
= value; }
290 references to _axis
System.Windows.Forms.DataVisualization (290)
Common\General\Label.cs (290)
1131
if (!
_axis
.LabelStyle.Enabled)
1147
CircularAxisLabelsStyle labelsStyle = this.
_axis
.ChartArea.GetCircularAxisLabelsStyle();
1150
ArrayList circularAxes = this.
_axis
.ChartArea.GetCircularAxisList();
1162
this.
_axis
.ChartArea.circularCenter.X,
1163
this.
_axis
.ChartArea.PlotAreaPosition.Y);
1166
labelRelativePosition.Y -=
_axis
.markSize + Axis.elementSpacing;
1173
ICircularChartType chartType = this.
_axis
.ChartArea.GetCircularChartType();
1176
if (!double.IsNaN(this.
_axis
.ChartArea.AxisX.Crossing))
1178
labelAngle += (float)this.
_axis
.ChartArea.AxisX.Crossing;
1190
newMatrix.RotateAt(labelAngle, graph.GetAbsolutePoint(this.
_axis
.ChartArea.circularCenter));
1262
(
_axis
.autoLabelFont == null) ? _font :
_axis
.autoLabelFont,
1269
if (this.
_axis
.Common.ProcessModeRegions)
1271
SizeF size = graph.MeasureString(circAxis.Title.Replace("\\n", "\n"), (
_axis
.autoLabelFont == null) ? _font :
_axis
.autoLabelFont);
1289
this.
_axis
.Common.HotRegionsList.AddHotRegion(
1370
if (!
_axis
.LabelStyle.Enabled)
1373
if (Double.IsNaN(
_axis
.ViewMinimum) || Double.IsNaN(
_axis
.ViewMaximum))
1378
if (this.
_axis
.ChartArea.Area3DStyle.Enable3D && !this.
_axis
.ChartArea.chartAreaIsCurcular)
1385
RectangleF rectLabels =
_axis
.ChartArea.Position.ToRectangleF();
1386
float labelSize =
_axis
.labelSize;
1388
if (
_axis
.AxisPosition == AxisPosition.Left)
1391
if (
_axis
.GetIsMarksNextToAxis())
1392
rectLabels.X = (float)
_axis
.GetAxisPosition();
1394
rectLabels.X =
_axis
.PlotAreaPosition.X;
1396
rectLabels.X -= labelSize +
_axis
.markSize;
1402
else if (
_axis
.AxisPosition == AxisPosition.Right)
1405
if (
_axis
.GetIsMarksNextToAxis())
1406
rectLabels.X = (float)
_axis
.GetAxisPosition();
1408
rectLabels.X =
_axis
.PlotAreaPosition.Right;
1409
rectLabels.X +=
_axis
.markSize;
1415
else if (
_axis
.AxisPosition == AxisPosition.Top)
1418
if (
_axis
.GetIsMarksNextToAxis())
1419
rectLabels.Y = (float)
_axis
.GetAxisPosition();
1421
rectLabels.Y =
_axis
.PlotAreaPosition.Y;
1422
rectLabels.Y -= labelSize +
_axis
.markSize;
1428
else if (
_axis
.AxisPosition == AxisPosition.Bottom)
1431
if (
_axis
.GetIsMarksNextToAxis())
1432
rectLabels.Y = (float)
_axis
.GetAxisPosition();
1434
rectLabels.Y =
_axis
.PlotAreaPosition.Bottom;
1435
rectLabels.Y +=
_axis
.markSize;
1444
if (boundaryRect != RectangleF.Empty &&
_axis
.totlaGroupingLabelsSize > 0)
1446
if (
_axis
.AxisPosition == AxisPosition.Left)
1448
boundaryRect.X +=
_axis
.totlaGroupingLabelsSize;
1449
boundaryRect.Width -=
_axis
.totlaGroupingLabelsSize;
1451
else if (
_axis
.AxisPosition == AxisPosition.Right)
1453
boundaryRect.Width -=
_axis
.totlaGroupingLabelsSize;
1455
else if (
_axis
.AxisPosition == AxisPosition.Top)
1457
boundaryRect.Y +=
_axis
.totlaGroupingLabelsSize;
1458
boundaryRect.Height -=
_axis
.totlaGroupingLabelsSize;
1460
else if (
_axis
.AxisPosition == AxisPosition.Bottom)
1462
boundaryRect.Height -=
_axis
.totlaGroupingLabelsSize;
1474
foreach (CustomLabel label in this.
_axis
.CustomLabels)
1488
decimal viewMin = (decimal)
_axis
.ViewMinimum;
1489
decimal viewMax = (decimal)
_axis
.ViewMaximum;
1496
if ((decimal)label.FromPosition < (decimal)
_axis
.Minimum)
1503
if ((decimal)label.ToPosition > (decimal)
_axis
.Maximum)
1518
if ((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1))
1525
if (
_axis
.axisType == AxisName.X ||
_axis
.axisType == AxisName.X2)
1527
List<string> seriesArray =
_axis
.ChartArea.GetXAxesSeries((
_axis
.axisType == AxisName.X) ? AxisType.Primary : AxisType.Secondary,
_axis
.SubAxisName);
1530
axisSeries =
_axis
.Common.DataManager.Series[seriesArray[0]];
1540
double currentPosition =
_axis
.Minimum;
1541
while (currentPosition <
_axis
.Maximum)
1548
currentPosition += ChartHelper.GetIntervalSize(currentPosition,
_axis
.LabelStyle.GetInterval(),
_axis
.LabelStyle.GetIntervalType(),
1569
if (
_axis
.ScaleSegments.Count > 0)
1571
AxisScaleSegment scaleSegment =
_axis
.ScaleSegments.FindScaleSegmentForAxisValue(middlePoint);
1572
_axis
.ScaleSegments.AllowOutOfScaleValues = true;
1573
_axis
.ScaleSegments.EnforceSegment(scaleSegment);
1589
labelFromRelative =
_axis
.GetLinearPosition(middlePoint) - 50.0;
1596
if (label.ToPosition <=
_axis
.ViewMinimum || label.FromPosition >=
_axis
.ViewMaximum)
1603
_axis
.ScaleView.IsZoomed)
1605
if (label.FromPosition <
_axis
.ViewMinimum)
1608
labelFrom =
_axis
.ViewMinimum;
1610
if (label.ToPosition >
_axis
.ViewMaximum)
1613
labelTo =
_axis
.ViewMaximum;
1624
if (
_axis
.AxisPosition == AxisPosition.Left)
1626
rect.X = rectLabels.Right -
_axis
.unRotatedLabelSize;
1627
rect.Width =
_axis
.unRotatedLabelSize;
1630
if ((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1))
1639
else if (
_axis
.AxisPosition == AxisPosition.Right)
1641
rect.Width =
_axis
.unRotatedLabelSize;
1644
if ((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1))
1653
else if (
_axis
.AxisPosition == AxisPosition.Top)
1655
rect.Y = rectLabels.Bottom -
_axis
.unRotatedLabelSize;
1656
rect.Height =
_axis
.unRotatedLabelSize;
1659
if ((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1))
1668
else if (
_axis
.AxisPosition == AxisPosition.Bottom)
1670
rect.Height =
_axis
.unRotatedLabelSize;
1673
if ((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1))
1690
if (
_axis
.AxisPosition == AxisPosition.Left)
1692
rect.X +=
_axis
.totlaGroupingLabelsSizeAdjustment;
1693
for (int index =
_axis
.groupingLabelSizes.Length; index > label.RowIndex; index--)
1695
rect.X +=
_axis
.groupingLabelSizes[index - 1];
1697
rect.Width =
_axis
.groupingLabelSizes[label.RowIndex - 1];
1699
else if (
_axis
.AxisPosition == AxisPosition.Right)
1701
rect.X = rect.Right -
_axis
.totlaGroupingLabelsSize -
_axis
.totlaGroupingLabelsSizeAdjustment;// + Axis.elementSpacing * 0.25f;
1704
rect.X +=
_axis
.groupingLabelSizes[index - 1];
1706
rect.Width =
_axis
.groupingLabelSizes[label.RowIndex - 1];
1708
else if (
_axis
.AxisPosition == AxisPosition.Top)
1710
rect.Y +=
_axis
.totlaGroupingLabelsSizeAdjustment;
1711
for (int index =
_axis
.groupingLabelSizes.Length; index > label.RowIndex; index--)
1713
rect.Y +=
_axis
.groupingLabelSizes[index - 1];
1715
rect.Height =
_axis
.groupingLabelSizes[label.RowIndex - 1];
1717
if (
_axis
.AxisPosition == AxisPosition.Bottom)
1719
rect.Y = rect.Bottom -
_axis
.totlaGroupingLabelsSize -
_axis
.totlaGroupingLabelsSizeAdjustment;
1722
rect.Y +=
_axis
.groupingLabelSizes[index - 1];
1724
rect.Height =
_axis
.groupingLabelSizes[label.RowIndex - 1];
1735
double fromPosition =
_axis
.GetLinearPosition(labelFrom);
1736
double toPosition =
_axis
.GetLinearPosition(labelTo);
1744
if (
_axis
.AxisPosition == AxisPosition.Top ||
_axis
.AxisPosition == AxisPosition.Bottom)
1751
((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1)))
1764
((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1)))
1774
graph.DrawLabelStringRel(
_axis
,
1781
(
_axis
.autoLabelFont == null) ? _font :
_axis
.autoLabelFont,
1785
(
_axis
.autoLabelAngle < -90) ? angle :
_axis
.autoLabelAngle,
1793
_axis
.ScaleSegments.EnforceSegment(null);
1794
_axis
.ScaleSegments.AllowOutOfScaleValues = false;
1975
AxisPosition labelsPosition = GetLabelsPosition(
_axis
);
1981
float labelsZPosition =
_axis
.GetMarksZPosition(out axisOnEdge);
1985
if (this.
_axis
.AxisPosition == AxisPosition.Top &&
1986
!this.
_axis
.ChartArea.ShouldDrawOnSurface(SurfaceNames.Top, backElements, false))
1990
if (this.
_axis
.AxisPosition == AxisPosition.Left &&
1991
!this.
_axis
.ChartArea.ShouldDrawOnSurface(SurfaceNames.Left, backElements, false))
1995
if (this.
_axis
.AxisPosition == AxisPosition.Right &&
1996
!this.
_axis
.ChartArea.ShouldDrawOnSurface(SurfaceNames.Right, backElements, false))
2001
if (adjustForWallWidth && this.
_axis
.ChartArea.Area3DStyle.WallWidth > 0)
2003
if (this.
_axis
.MajorTickMark.TickMarkStyle == TickMarkStyle.InsideArea)
2005
labelsZPosition -= this.
_axis
.ChartArea.areaSceneWallWidth.Width;
2007
else if (this.
_axis
.MajorTickMark.TickMarkStyle == TickMarkStyle.OutsideArea)
2009
labelsZPosition -= this.
_axis
.MajorTickMark.Size + this.
_axis
.ChartArea.areaSceneWallWidth.Width;
2011
else if (this.
_axis
.MajorTickMark.TickMarkStyle == TickMarkStyle.AcrossAxis)
2013
labelsZPosition -= this.
_axis
.MajorTickMark.Size / 2f + this.
_axis
.ChartArea.areaSceneWallWidth.Width;
2020
bool labelsInsidePlotArea = (this.
_axis
.GetIsMarksNextToAxis() && !axisOnEdge);
2030
RectangleF rectLabels = this.GetAllLabelsRect(this.
_axis
.ChartArea, this.
_axis
.AxisPosition, format);
2037
if (boundaryRect != RectangleF.Empty &&
_axis
.totlaGroupingLabelsSize > 0)
2039
if (this.
_axis
.AxisPosition == AxisPosition.Left)
2041
boundaryRect.X +=
_axis
.totlaGroupingLabelsSize;
2042
boundaryRect.Width -=
_axis
.totlaGroupingLabelsSize;
2044
else if (this.
_axis
.AxisPosition == AxisPosition.Right)
2046
boundaryRect.Width -=
_axis
.totlaGroupingLabelsSize;
2048
else if (this.
_axis
.AxisPosition == AxisPosition.Top)
2050
boundaryRect.Y +=
_axis
.totlaGroupingLabelsSize;
2051
boundaryRect.Height -=
_axis
.totlaGroupingLabelsSize;
2053
else if (this.
_axis
.AxisPosition == AxisPosition.Bottom)
2055
boundaryRect.Height -=
_axis
.totlaGroupingLabelsSize;
2065
for (int selectionRow = 0; selectionRow <= this.
_axis
.GetGroupLabelLevelCount(); selectionRow++)
2071
foreach (CustomLabel label in this.
_axis
.CustomLabels)
2087
if ((decimal)middlePoint < (decimal)
_axis
.ViewMinimum ||
2088
(decimal)middlePoint > (decimal)
_axis
.ViewMaximum)
2096
if (label.ToPosition <=
_axis
.ViewMinimum || label.FromPosition >=
_axis
.ViewMaximum)
2102
if (
_axis
.ScaleView.IsZoomed)
2104
if (label.FromPosition <
_axis
.ViewMinimum)
2107
labelFrom =
_axis
.ViewMinimum;
2109
if (label.ToPosition >
_axis
.ViewMaximum)
2112
labelTo =
_axis
.ViewMaximum;
2124
if (this.
_axis
.AxisPosition == AxisPosition.Left)
2126
if (!this.
_axis
.GetIsMarksNextToAxis())
2128
rect.X = rectLabels.Right -
_axis
.unRotatedLabelSize;
2129
rect.Width =
_axis
.unRotatedLabelSize;
2133
if ((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1))
2142
else if (this.
_axis
.AxisPosition == AxisPosition.Right)
2144
if (!this.
_axis
.GetIsMarksNextToAxis())
2146
rect.Width =
_axis
.unRotatedLabelSize;
2150
if ((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1))
2159
else if (this.
_axis
.AxisPosition == AxisPosition.Top)
2161
if (!this.
_axis
.GetIsMarksNextToAxis())
2163
rect.Y = rectLabels.Bottom -
_axis
.unRotatedLabelSize;
2164
rect.Height =
_axis
.unRotatedLabelSize;
2168
if ((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1))
2177
else if (this.
_axis
.AxisPosition == AxisPosition.Bottom)
2179
if (!this.
_axis
.GetIsMarksNextToAxis())
2181
rect.Height =
_axis
.unRotatedLabelSize;
2185
if ((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1))
2204
if (labelsPosition != this.
_axis
.AxisPosition)
2209
if (
_axis
.AxisPosition == AxisPosition.Left)
2211
rect.X +=
_axis
.totlaGroupingLabelsSizeAdjustment;
2212
for (int index =
_axis
.groupingLabelSizes.Length; index > label.RowIndex; index--)
2214
rect.X +=
_axis
.groupingLabelSizes[index - 1];
2216
rect.Width =
_axis
.groupingLabelSizes[label.RowIndex - 1];
2218
else if (
_axis
.AxisPosition == AxisPosition.Right)
2220
rect.X = rect.Right -
_axis
.totlaGroupingLabelsSize -
_axis
.totlaGroupingLabelsSizeAdjustment;// + Axis.elementSpacing * 0.25f;
2223
rect.X +=
_axis
.groupingLabelSizes[index - 1];
2225
rect.Width =
_axis
.groupingLabelSizes[label.RowIndex - 1];
2227
else if (
_axis
.AxisPosition == AxisPosition.Top)
2229
rect.Y +=
_axis
.totlaGroupingLabelsSizeAdjustment;
2230
for (int index =
_axis
.groupingLabelSizes.Length; index > label.RowIndex; index--)
2232
rect.Y +=
_axis
.groupingLabelSizes[index - 1];
2234
rect.Height =
_axis
.groupingLabelSizes[label.RowIndex - 1];
2236
if (
_axis
.AxisPosition == AxisPosition.Bottom)
2238
rect.Y = rect.Bottom -
_axis
.totlaGroupingLabelsSize -
_axis
.totlaGroupingLabelsSizeAdjustment;
2241
rect.Y +=
_axis
.groupingLabelSizes[index - 1];
2243
rect.Height =
_axis
.groupingLabelSizes[label.RowIndex - 1];
2256
double fromPosition =
_axis
.GetLinearPosition(labelFrom);
2257
double toPosition =
_axis
.GetLinearPosition(labelTo);
2258
if (this.
_axis
.AxisPosition == AxisPosition.Top || this.
_axis
.AxisPosition == AxisPosition.Bottom)
2269
((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1)))
2286
((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1)))
2300
if (this.
_axis
.AxisPosition == AxisPosition.Left)
2305
this.
_axis
.ChartArea.matrix3D.TransformPoints(rectPoints);
2310
else if (this.
_axis
.AxisPosition == AxisPosition.Right)
2315
this.
_axis
.ChartArea.matrix3D.TransformPoints(rectPoints);
2321
else if (this.
_axis
.AxisPosition == AxisPosition.Top)
2327
this.
_axis
.ChartArea.matrix3D.TransformPoints(rectPoints);
2337
RectangleF rightLabelsRect = this.GetAllLabelsRect(this.
_axis
.ChartArea, labelsPosition, format);
2345
RectangleF rightLabelsRect = this.GetAllLabelsRect(this.
_axis
.ChartArea, labelsPosition, format);
2352
else if (this.
_axis
.AxisPosition == AxisPosition.Bottom)
2358
this.
_axis
.ChartArea.matrix3D.TransformPoints(rectPoints);
2369
RectangleF rightLabelsRect = this.GetAllLabelsRect(this.
_axis
.ChartArea, labelsPosition, format);
2376
if (this.
_axis
.autoLabelAngle == 0)
2378
rect.Y += this.
_axis
.markSize / 4f;
2383
RectangleF rightLabelsRect = this.GetAllLabelsRect(this.
_axis
.ChartArea, labelsPosition, format);
2390
if (this.
_axis
.autoLabelAngle == 0)
2392
rect.Y += this.
_axis
.markSize / 4f;
2399
foreach (Axis curAxis in this.
_axis
.ChartArea.Axes)
2411
int labelsFontAngle = (
_axis
.autoLabelAngle < -90) ? angle :
_axis
.autoLabelAngle;
2412
if (labelsPosition != this.
_axis
.AxisPosition)
2414
if ((this.
_axis
.AxisPosition == AxisPosition.Top || this.
_axis
.AxisPosition == AxisPosition.Bottom) &&
2419
else if (this.
_axis
.AxisPosition == AxisPosition.Bottom)
2430
else if (this.
_axis
.AxisPosition == AxisPosition.Top)
2455
_axis
.groupingLabelSizes != null &&
2456
_axis
.groupingLabelSizes.Length > 0 &&
2457
this.
_axis
.AxisPosition == AxisPosition.Bottom &&
2459
!((this.
_axis
.autoLabelOffset == -1) ? this.IsStaggered : (this.
_axis
.autoLabelOffset == 1)))
2465
labelPositionPoints[0] = new Point3D(initialRect.X, initialRect.Bottom -
_axis
.totlaGroupingLabelsSize -
_axis
.totlaGroupingLabelsSizeAdjustment, labelsZPosition);
2466
this.
_axis
.ChartArea.matrix3D.TransformPoints(labelPositionPoints);
2499
(
_axis
.autoLabelFont == null) ? _font :
_axis
.autoLabelFont,
2588
if(double.IsNaN(intervalOffset) && this.
_axis
!= null)
2590
return this.
_axis
.IntervalOffset;
2628
if(intervalOffsetType == DateTimeIntervalType.NotSet && this.
_axis
!= null)
2630
return this.
_axis
.IntervalOffsetType;
2659
if (this.
_axis
!= null)
2661
this.
_axis
.tempLabelInterval = interval;
2675
if(double.IsNaN(interval) && this.
_axis
!= null)
2677
return this.
_axis
.Interval;
2706
if (this.
_axis
!= null)
2708
this.
_axis
.tempLabelIntervalType = intervalType;
2722
if(intervalType == DateTimeIntervalType.NotSet && this.
_axis
!= null)
2724
return this.
_axis
.IntervalType;
2750
if (this.
_axis
!= null && this.
_axis
.Common!=null && this.
_axis
.Common.Chart != null)
2752
if(!this.
_axis
.Common.Chart.serializing)
2754
this.
_axis
.IsLabelAutoFit = false;
2824
if(this.
_axis
!= null && this.
_axis
.Common!=null && this.
_axis
.Common.Chart != null)
2826
if (!this.
_axis
.Common.Chart.serializing)
2828
this.
_axis
.IsLabelAutoFit = false;
2865
if (this.
_axis
!= null && this.
_axis
.Common != null && this.
_axis
.Common.Chart != null)
2867
if (!this.
_axis
.Common.Chart.serializing)
2869
this.
_axis
.IsLabelAutoFit = false;