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

Method label

ij/src/main/java/ij/VirtualStack.java:324–332  ·  view source on GitHub ↗

Draw label for Help>Examples>JavaScript>Terabyte VirtualStack

(ImageProcessor ip, String msg, Color color)

Source from the content-addressed store, hash-verified

322
323 /** Draw label for Help>Examples>JavaScript>Terabyte VirtualStack */
324 private void label(ImageProcessor ip, String msg, Color color) {
325 int size = getHeight()/20;
326 if (size<9) size=9;
327 Font font = new Font("Helvetica", Font.PLAIN, size);
328 ip.setFont(font);
329 ip.setAntialiasedText(true);
330 ip.setColor(color);
331 ip.drawString(msg, size, size*2);
332 }
333
334 /** Currently not implemented */
335 public int saveChanges(int n) {

Callers 1

getProcessorMethod · 0.95

Calls 5

setFontMethod · 0.65
setColorMethod · 0.65
getHeightMethod · 0.45
setAntialiasedTextMethod · 0.45
drawStringMethod · 0.45

Tested by

no test coverage detected