增加Covert XY Axis互换XY轴配置

This commit is contained in:
monitor1394
2020-04-18 12:31:21 +08:00
parent d5fbce2e36
commit bc332ebebb
13 changed files with 254 additions and 5 deletions

View File

@@ -153,6 +153,36 @@ namespace XCharts
}
}
public AxisLabel Clone()
{
var axisLable = new AxisLabel();
axisLable.show = show;
axisLable.formatter = formatter;
axisLable.interval = interval;
axisLable.inside = inside;
axisLable.rotate = rotate;
axisLable.margin = margin;
axisLable.color = color;
axisLable.fontSize = fontSize;
axisLable.forceENotation = forceENotation;
axisLable.textLimit = textLimit.Clone();
return axisLable;
}
public void Copy(AxisLabel axisLable)
{
show = axisLable.show;
formatter = axisLable.formatter;
interval = axisLable.interval;
inside = axisLable.inside;
rotate = axisLable.rotate;
margin = axisLable.margin;
color = axisLable.color;
fontSize = axisLable.fontSize;
forceENotation = axisLable.forceENotation;
textLimit.Copy(axisLable.textLimit);
}
public void SetRelatedText(Text txt, float labelWidth)
{
m_TextLimit.SetRelatedText(txt, labelWidth);