Esempio n. 1
0
 public void Copy(Axis axis)
 {
     show             = axis.show;
     type             = axis.type;
     minMaxType       = axis.minMaxType;
     gridIndex        = axis.gridIndex;
     min              = axis.min;
     max              = axis.max;
     splitNumber      = axis.splitNumber;
     interval         = axis.interval;
     boundaryGap      = axis.boundaryGap;
     maxCache         = axis.maxCache;
     logBase          = axis.logBase;
     logBaseE         = axis.logBaseE;
     ceilRate         = axis.ceilRate;
     insertDataToHead = axis.insertDataToHead;
     axisLine.Copy(axis.axisLine);
     axisName.Copy(axis.axisName);
     axisTick.Copy(axis.axisTick);
     axisLabel.Copy(axis.axisLabel);
     splitLine.Copy(axis.splitLine);
     splitArea.Copy(axis.splitArea);
     ChartHelper.CopyList(data, axis.data);
     ChartHelper.CopyList <Sprite>(icons, axis.icons);
 }
Esempio n. 2
0
        public Axis Clone()
        {
            var axis = new Axis();

            axis.show             = show;
            axis.type             = type;
            axis.gridIndex        = 0;
            axis.minMaxType       = minMaxType;
            axis.min              = min;
            axis.max              = max;
            axis.splitNumber      = splitNumber;
            axis.interval         = interval;
            axis.boundaryGap      = boundaryGap;
            axis.maxCache         = maxCache;
            axis.logBase          = logBase;
            axis.logBaseE         = logBaseE;
            axis.ceilRate         = ceilRate;
            axis.insertDataToHead = insertDataToHead;
            axis.axisLine         = axisLine.Clone();
            axis.axisName         = axisName.Clone();
            axis.axisTick         = axisTick.Clone();
            axis.axisLabel        = axisLabel.Clone();
            axis.splitLine        = splitLine.Clone();
            axis.splitArea        = splitArea.Clone();
            axis.icons            = new List <Sprite>();
            axis.data             = new List <string>();
            ChartHelper.CopyList(axis.data, data);
            return(axis);
        }
        public AxisSplitArea Clone()
        {
            var axisSplitArea = new AxisSplitArea();

            axisSplitArea.show  = show;
            axisSplitArea.color = new List <Color32>();
            ChartHelper.CopyList(axisSplitArea.color, color);
            return(axisSplitArea);
        }
Esempio n. 4
0
 public void Copy(BaseAxisTheme theme)
 {
     base.Copy(theme);
     m_LineType        = theme.lineType;
     m_LineWidth       = theme.lineWidth;
     m_LineLength      = theme.lineLength;
     m_LineColor       = theme.lineColor;
     m_SplitLineType   = theme.splitLineType;
     m_SplitLineWidth  = theme.splitLineWidth;
     m_SplitLineLength = theme.splitLineLength;
     m_SplitLineColor  = theme.splitLineColor;
     m_TickWidth       = theme.tickWidth;
     m_TickLength      = theme.tickLength;
     m_TickColor       = theme.tickColor;
     ChartHelper.CopyList(m_SplitAreaColors, theme.splitAreaColors);
 }
Esempio n. 5
0
        /// <summary>
        /// copy all configurations from theme.
        /// |复制主题的所有配置。
        /// </summary>
        /// <param name="theme"></param>
        public void CopyTheme(Theme theme)
        {
            m_ThemeType = theme.themeType;
            m_ThemeName = theme.themeName;
#if dUI_TextMeshPro
            tmpFont = theme.tmpFont;
#endif
            font = theme.font;
            m_BackgroundColor = theme.backgroundColor;
            m_Common.Copy(theme.common);
            m_Legend.Copy(theme.legend);
            m_Title.Copy(theme.title);
            m_SubTitle.Copy(theme.subTitle);
            m_Axis.Copy(theme.axis);
            m_Tooltip.Copy(theme.tooltip);
            m_DataZoom.Copy(theme.dataZoom);
            m_VisualMap.Copy(theme.visualMap);
            m_Serie.Copy(theme.serie);
            ChartHelper.CopyList(m_ColorPalette, theme.colorPalette);
        }
 public void Copy(AxisSplitArea splitArea)
 {
     show = splitArea.show;
     color.Clear();
     ChartHelper.CopyList(color, splitArea.color);
 }