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 |
create(java.io.InputStream input)
Loads keyboard layout from a stream.
|
static KeyboardLayout |
create(java.lang.String fileName)
Loads keyboard layout from a file.
|
double |
getHeight()
Gets the keyboard layout height.
|
long |
getKeyboardLayoutId()
Gets the layout id.
|
java.util.List<Key> |
getKeys()
Gets the keys displayed in this layout.
|
double |
getWidth()
Gets the keyboard layout width.
|
void |
setHeight(double value)
Sets the keyboard layout height.
|
void |
setKeyboardLayoutId(long value)
Sets the layout id.
|
void |
setKeys(java.util.List<Key> value)
Sets the keys displayed in 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 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.