public class KeyboardLayout
extends java.lang.Object
| Constructor and Description |
|---|
KeyboardLayout()
Initializes a new instance of the KeyboardLayout class.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyboardLayout |
compactLayout()
Creates a compact keyboard layout without functional F-keys or redundant modifiers.
|
static KeyboardLayout |
create(java.io.InputStream input)
Loads keyboard layout from a stream.
|
static KeyboardLayout |
create(java.lang.String fileName)
Loads keyboard layout from a file.
|
static KeyboardLayout |
defaultLayout()
Creates a default keyboard layout depending on current language.
|
static KeyboardLayout |
extendedLayout()
Creates an extended keyboard layout depending on current language.
|
double |
getHeight()
Gets the keyboard layout height.
|
java.lang.String |
getImage()
Gets the path to an image that can be used to represent this layout.
|
long |
getKeyboardLayoutId()
Gets the layout id.
|
java.util.List<Key> |
getKeys()
Gets the keys displayed in this layout.
|
java.lang.String |
getLabel()
Gets a text label that can be used to represent this layout.
|
double |
getWidth()
Gets the keyboard layout width.
|
static KeyboardLayout |
numeric3x4Layout()
Creates a 3x4 numeric keyboard layout.
|
static KeyboardLayout |
numeric4x4Layout()
Creates a 4x4 numeric keyboard layout.
|
void |
setHeight(double value)
Sets the keyboard layout height.
|
void |
setImage(java.lang.String value)
Sets the path to an image that can be used to represent this layout.
|
void |
setKeyboardLayoutId(long value)
Sets the layout id.
|
void |
setKeys(java.util.List<Key> value)
Sets the keys displayed in this layout.
|
void |
setLabel(java.lang.String value)
Sets a text label that can be used to represent this layout.
|
void |
setWidth(double value)
Sets the keyboard layout width.
|
public KeyboardLayout()
public void setKeys(java.util.List<Key> value)
value - A list of Key objects.public java.util.List<Key> getKeys()
Key objects.public void setWidth(double value)
value - A double value relatively to which keys are positioned horizontally.public double getWidth()
public void setHeight(double value)
value - A double value relatively to which keys are positioned vertically.public double getHeight()
public void setKeyboardLayoutId(long value)
value - Keyboard layout identifier.public long getKeyboardLayoutId()
public java.lang.String getImage()
public void setImage(java.lang.String value)
value - A string containing the path to the image.public java.lang.String getLabel()
public void setLabel(java.lang.String value)
value - A string containing the label.public static KeyboardLayout defaultLayout()
public static KeyboardLayout extendedLayout()
public static KeyboardLayout numeric3x4Layout()
public static KeyboardLayout numeric4x4Layout()
public static KeyboardLayout compactLayout()
public static KeyboardLayout create(java.lang.String fileName)
fileName - Path to a file containing layout XML.public static KeyboardLayout create(java.io.InputStream input)
input - A stream containing layout XML.