public void PaintLine(Graphics g, IPlotArea layer) { if (IsAxisLineEnabled) { _axisLineStyle.Paint(g, layer, _cachedAxisInfo, _customTickSpacing); } }
public void Paint(Graphics g, XYPlotLayer layer) { // update the logical values of the physical axes before if (_styleID.UsePhysicalValueOtherFirst) { // then update the logical value of this identifier double logicalValue = layer.Scales(_styleID.AxisNumberOtherFirst).PhysicalVariantToNormal(_styleID.PhysicalValueOtherFirst); _styleID.LogicalValueOtherFirst = logicalValue; } if (_styleID.UsePhysicalValueOtherSecond) { // then update the logical value of this identifier double logicalValue = layer.Scales(_styleID.AxisNumberOtherSecond).PhysicalVariantToNormal(_styleID.PhysicalValueOtherSecond); _styleID.LogicalValueOtherSecond = logicalValue; } int axisnumber = _styleID.ParallelAxisNumber; CSAxisInformation styleinfo = layer.CoordinateSystem.GetAxisStyleInformation(_styleID); _cachedAxisInfo = styleinfo; if (ShowAxisLine) { _axisLineStyle.Paint(g, layer, styleinfo); } if (ShowMajorLabels) { this._majorLabelStyle.Paint(g, layer, styleinfo, _axisLineStyle, false); } if (ShowMinorLabels) { this._minorLabelStyle.Paint(g, layer, styleinfo, _axisLineStyle, true); } if (ShowTitle) { _axisTitle.Paint(g, layer); } }