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

Method setFrameSize

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

Sets the plot frame size in (unscaled) pixels. This size does not include the borders with the axis labels. Also sets the scale to 1.0. This frame size in pixels divided by the data range defines the image scale. This method does not check for the minimum size MIN_FRAMEWIDTH, MIN_FRAMEHEIGHT. Note t

(int width, int height)

Source from the content-addressed store, hash-verified

558 * @see #setWindowSize(int,int)
559 */
560 public void setFrameSize(int width, int height) {
561 if (pp.width <= 0) { //plot not drawn yet? Just remember as preferred size
562 preferredPlotWidth = width;
563 preferredPlotHeight = height;
564 scale = 1.0f;
565 } else {
566 makeMarginValues();
567 width += leftMargin+rightMargin;
568 height += topMargin+bottomMargin;
569 setSize(width, height);
570 }
571 }
572
573 /** Sets the plot window size in pixels.
574 * @see #setFrameSize(int,int)

Callers 4

doPlotMethod · 0.95
getPlotMethod · 0.95
actionPerformedMethod · 0.80
zoom100PercentMethod · 0.80

Calls 2

makeMarginValuesMethod · 0.95
setSizeMethod · 0.95

Tested by

no test coverage detected