public class ASCIITextWidthCounter extends Object implements TextWidthCounter
This implementation assumes text contains only narrow characters,
The width is just simply the length of given text. The application code should not use this class directly.
Constructor and Description |
---|
ASCIITextWidthCounter() |
public int width(String text)
TextWidthCounter
width
in interface TextWidthCounter
text
- The text to inspect.Copyright © 2012–2014. All rights reserved.