Class GraphicSetState
java.lang.Object
org.springframework.shell.test.jediterm.terminal.emulator.charset.GraphicSetState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddesignateGraphicSet(int num, CharacterSet characterSet) voiddesignateGraphicSet(GraphicSet graphicSet, char designator) Designates the given graphic set to the character set designator.getGL()Returns the (possibly overridden) GL graphic set.intgetGR()Returns the GR graphic set.getGraphicSet(int index) Returns the current graphic set (one of four).charmap(char ch) Returns the mapping for the given character.voidoverrideGL(int index) Overrides the GL graphic set for the next written character.voidResets the state to its initial values.voidsetGL(int index) Selects the graphic set for GL.voidsetGR(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()
-