작업 조건 분석 기능 개발
This commit is contained in:
34
Assets/Chart And Graph/Script/Axis/VerticalAxis.cs
Normal file
34
Assets/Chart And Graph/Script/Axis/VerticalAxis.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
#define Graph_And_Chart_PRO
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace ChartAndGraph
|
||||
{
|
||||
/// <summary>
|
||||
/// defines a vertical axis for the chart componenet attached to the same object
|
||||
/// </summary>
|
||||
public class VerticalAxis : AxisBase
|
||||
{
|
||||
protected override Action<IInternalUse, bool> Assign
|
||||
{
|
||||
get
|
||||
{
|
||||
return (x, clear) =>
|
||||
{
|
||||
if (clear)
|
||||
{
|
||||
if (x.VerticalAxis == this)
|
||||
x.VerticalAxis = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (x.VerticalAxis != this)
|
||||
x.VerticalAxis = this;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user