public class ColoredEdgesWordRenderer extends Object implements WordRenderer
WordRenderer.
A word with colored edges and adjustable stroke width.| Constructor and Description |
|---|
ColoredEdgesWordRenderer()
Creates a
ColoredEdgesWordRenderer with default color (black), font (Arial) and stroke width (1). |
ColoredEdgesWordRenderer(List<Color> colors,
List<Font> fonts)
Creates a
ColoredEdgesWordRenderer with specified colors and fonts, and default stroke width (1). |
ColoredEdgesWordRenderer(List<Color> colors,
List<Font> fonts,
float strokeWidth)
Creates a
ColoredEdgesWordRenderer with specified colors, fonts and stroke width. |
| Modifier and Type | Method and Description |
|---|---|
void |
render(String word,
BufferedImage image)
Render a word into a BufferedImage.
|
public ColoredEdgesWordRenderer()
ColoredEdgesWordRenderer with default color (black), font (Arial) and stroke width (1).public ColoredEdgesWordRenderer(List<Color> colors, List<Font> fonts)
ColoredEdgesWordRenderer with specified colors and fonts, and default stroke width (1).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.