public ScreenToCoordinateMapper(ValueMapper xAxis, ValueMapper yAxis) { if (xAxis == null || yAxis == null) { throw new Exception("映射器为null"); } XAxisMapper = xAxis; YAxisMapper = yAxis; }
public void SetCoordinateYRange(double max, double min) { YAxisMapper = new ValueMapper(YAxisMapper.Value1Max, YAxisMapper.Value1Min, max, min); }
public void SetCoordinateXRange(double max, double min) { XAxisMapper = new ValueMapper(XAxisMapper.Value1Max, XAxisMapper.Value1Min, max, min); }
public void SetScreenYRange(double max, double min) { YAxisMapper = new ValueMapper(max, min, YAxisMapper.Value2Max, YAxisMapper.Value2Min); }
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); }