BlinkenApplet/Lauftext Schriftarten/5pxStd

Bitte fertigstellen (ein paar Buchstaben fehlen noch. Da kommt immer "G" statt dem Buchstaben der kommen soll. Und die Zahlen sind noch nicht gemacht. Und man könnt auch noch weitere Zeichen wie "#", ".", ":", ",", ";", "'", """, ... hinzufügen.

Ausserdem kann man ganz neu die Dateien BlinkenApplet/Lauftext_Schriftarten/8pxStd und BlinkenApplet/Lauftext_Schriftarten/8pxBold anlegen :)

/** * * BlinkenApplet * Copyright (C) 2006: Guido Pannenbecker  * initiated by Manuel Flöther * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html * a blinkenarea.org project * * Klasse: Schriftart * * Definiert Standart-Schriftart für Lauftext. * * * Created by: Guido Pannenbecker * Date: 2006-06-11 * * History: * * 2006-06-11, Guido: new * */ package baLauftext;

public class Schriftart { public Schriftart { }

public int getFontHeight{ return 5; } public boolean isValidChar(String ch) { return "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-+".indexOf(ch)>=0; } public String getCharRow(String ch, int row){ ch=ch.toUpperCase; if (ch.equals("A")) { switch (row) { case 1: return "000110000"; case 2: return "001111000"; case 3: return "011001100"; case 4: return "011111100"; case 5: return "110000110"; default: return null; }     } else if (ch.equals("B")) { switch (row) { case 1: return "11111100"; case 2: return "11000110"; case 3: return "11111100"; case 4: return "11000110"; case 5: return "11111100"; default: return null; }     } else if (ch.equals("C")) { switch (row) { case 1: return "001111110"; case 2: return "011000110"; case 3: return "110000000"; case 4: return "110000110"; case 5: return "011111100"; default: return null; }             } else if (ch.equals("D")) { switch (row) { case 1: return "11111100"; case 2: return "01100110"; case 3: return "01100110"; case 4: return "01100110"; case 5: return "11111100"; default: return null; }             } else if (ch.equals("E")) { switch (row) { case 1: return "1111110"; case 2: return "1100000"; case 3: return "1111000"; case 4: return "1100000"; case 5: return "1111110"; default: return null; }             } else if (ch.equals("F")) { switch (row) { case 1: return "1111110"; case 2: return "1100000"; case 3: return "1111000"; case 4: return "1100000"; case 5: return "1100000"; default: return null; }             } else if (ch.equals("G")) { switch (row) { case 1: return "00111110"; case 2: return "01100000"; case 3: return "11001110"; case 4: return "01100110"; case 5: return "00111100"; default: return null; }             } else if (ch.equals("H")) { switch (row) { case 1: return "11000110"; case 2: return "11000110"; case 3: return "11111110"; case 4: return "11000110"; case 5: return "11000110"; default: return null; }             } else if (ch.equals("I")) { switch (row) { case 1: return "11110"; case 2: return "01100"; case 3: return "01100"; case 4: return "01100"; case 5: return "11110"; default: return null; }             } else if (ch.equals("J")) { switch (row) { case 1: return "00011110"; case 2: return "00001100"; case 3: return "00001100"; case 4: return "11001100"; case 5: return "11111000"; default: return null; }             } else if (ch.equals("K")) { switch (row) { case 1: return "1100110"; case 2: return "1101100"; case 3: return "1111000"; case 4: return "1101100"; case 5: return "1100110"; default: return null; }             } else if (ch.equals("L")) { switch (row) { case 1: return "1100000"; case 2: return "1100000"; case 3: return "1100000"; case 4: return "1100000"; case 5: return "1111110"; default: return null; }             } else if (ch.equals("M")) { switch (row) { case 1: return "11000000110"; case 2: return "11110011110"; case 3: return "11011110110"; case 4: return "11001100110"; case 5: return "11000000110"; default: return null; }             } else if (ch.equals("N")) { switch (row) { case 1: return "110000110"; case 2: return "111100110"; case 3: return "110110110"; case 4: return "110011110"; case 5: return "110001110"; default: return null; }             } else if (ch.equals("O")) { switch (row) { case 1: return "011111100"; case 2: return "110000110"; case 3: return "110000110"; case 4: return "110000110"; case 5: return "011111100"; default: return null; }             } else if (ch.equals("P")) { switch (row) { case 1: return "11"; case 2: return "11"; case 3: return "11"; case 4: return "11"; case 5: return "11"; default: return null; }             } else if (ch.equals("Q")) { switch (row) { case 1: return "11"; case 2: return "11"; case 3: return "11"; case 4: return "11"; case 5: return "11"; default: return null; }             } else if (ch.equals("R")) { switch (row) { case 1: return "11111100"; case 2: return "11000110"; case 3: return "11111100"; case 4: return "11011000"; case 5: return "11001100"; default: return null; }             } else if (ch.equals("S")) { switch (row) { case 1: return "00111110"; case 2: return "01100000"; case 3: return "11001110"; case 4: return "01100110"; case 5: return "00111100"; default: return null; }             } else if (ch.equals("T")) { switch (row) { case 1: return "00111110"; case 2: return "01100000"; case 3: return "11001110"; case 4: return "01100110"; case 5: return "00111100"; default: return null; }             } else if (ch.equals("U")) { switch (row) { case 1: return "00111110"; case 2: return "01100000"; case 3: return "11001110"; case 4: return "01100110"; case 5: return "00111100"; default: return null; }             } else if (ch.equals("V")) { switch (row) { case 1: return "00111110"; case 2: return "01100000"; case 3: return "11001110"; case 4: return "01100110"; case 5: return "00111100"; default: return null; }             } else if (ch.equals("W")) { switch (row) { case 1: return "00111110"; case 2: return "01100000"; case 3: return "11001110"; case 4: return "01100110"; case 5: return "00111100"; default: return null; }             } else if (ch.equals("X")) { switch (row) { case 1: return "00111110"; case 2: return "01100000"; case 3: return "11001110"; case 4: return "01100110"; case 5: return "00111100"; default: return null; }             } else if (ch.equals("Y")) { switch (row) { case 1: return "00111110"; case 2: return "01100000"; case 3: return "11001110"; case 4: return "01100110"; case 5: return "00111100"; default: return null; }             } else if (ch.equals("Z")) { switch (row) { case 1: return "00111110"; case 2: return "01100000"; case 3: return "11001110"; case 4: return "01100110"; case 5: return "00111100"; default: return null; }             } else if (ch.equals("0")) { switch (row) { case 1: return "00000000"; case 2: return "00000000"; case 3: return "00000000"; case 4: return "00000000"; case 5: return "00000000"; default: return null; }       } else if (ch.equals("1")) { switch (row) { case 1: return "00000000"; case 2: return "00000000"; case 3: return "00001000"; case 4: return "00000000"; case 5: return "00000000"; default: return null; }       } else if (ch.equals("2")) { switch (row) { case 1: return "00000000"; case 2: return "00000000"; case 3: return "00100100"; case 4: return "00000000"; case 5: return "00000000"; default: return null; }       } else if (ch.equals("3")) { switch (row) { case 1: return "00000000"; case 2: return "00010000"; case 3: return "00000000"; case 4: return "00100010"; case 5: return "00000000"; default: return null; }       } else if (ch.equals("4")) { switch (row) { case 1: return "00000000"; case 2: return "00100100"; case 3: return "00000000"; case 4: return "00100100"; case 5: return "00000000"; default: return null; }       } else if (ch.equals("5")) { switch (row) { case 1: return "010000010"; case 2: return "000000000"; case 3: return "000010000"; case 4: return "000000000"; case 5: return "010000010"; default: return null; }       } else if (ch.equals("6")) { switch (row) { case 1: return "110"; case 2: return "100"; case 3: return "100"; case 4: return "100"; case 5: return "100"; default: return null; }       } else if (ch.equals("7")) { switch (row) { case 1: return "10001000"; case 2: return "00100000"; case 3: return "00000100"; case 4: return "00010000"; case 5: return "01000100"; default: return null; }       } else if (ch.equals("8")) { switch (row) { case 1: return "10001000"; case 2: return "00100010"; case 3: return "10001000"; case 4: return "00100010"; case 5: return "00000000"; default: return null; }       } else if (ch.equals("9")) { switch (row) { case 1: return "10010010"; case 2: return "00000000"; case 3: return "10010010"; case 4: return "00000000"; case 5: return "10010010"; default: return null; }       } else if (ch.equals("-")) { switch (row) { case 1: return "000000000"; case 2: return "000000000"; case 3: return "111111110"; case 4: return "000000000"; case 5: return "000000000"; default: return null; }       } else if (ch.equals("+")) { switch (row) { case 1: return "000110000"; case 2: return "000110000"; case 3: return "111111110"; case 4: return "000110000"; case 5: return "000110000"; default: return null; }       } else {  // Invalid Char switch (row) { case 1: return "111111110"; case 2: return "110000110"; case 3: return "110000110"; case 4: return "110000110"; case 5: return "111111110"; default: return null; }       /*        switch (row) { case 1: return ""; case 2: return ""; case 3: return ""; case 4: return ""; case 5: return ""; default: return null; }       */      }

} }