MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / scaleX

Method scaleX

ij/src/main/java/ij/gui/Plot.java:1990–1993  ·  view source on GitHub ↗

Converts calibrated coordinates to integer pixel coordinates.

(double x)

Source from the content-addressed store, hash-verified

1988
1989 /** Converts calibrated coordinates to integer pixel coordinates. */
1990 private int scaleX(double x) {
1991 double xPxl = scaleXtoPxl(x);
1992 return pxlToInt(xPxl);
1993 }
1994
1995 /** Converts calibrated coordinates to integer pixel coordinates. */
1996 private int scaleY(double y) {

Callers 6

scaleXWithOverflowMethod · 0.95
drawPlotObjectMethod · 0.95
drawBarChartMethod · 0.95
drawVerticalErrorBarsMethod · 0.95
drawFloatPolylineMethod · 0.95

Calls 2

scaleXtoPxlMethod · 0.95
pxlToIntMethod · 0.95

Tested by

no test coverage detected