public interface RendersToClusterWidth
Interface for objects that provide a render method for text rendering resulting in a text cluster with a width argument.
| Modifier and Type | Method and Description |
|---|---|
default String[] |
renderAsArray(int width)
Returns an
array view of the rendered object. |
Collection<String> |
renderAsCollection(int width)
Returns a
collection view of the rendered object. |
default Iterable<String> |
renderAsIterable(int width)
Returns an
iterable view of the rendered object. |
default Iterator<String> |
renderAsIterator(int width)
Returns an
iterator view of the rendered object. |
Collection<String> renderAsCollection(int width)
Returns a collection view of the rendered object.
width - the maximum line widthcollection view, should not be null and have no blank elementsdefault Iterable<String> renderAsIterable(int width)
Returns an iterable view of the rendered object.
width - the maximum line widthiterable view, should not be null and have no blank elementsdefault Iterator<String> renderAsIterator(int width)
Returns an iterator view of the rendered object.
width - the maximum line widthiterator view, should not be null and have no blank elementsdefault String[] renderAsArray(int width)
Returns an array view of the rendered object.
width - the maximum line widtharray view, should not be null and have no blank elementsCopyright © 2016–2017. All rights reserved.