Modifier and Type | Class and Description |
---|---|
static class |
DeviceApi.SDialog.Buffer
The display buffers of the simple dialog mode.
|
static class |
DeviceApi.SDialog.ClearBehaviour
Which display buffers to clear.
|
static class |
DeviceApi.SDialog.LoadOption
Whether to load an existing font from the device file system.
|
static interface |
DeviceApi.SDialog.PenCallback
The callback to call when the pen is used in the simple dialog mode.
|
static class |
DeviceApi.SDialog.PenEvent
The parameter of the
DeviceApi.SDialog.PenCallback . |
static class |
DeviceApi.SDialog.Text
A text in the simple dialog mode.
|
static class |
DeviceApi.SDialog.UpdateBehaviour
How to update the display in the simple dialog mode.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
clearDisplay(DeviceApi.SDialog.ClearBehaviour behaviour)
Clears the dispay.
|
static boolean |
setFont(Path fontPath)
Sets the font to use for subsequent text writes.
|
static boolean |
setFont(Path fontPath,
DeviceApi.SDialog.LoadOption loadOption)
Sets the font to use for subsequent text writes.
|
static boolean |
setImage(BufferedImage image,
int column,
int row,
DeviceApi.SDialog.Buffer whichBuffer)
Writes an image.
|
static boolean |
setMode()
Sets the device to the simple dialog mode.
|
static boolean |
setPenCallback(DeviceApi.SDialog.PenCallback callback)
Sets the callback to call when the pen is used in the simple dialog
mode.
|
static boolean |
setText(DeviceApi.SDialog.Text text)
Writes text.
|
static boolean |
updateDisplay()
Switches the display buffers.
|
static boolean |
updateDisplay(DeviceApi.SDialog.UpdateBehaviour behaviour)
Updates the display.
|
public static boolean setPenCallback(DeviceApi.SDialog.PenCallback callback)
callback
- The callback.public static boolean setMode()
public static boolean setImage(BufferedImage image, int column, int row, DeviceApi.SDialog.Buffer whichBuffer)
image
- The image to write.column
- The column of the upper left corner to display the
image at.row
- The row of the upper left corner to display the image at.whichBuffer
- The dispay buffer to write toDeviceApi.SDialog.Buffer.Current
to change the visible buffer. Write to the DeviceApi.SDialog.Buffer.Shadow
to
prepare several changes to take effect in one
updateDisplay()
step.public static boolean updateDisplay()
public static boolean updateDisplay(DeviceApi.SDialog.UpdateBehaviour behaviour)
behaviour
- How to update.public static boolean clearDisplay(DeviceApi.SDialog.ClearBehaviour behaviour)
behaviour
- What to clear.public static boolean setFont(Path fontPath)
fontPath
- The path to the font to use.setText(com.so.net.DeviceApi.SDialog.Text)
to write text.public static boolean setFont(Path fontPath, DeviceApi.SDialog.LoadOption loadOption)
fontPath
- The path to the font to use.loadOption
- Where to load the font from.setText(com.so.net.DeviceApi.SDialog.Text)
to write text.public static boolean setText(DeviceApi.SDialog.Text text)
text
- The text to write.Copyright © 2024. All rights reserved.