Hidistro.UI.Common.Controls/CustomChart.cs

(开头部分) 31KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace Hidistro.UI.Common.Controls
{
    using System;
    using System.Collections;
    using System.Drawing;
    using System.Drawing.Drawing2D;
    using System.Drawing.Imaging;
    using System.Globalization;
    using System.Reflection;

    public class CustomChart
    {
        public class BarGraph : CustomChart.Chart
        {
            private Color _backColor;
            private float _barWidth;
            private float _bottomBuffer;
            private bool _displayBarData;
            private bool _displayLegend;
            private Color _fontColor;
            private string _fontFamily;
            private float _graphHeight;
            private const float _graphLegendSpacer = 15f;
            private float _graphWidth;
            private const int _labelFontSize = 7;
            private const int _legendFontSize = 9;
            private const float _legendRectangleSize = 10f;
            private float _legendWidth;
            private string _longestLabel;
            private string _longestTickValue;
            private float _maxLabelWidth;
            private float _maxTickValueWidth;
            private float _maxValue;
            private float _scaleFactor;
            private float _spaceBtwBars;
            private const float _spacer = 5f;
            private float _topBuffer;
            private float _totalHeight;
            private float _totalWidth;
            private float _xOrigin;
            private string _yLabel;
            private float _yOrigin;
            private int _yTickCount;
            private float _yTickValue;

            public BarGraph()
            {
                this._longestTickValue = string.Empty;
                this._maxValue = 0f;
                this._longestLabel = string.Empty;
                this._maxLabelWidth = 0f;
                this.AssignDefaultSettings();
            }

            public BarGraph(Color bgColor)
            {
                this._longestTickValue = string.Empty;
                this._maxValue = 0f;
                this._longestLabel = string.Empty;
                this._maxLabelWidth = 0f;
后面还有 801 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。