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.iconStyle = iconStyle.Clone(); 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 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; iconStyle.Copy(axis.iconStyle); 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); }
/// <summary> /// copy all configurations from theme. /// 复制主题的所有配置。 /// </summary> /// <param name="theme"></param> public void CopyTheme(ChartTheme theme) { m_Theme = theme.theme; m_ThemeName = theme.themeName; #if dUI_TextMeshPro m_TMPFont = theme.tmpFont; #endif m_Font = theme.m_Font; m_ContrastColor = theme.contrastColor; m_BackgroundColor = theme.m_BackgroundColor; m_Common.Copy(theme.common); m_Legend.Copy(theme.m_Legend); m_Title.Copy(theme.m_Title); m_SubTitle.Copy(theme.m_SubTitle); m_Axis.Copy(theme.axis); m_RadiusAxis.Copy(theme.radiusAxis); m_AngleAxis.Copy(theme.angleAxis); m_Polar.Copy(theme.polar); m_Gauge.Copy(theme.gauge); 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); SetAllDirty(); }
public AxisSplitArea Clone() { var axisSplitArea = new AxisSplitArea(); axisSplitArea.show = show; axisSplitArea.color = new List <Color32>(); ChartHelper.CopyList(axisSplitArea.color, color); return(axisSplitArea); }
public void Copy(Legend legend) { m_Show = legend.show; m_SelectedMode = legend.selectedMode; m_Orient = legend.orient; m_Location.Copy(legend.location); m_ItemWidth = legend.itemWidth; m_ItemHeight = legend.itemHeight; m_ItemGap = legend.itemGap; itemAutoColor = legend.itemAutoColor; m_TextStyle.Copy(legend.textStyle); ChartHelper.CopyList <string>(m_Data, legend.data); ChartHelper.CopyList <Sprite>(m_Icons, legend.icons); }
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); }
public void Copy(Axis axis) { show = axis.show; type = axis.type; minMaxType = axis.minMaxType; 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; 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); }
public void Copy(AxisSplitArea splitArea) { show = splitArea.show; color.Clear(); ChartHelper.CopyList(color, splitArea.color); }
public void Copy(GaugeAxisTheme theme) { base.Copy(theme); m_BarBackgroundColor = theme.barBackgroundColor; ChartHelper.CopyList(m_StageColor, theme.stageColor); }