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

Method setJustification

ij/src/main/java/ij/gui/TextRoi.java:416–423  ·  view source on GitHub ↗

Sets the 'justification' instance variable (LEFT, CENTER or RIGHT)

(int justification)

Source from the content-addressed store, hash-verified

414
415 /** Sets the 'justification' instance variable (LEFT, CENTER or RIGHT) */
416 public void setJustification(int justification) {
417 if (justification<0 || justification>RIGHT)
418 justification = LEFT;
419 this.justification = justification;
420 updateBounds();
421 if (imp!=null)
422 imp.draw();
423 }
424
425 /** Returns the value of the 'justification' instance variable (LEFT, CENTER or RIGHT). */
426 public int getJustification() {

Callers 5

overlayDrawStringMethod · 0.95
dialogItemChangedMethod · 0.95
addMethod · 0.95
getTextRoiMethod · 0.95
showDialogMethod · 0.95

Calls 2

updateBoundsMethod · 0.95
drawMethod · 0.45

Tested by

no test coverage detected