public class DefaultWordRenderer extends Object implements WordRenderer
WordRenderer.| Constructor and Description |
|---|
DefaultWordRenderer()
Creates a
DefaultWordRenderer with default color (black) and fonts (Arial and Courier). |
DefaultWordRenderer(List<Color> colors,
List<Font> fonts)
Creates a
DefaultWordRenderer with specified colors and fonts. |
| Modifier and Type | Method and Description |
|---|---|
void |
render(String word,
BufferedImage image)
Render a word into a BufferedImage.
|
public DefaultWordRenderer()
DefaultWordRenderer with default color (black) and fonts (Arial and Courier).public void render(String word, BufferedImage image)
WordRendererrender in interface WordRendererword - The sequence of characters to be rendered.image - The image onto which the word will be rendered.Copyright © 2015. All rights reserved.