Package ipsk.swing.symbols.unicode
Class DefaultCodePage
- java.lang.Object
-
- ipsk.swing.symbols.unicode.DefaultCodePage
-
- All Implemented Interfaces:
CodePage
public class DefaultCodePage extends java.lang.Object implements CodePage
An instance of the classDefaultCodePagerepresents 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 can be assigned to the range.In this default implementation of the interface
CodePagethe code page ranges from 0 to 0 and has the name "CodePage". In order to get a useful code page a new class may be derived from this one which overwrites the constructor in a way that it sets the first and the last character and an appropriate name for the code page.- Version:
- $Revision: 1.1 $
- Author:
- Simone Leonardi
- See Also:
- http://www.unicode.org/charts/
-
-
Constructor Summary
Constructors Constructor Description DefaultCodePage()Creates a newCodePageinstance.
-
Method Summary
All Methods Instance Methods Concrete 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
public int getFirstCharacter()
Get the value of the first character in the range.- Specified by:
getFirstCharacterin interfaceCodePage- Returns:
- the
intvalue of a character
-
setFirstCharacter
public void setFirstCharacter(int v)
Set the value of the first character in the range.- Specified by:
setFirstCharacterin interfaceCodePage- Parameters:
v- theintvalue of a character
-
getLastCharacter
public int getLastCharacter()
Get the value of the last character in the range.- Specified by:
getLastCharacterin interfaceCodePage- Returns:
- the
intvalue of a character
-
setLastCharacter
public void setLastCharacter(int v)
Set the value of the last character in the range.- Specified by:
setLastCharacterin interfaceCodePage- Parameters:
v- theintvalue of a character
-
getName
public java.lang.String getName()
Get the name of the code page.
-
-