public class BrailleGraphics
extends java.lang.Object
| Constructor and Description |
|---|
BrailleGraphics(boolean eightDot)
Creates a new instance of braille graphics, with either full 8-dot or
6-dot patterns.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
combine(java.util.List<java.lang.String> background,
java.util.List<java.lang.String> overlay,
int x,
int y)
Combines two braille images by combining characters from the two input
images.
|
java.util.List<java.lang.String> |
renderGraphics(java.awt.image.Raster r)
Renders the raster using braille characters.
|
static java.util.List<java.lang.String> |
sixDotFilter(java.util.List<java.lang.String> input)
Filters the input braille image by discarding dots 7 and 8.
|
public BrailleGraphics(boolean eightDot)
eightDot - true if full 8-dot patterns should be used, false otherwise.public java.util.List<java.lang.String> renderGraphics(java.awt.image.Raster r)
r - the raster to renderpublic static java.util.List<java.lang.String> sixDotFilter(java.util.List<java.lang.String> input)
input - the braille input, characters in the range 0x2800-0x28FFpublic static java.util.List<java.lang.String> combine(java.util.List<java.lang.String> background,
java.util.List<java.lang.String> overlay,
int x,
int y)
background - the image onto which data is to be placedoverlay - the image to place onto the backgroundx - the overlay offset in charactersy - the overlay offset in rowsjava.lang.IllegalArgumentException - if x or y is negative, or if the overlay are out of
bounds of the background image.