Package ipsk.swing.symbols.unicode
Interface CodePage
-
- All Known Implementing Classes:
BasicLatin
,DefaultCodePage
,Greek
,Ipa
,LatinExtA
,LatinExtB
,LatinSupp
public interface CodePage
The interfaceCodePage
should 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
,lastCharacter
andname
for which the get- and set-methods are declared in this interface. All variables should be set in the constructor.A default implementation
DefaultCodePage
is 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 int
getFirstCharacter()
Get the value of the first character in the range.int
getLastCharacter()
Get the value of the last character in the range.java.lang.String
getName()
Get the name of the code page.void
setFirstCharacter(int v)
Set the value of the first character in the range.void
setLastCharacter(int v)
Set the value of the last character in the range.void
setName(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
int
value of a character
-
setFirstCharacter
void setFirstCharacter(int v)
Set the value of the first character in the range.- Parameters:
v
- theint
value of a character
-
getLastCharacter
int getLastCharacter()
Get the value of the last character in the range.- Returns:
- the
int
value of a character
-
setLastCharacter
void setLastCharacter(int v)
Set the value of the last character in the range.- Parameters:
v
- theint
value of a character
-
getName
java.lang.String getName()
Get the name of the code page.- Returns:
- the name as
String
value
-
setName
void setName(java.lang.String v)
Set the name of the code page.- Parameters:
v
- the name asString
value
-
-