Class GraphicSetState
java.lang.Object
org.springframework.shell.test.jediterm.terminal.emulator.charset.GraphicSetState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
designateGraphicSet
(int num, CharacterSet characterSet) void
designateGraphicSet
(GraphicSet graphicSet, char designator) Designates the given graphic set to the character set designator.getGL()
Returns the (possibly overridden) GL graphic set.int
getGR()
Returns the GR graphic set.getGraphicSet
(int index) Returns the current graphic set (one of four).char
map
(char ch) Returns the mapping for the given character.void
overrideGL
(int index) Overrides the GL graphic set for the next written character.void
Resets the state to its initial values.void
setGL
(int index) Selects the graphic set for GL.void
setGR
(int index) Selects the graphic set for GR.
-
Constructor Details
-
GraphicSetState
public GraphicSetState()
-
-
Method Details
-
designateGraphicSet
Designates the given graphic set to the character set designator.- Parameters:
graphicSet
- the graphic set to designate;designator
- the designator of the character set.
-
designateGraphicSet
-
getGL
Returns the (possibly overridden) GL graphic set. -
getGR
Returns the GR graphic set. -
getGraphicSet
Returns the current graphic set (one of four).- Parameters:
index
- the index of the graphic set, 0..3.
-
map
public char map(char ch) Returns the mapping for the given character.- Parameters:
ch
- the character to map.- Returns:
- the mapped character.
-
overrideGL
public void overrideGL(int index) Overrides the GL graphic set for the next written character.- Parameters:
index
- the graphic set index, >= 0 && < 3.
-
resetState
public void resetState()Resets the state to its initial values. -
setGL
public void setGL(int index) Selects the graphic set for GL.- Parameters:
index
- the graphic set index, >= 0 && <= 3.
-
setGR
public void setGR(int index) Selects the graphic set for GR.- Parameters:
index
- the graphic set index, >= 0 && <= 3.
-
getGLOverrideIndex
public int getGLOverrideIndex()
-