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

Method getAscent

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

Source from the content-addressed store, hash-verified

1042 }
1043
1044 public int getAscent(Graphics g) {
1045 if((g==null)||(f==null)) {
1046 return 0;
1047 }
1048 return g.getFontMetrics(f).getAscent();
1049 }
1050
1051 public int getDescent(Graphics g) {
1052 if((g==null)||(f==null)) {

Callers 1

parseTextMethod · 0.95

Calls 2

getAscentMethod · 0.45
getFontMetricsMethod · 0.45

Tested by

no test coverage detected