MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / getLeading

Method getLeading

src/org/opensourcephysics/display/TextLine.java:507–513  ·  view source on GitHub ↗

@param g Graphics context. @return the leading of the parsed text.

(Graphics g)

Source from the content-addressed store, hash-verified

505 * @return the leading of the parsed text.
506 */
507 public int getLeading(Graphics g) {
508 if(g==null) {
509 return 0;
510 }
511 parseText(g);
512 return leading;
513 }
514
515 /**
516 * parse the text. When the text is parsed the width, height, leading are all

Callers 3

parseTextMethod · 0.45
getLeadingMethod · 0.45
showMethod · 0.45

Calls 1

parseTextMethod · 0.95

Tested by 1

showMethod · 0.36