Home
last modified time | relevance | path

Searched refs:fMtr (Results 1 – 1 of 1) sorted by relevance

/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/
DDumbTextComponent.java715 public int nextLine(FontMetrics fMtr, int start, int width) { in nextLine() argument
728 if (visibleWidth(fMtr, subject) <= width) in nextLine()
734 int n = findFittingBreak(fMtr, subject, width, lineBreaker); in nextLine()
736 n = findFittingBreak(fMtr, subject, width, wordBreaker); in nextLine()
739 n = findFittingBreak(fMtr, subject, width, charBreaker); in nextLine()
755 private int findFittingBreak(FontMetrics fMtr, String line, int width, in findFittingBreak() argument
761 visibleWidth(fMtr, line.substring(0, end)) <= width) { in findFittingBreak()
768 public int visibleWidth(FontMetrics fMtr, String s) { in visibleWidth() argument
773 return fMtr.stringWidth(s.substring(0,i+1)); in visibleWidth()