|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gnu.jfiglet.core.FIGCharacter
A character defined by a FIGFont. For example, the character 'A' defined by the alphabet FIGFont is the following :
AA A A AAAA A A A A
Constructor Summary | |
FIGCharacter(java.lang.String[] theCharacterLines)
A constructor which argument is an array of the lines of subcharacters the character is defined by. |
Method Summary | |
java.lang.String |
getCharacterLine(int theLineNumber)
Get one of the lines of subcharacters the character is defined by. |
java.lang.String[] |
getCharacterLines()
Get an array of the lines of subcharacters the character is defined by. |
int |
getNumberOfBackSpacesForLine(int theLineNumber)
|
int |
getNumberOfFrontSpacesForLine(int theLineNumber)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FIGCharacter(java.lang.String[] theCharacterLines)
line 0 :" AA " line 1 :" A A " line 2 :" AAAA " line 3 :" A A " line 4 :" A A " line 5 :" " line 6 :" "If any @ subcharacters are present in a line, it is automaticaly suppressed : this is because characters definitions in FIGFont files are including final @ subcharacter at the end of each line. An IllegalArgumentException is thrown if theCharacterLines is empty or null.
theCharacterLines
- an array of the lines
of subcharacters the character is defined by.Method Detail |
public java.lang.String[] getCharacterLines()
line 0 :" AA " line 1 :" A A " line 2 :" AAAA " line 3 :" A A " line 4 :" A A " line 5 :" " line 6 :" "
public java.lang.String getCharacterLine(int theLineNumber)
theLineNumber
- the line number, the first line beeing numbered
0. For example, the last line of subcharacters the character 'A' is
defined by in the alphabet FIGFont is line number 6, and
its value is :
line 6 :" "
public int getNumberOfFrontSpacesForLine(int theLineNumber)
theLineNumber
-
public int getNumberOfBackSpacesForLine(int theLineNumber)
theLineNumber
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |