@MinDoc(copyright="Copyright 2000 - 2009, 2019 A. Weinert", author="Albrecht Weinert", version="V.65", lastModified="3.06.2024", usage="start as Java application (-? for help)", purpose="supports application with patterns for a dot matrix display") public class DisplayPattern extends Object
application
for a full display
list (as starlet/asterisk images).Value | Meaning | Colour |
---|---|---|
0 | Off | background |
1 | On | foreground |
2..127 | Not off | Not used in this class. application specific. See get(char, byte) |
Modifier and Type | Field and Description |
---|---|
static byte[][] |
SPACE
Pattern for space.
|
static byte[][] |
UNDEF
Pattern for Undefined.
|
static int |
X_DOTS
Number of points, X direction, horizontal.
|
static int |
Y_DOTS
Number of points, Y direction, vertical.
|
Modifier and Type | Method and Description |
---|---|
static byte[][] |
get(char c)
Get the patter by character (code).
|
static byte[][] |
get(char c,
byte onValue)
Fetch the pattern for a character.
|
static void |
main(String[] a)
Output all defined character pattern.
|
public static final int X_DOTS
5
public static final int Y_DOTS
8
public static final byte[][] SPACE
public static final byte[][] UNDEF
public static byte[][] get(char c)
UNDEF
, that as SPACE
would be displayed as blank,
according the substitution rules..get(char, byte)
instead, which returns a new (full) 5 * 8 byte[][] dot array
every time.c
- the character (Unicode number)UNDEF
public static byte[][] get(char c, byte onValue)
onValue
if that is in the range 2..127 or 1. Off dots get the
value 0.get(char c)
, which has quite
similar results as get(c, 1)
. Both methods
have the same parameter range for c.public static void main(String[] a)