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

Method sc

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

Scales a value of the original plot for a high-resolution plot. Returns an integer number of pixels >=1

(float length)

Source from the content-addressed store, hash-verified

2035
2036 /** Scales a value of the original plot for a high-resolution plot. Returns an integer number of pixels >=1 */
2037 @AstroImageJ(reason = "Access widen for Vector Plot saving", modified = true)
2038 public int sc(float length) {
2039 int pixels = (int)(length*scale + 0.5);
2040 if (pixels < 1) pixels = 1;
2041 return pixels;
2042 }
2043
2044 /** Scales a font of the original plot for a high-resolution plot. */
2045 @AstroImageJ(reason = "Access widen for Vector Plot saving", modified = true)

Callers 15

setScaleMethod · 0.95
drawContentsMethod · 0.95
getBlankProcessorMethod · 0.95
makeMarginValuesMethod · 0.95
makeRangeGetStepsMethod · 0.95
drawPlotObjectMethod · 0.95
drawBarChartMethod · 0.95
drawShapeMethod · 0.95
fillShapeMethod · 0.95
drawLegendMethod · 0.95
legendRectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected