예제 #1
0
 public ScreenToCoordinateMapper(ValueMapper xAxis, ValueMapper yAxis)
 {
     if (xAxis == null || yAxis == null)
     {
         throw new Exception("映射器为null");
     }
     XAxisMapper = xAxis;
     YAxisMapper = yAxis;
 }
예제 #2
0
 public void SetCoordinateYRange(double max, double min)
 {
     YAxisMapper = new ValueMapper(YAxisMapper.Value1Max, YAxisMapper.Value1Min, max, min);
 }
예제 #3
0
 public void SetCoordinateXRange(double max, double min)
 {
     XAxisMapper = new ValueMapper(XAxisMapper.Value1Max, XAxisMapper.Value1Min, max, min);
 }
예제 #4
0
 public void SetScreenYRange(double max, double min)
 {
     YAxisMapper = new ValueMapper(max, min, YAxisMapper.Value2Max, YAxisMapper.Value2Min);
 }
예제 #5
0
 public ScreenToCoordinateMapper(double screenXMax, double screenXMin, double coordinateXMax, double coordinateXMin,
                                 double screenYMax, double screenYMin, double coordinateYMax, double coordinateYMin)
 {
     XAxisMapper = new ValueMapper(screenXMax, screenXMin, coordinateXMax, coordinateXMin);
     YAxisMapper = new ValueMapper(screenYMax, screenYMin, coordinateYMax, coordinateYMin);
 }