Example #1
0
 public void SetCoordinateArea(double left, double right, double top, double bottom)
 {
     XAxisMapper.SetRange2(left, right);
     YAxisMapper.SetRange2(top, bottom);
     if (!isInitializing)
     {
         MapperStateChanged?.Invoke(this);
     }
 }
 public void SetScreenArea(double left, double right, double top, double bottom)
 {
     XAxisMapper.SetRange1(left, right);
     YAxisMapper.SetRange1(top, bottom);
 }
 public void SetCoordinateXRange(double xLeft, double xRight) => XAxisMapper.SetRange2(xLeft, xRight);
 public double GetCoordinateX(double screenX) => XAxisMapper.MapToValue2(screenX);
 public double GetScreenX(double coordinateX) => XAxisMapper.MapToValue1(coordinateX);