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

Method getDescent

src/org/opensourcephysics/display/TextLine.java:1051–1056  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

1049 }
1050
1051 public int getDescent(Graphics g) {
1052 if((g==null)||(f==null)) {
1053 return 0;
1054 }
1055 return g.getFontMetrics(f).getDescent();
1056 }
1057
1058 public int getMaxAscent(Graphics g) {
1059 if((g==null)||(f==null)) {

Callers 1

parseTextMethod · 0.95

Calls 2

getDescentMethod · 0.45
getFontMetricsMethod · 0.45

Tested by

no test coverage detected