public abstract class ClientCoordinatesConversionParams extends java.lang.Object implements CoordinatesConversionParams
OutputManager
. This implies that the class is relevant only to the
P2J client.CHUI_PIXELS_PER_COLUMN, CHUI_PIXELS_PER_ROW
Constructor and Description |
---|
ClientCoordinatesConversionParams() |
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.
|
protected abstract OutputManager<?> |
getOutputManager()
Returns a valid reference to
OutputManager instance. |
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.
|
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.protected abstract OutputManager<?> getOutputManager()
OutputManager
instance.OutputManager
instance.