/** * Sets the user-coordinate part of the mapping for this transcaler. * @param x1u the user x-coordinate corresponding to the current x1d. * @param y1u the user y-coordinate corresponding to the current y1d. * @param x2u the user x-coordinate corresponding to the current x2d. * @param y2u the user y-coordinate corresponding to the current y2d. */ public void setMapping(double x1u, double y1u, double x2u, double y2u) { _x1u = x1u; _x2u = x2u; _y1u = y1u; _y2u = y2u; computeShiftAndScale(); }
/** * Sets the device-coordinate part of the mapping for this transcaler. * @param x1d the device x-coordinate corresponding to the current x1u. * @param y1d the device y-coordinate corresponding to the current y1u. * @param x2d the device x-coordinate corresponding to the current x2u. * @param y2d the device y-coordinate corresponding to the current y2u. */ public void setMapping(int x1d, int y1d, int x2d, int y2d) { _x1d = x1d; _x2d = x2d; _y1d = y1d; _y2d = y2d; computeShiftAndScale(); }
/** * Sets the coordinate mapping for this transcaler. * @param x1u the user x-coordinate corresponding to x1d. * @param y1u the user y-coordinate corresponding to y1d. * @param x2u the user x-coordinate corresponding to x2d. * @param y2u the user y-coordinate corresponding to y2d. * @param x1d the device x-coordinate corresponding to x1u. * @param y1d the device y-coordinate corresponding to y1u. * @param x2d the device x-coordinate corresponding to x2u. * @param y2d the device y-coordinate corresponding to y2u. */ public void setMapping( double x1u, double y1u, double x2u, double y2u, int x1d, int y1d, int x2d, int y2d) { _x1u = x1u; _x2u = x2u; _y1u = y1u; _y2u = y2u; _x1d = x1d; _x2d = x2d; _y1d = y1d; _y2d = y2d; computeShiftAndScale(); }