Package ipsk.swing.symbols.unicode
Interface CodePage
-
- All Known Implementing Classes:
BasicLatin,DefaultCodePage,Greek,Ipa,LatinExtA,LatinExtB,LatinSupp
public interface CodePageThe interfaceCodePageshould be used to represent a range of Unicode characters. This range is defined by the first and the last character in the range, both as integer values. In addition a name has to be assigned to the range.An implementation of this interface must at least provide the instance variables
firstCharacter,lastCharacterandnamefor which the get- and set-methods are declared in this interface. All variables should be set in the constructor.A default implementation
DefaultCodePageis provided in order to facilitate the implementation of further code pages.- Version:
- $Revision: 1.1 $
- Author:
- Simone Leonardi
- See Also:
- http://www.unicode.org/charts/,
DefaultCodePage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetFirstCharacter()Get the value of the first character in the range.intgetLastCharacter()Get the value of the last character in the range.java.lang.StringgetName()Get the name of the code page.voidsetFirstCharacter(int v)Set the value of the first character in the range.voidsetLastCharacter(int v)Set the value of the last character in the range.voidsetName(java.lang.String v)Set the name of the code page.
-
-
-
Method Detail
-
getFirstCharacter
int getFirstCharacter()
Get the value of the first character in the range.- Returns:
- the
intvalue of a character
-
setFirstCharacter
void setFirstCharacter(int v)
Set the value of the first character in the range.- Parameters:
v- theintvalue of a character
-
getLastCharacter
int getLastCharacter()
Get the value of the last character in the range.- Returns:
- the
intvalue of a character
-
setLastCharacter
void setLastCharacter(int v)
Set the value of the last character in the range.- Parameters:
v- theintvalue of a character
-
getName
java.lang.String getName()
Get the name of the code page.- Returns:
- the name as
Stringvalue
-
setName
void setName(java.lang.String v)
Set the name of the code page.- Parameters:
v- the name asStringvalue
-
-