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 SummaryConstructors Constructor Description DefaultCodePage()Creates a newCodePageinstance.
 - 
Method SummaryAll 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- 
getFirstCharacterpublic int getFirstCharacter() Get the value of the first character in the range.- Specified by:
- getFirstCharacterin interface- CodePage
- Returns:
- the intvalue of a character
 
 - 
setFirstCharacterpublic void setFirstCharacter(int v) Set the value of the first character in the range.- Specified by:
- setFirstCharacterin interface- CodePage
- Parameters:
- v- the- intvalue of a character
 
 - 
getLastCharacterpublic int getLastCharacter() Get the value of the last character in the range.- Specified by:
- getLastCharacterin interface- CodePage
- Returns:
- the intvalue of a character
 
 - 
setLastCharacterpublic void setLastCharacter(int v) Set the value of the last character in the range.- Specified by:
- setLastCharacterin interface- CodePage
- Parameters:
- v- the- intvalue of a character
 
 - 
getNamepublic java.lang.String getName() Get the name of the code page.
 
- 
 
-