public class SwingSessionInfo extends java.lang.Object implements SessionInfo
Constructor and Description |
---|
SwingSessionInfo(jexer.backend.SwingComponent swing,
int textWidth,
int textHeight)
Public constructor.
|
SwingSessionInfo(jexer.backend.SwingComponent swing,
int textWidth,
int textHeight,
int width,
int height)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLanguage()
Language getter.
|
jexer.backend.SwingComponent |
getSwingComponent()
Getter for the underlying Swing component.
|
java.lang.String |
getUsername()
Username getter.
|
int |
getWindowHeight()
Text window height getter.
|
int |
getWindowWidth()
Text window width getter.
|
void |
queryWindowSize()
Re-query the text window size.
|
void |
setLanguage(java.lang.String language)
Language setter.
|
void |
setTextCellDimensions(int textWidth,
int textHeight)
Set the dimensions of a single text cell.
|
void |
setUsername(java.lang.String username)
Username setter.
|
public SwingSessionInfo(jexer.backend.SwingComponent swing, int textWidth, int textHeight)
swing
- the Swing JFrame or JComponenttextWidth
- the width of a cell in pixelstextHeight
- the height of a cell in pixelspublic SwingSessionInfo(jexer.backend.SwingComponent swing, int textWidth, int textHeight, int width, int height)
swing
- the Swing JFrame or JComponenttextWidth
- the width of a cell in pixelstextHeight
- the height of a cell in pixelswidth
- the number of columnsheight
- the number of rowspublic java.lang.String getUsername()
getUsername
in interface SessionInfo
public void setUsername(java.lang.String username)
setUsername
in interface SessionInfo
username
- the valuepublic java.lang.String getLanguage()
getLanguage
in interface SessionInfo
public void setLanguage(java.lang.String language)
setLanguage
in interface SessionInfo
language
- the valuepublic int getWindowWidth()
getWindowWidth
in interface SessionInfo
public int getWindowHeight()
getWindowHeight
in interface SessionInfo
public void queryWindowSize()
queryWindowSize
in interface SessionInfo
public void setTextCellDimensions(int textWidth, int textHeight)
textWidth
- the width of a cell in pixelstextHeight
- the height of a cell in pixelspublic jexer.backend.SwingComponent getSwingComponent()
Copyright © 2019 Kevin Lamonte. Licensed MIT.