MCPcopy Create free account
hub / github.com/Card-Forge/forge / getBounds

Method getBounds

forge-gui-mobile/src/forge/assets/FSkinFont.java:169–172  ·  view source on GitHub ↗
(CharSequence str)

Source from the content-addressed store, hash-verified

167 }
168 // Expose methods from font that updates scale as needed
169 public TextBounds getBounds(CharSequence str) {
170 updateScale(); //must update scale before measuring text
171 return getBounds(str, 0, str.length());
172 }
173 public TextBounds getBounds(CharSequence str, int start, int end) {
174 if (font == null) {
175 return new TextBounds(0f, 0f);

Callers 15

getMultiLineBoundsMethod · 0.95
getWrappedBoundsMethod · 0.95
drawPtBoxMethod · 0.95
_getPreferredHeightMethod · 0.45
doLayoutMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
drawValueMethod · 0.45
drawValueMethod · 0.45
drawValueMethod · 0.45
drawValueMethod · 0.45
getAutoSizeWidthMethod · 0.45

Calls 3

updateScaleMethod · 0.95
lengthMethod · 0.80
getDataMethod · 0.45

Tested by

no test coverage detected