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

Method draw

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

Draws the plot specified for the first time. Does nothing if the plot has been drawn already. Call getProcessor to retrieve the ImageProcessor with it. Does no action with respect to the ImagePlus (if any)

()

Source from the content-addressed store, hash-verified

1808 * Call getProcessor to retrieve the ImageProcessor with it.
1809 * Does no action with respect to the ImagePlus (if any) */
1810 public void draw() {
1811 //IJ.log("draw(); plotDrawn="+plotDrawn);
1812 if (plotDrawn) return;
1813 getInitialMinAndMax();
1814 pp.frame.setFont(nonNullFont(pp.frame.getFont(), currentFont)); //make sure we have a number font for calculating the margins
1815 getBlankProcessor();
1816 drawContents(ip);
1817 }
1818
1819 /** Freezes or unfreezes the plot. In the frozen state, the plot cannot be resized or updated,
1820 * and the Plot class does no modifications to the ImageProcessor.

Callers 4

getProcessorMethod · 0.95
getImagePlusMethod · 0.95
addToStackMethod · 0.95
getBufferedImageMethod · 0.95

Calls 6

getInitialMinAndMaxMethod · 0.95
nonNullFontMethod · 0.95
getBlankProcessorMethod · 0.95
drawContentsMethod · 0.95
setFontMethod · 0.65
getFontMethod · 0.65

Tested by

no test coverage detected