class LogicalTerminalConversionParams extends java.lang.Object implements CoordinatesConversionParams
LogicalTerminal
.Modifier and Type | Class and Description |
---|---|
private static class |
LogicalTerminalConversionParams.Params
Container for storing the conversion parameters.
|
Modifier and Type | Field and Description |
---|---|
private static ContextLocal<LogicalTerminalConversionParams.Params> |
params
Context-local instance of the cached parameters
|
CHUI_PIXELS_PER_COLUMN, CHUI_PIXELS_PER_ROW
Constructor and Description |
---|
LogicalTerminalConversionParams() |
Modifier and Type | Method and Description |
---|---|
int |
getFontHeight(WidgetId windowId,
int font)
Get the height of the given font.
|
int |
getFontWidth(WidgetId windowId,
int font)
Get the width of the given font.
|
int |
getPixelsPerColumn()
Returns the number of pixels in each column of the display.
|
int |
getPixelsPerRow()
Returns the number of pixels in each row of the display.
|
boolean |
isChui()
Flag indicating the ChUI or GUI mode.
|
private static final ContextLocal<LogicalTerminalConversionParams.Params> params
public boolean isChui()
isChui
in interface CoordinatesConversionParams
public int getPixelsPerColumn()
getPixelsPerColumn
in interface CoordinatesConversionParams
public int getPixelsPerRow()
getPixelsPerRow
in interface CoordinatesConversionParams
public int getFontWidth(WidgetId windowId, int font)
getFontWidth
in interface CoordinatesConversionParams
windowId
- The ID of the window from which the font-table is used.font
- Font index.public int getFontHeight(WidgetId windowId, int font)
getFontHeight
in interface CoordinatesConversionParams
windowId
- The ID of the window from which the font-table is used.font
- Font index.