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

Method getAscent

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

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

(Graphics g)

Source from the content-addressed store, hash-verified

457 * @return the ascent of the parsed text.
458 */
459 public int getAscent(Graphics g) {
460 if(g==null) {
461 return 0;
462 }
463 parseText(g);
464 return ascent;
465 }
466
467 /**
468 * @param g Graphics context.

Callers 11

getPreferredSizeMethod · 0.45
drawMethod · 0.45
computeBoxMetricsMethod · 0.45
parseTextMethod · 0.45
getAscentMethod · 0.45
drawMethod · 0.45
drawOn3DMethod · 0.45
outStringMethod · 0.45
outStringMethod · 0.45
mainMethod · 0.45
showMethod · 0.45

Calls 1

parseTextMethod · 0.95

Tested by 2

mainMethod · 0.36
showMethod · 0.36