|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.contentsystem.items.ContentItem
synergynetframework.appsystem.contentsystem.items.OrthoContentItem
synergynetframework.appsystem.contentsystem.items.QuadContentItem
synergynetframework.appsystem.contentsystem.items.Keyboard
public class Keyboard
The Class Keyboard.
Field Summary |
---|
Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem |
---|
removable |
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem |
---|
name |
Constructor Summary | |
---|---|
Keyboard(ContentSystem contentSystem,
java.lang.String name)
Instantiates a new keyboard. |
Method Summary | |
---|---|
void |
addKeyListener(MTKeyListener l)
Adds the key listener. |
void |
fireKeyPressed(java.awt.event.KeyEvent evt)
Fire key pressed. |
void |
fireKeyReleased(java.awt.event.KeyEvent evt)
Fire key released. |
java.util.ArrayList<Key> |
getCurrentKeysPressed()
Gets the current keys pressed. |
java.net.URL |
getKeyboardImageResource()
Gets the keyboard image resource. |
java.util.List<Key> |
getKeyDefinitions()
Gets the key definitions. |
float |
getPixelsPerUnit()
Gets the pixels per unit. |
boolean |
isKeyPressed(int vk)
Checks if is key pressed. |
void |
setKeyboardImageResource(java.net.URL keyboardImageResource)
Sets the keyboard image resource. |
void |
setKeyDefinitions(java.util.List<Key> keyDefinitions)
Sets the key definitions. |
void |
setPixelsPerUnit(float pixelsPerUnit)
Sets the pixels per unit. |
void |
setRotateTranslateScalable(boolean isEnabled,
boolean overRide)
Sets the rotate translate scalable. |
Methods inherited from class synergynetframework.appsystem.contentsystem.items.QuadContentItem |
---|
addSizeChangeListener, clone, getHeight, getWidth, isAutoFitSize, removeSizeChangeListener, setAutoFit, setAutoFitSize, setHeight, setWidth |
Methods inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem |
---|
addMultitouchListener, canManipulate, contains, generateUniqueName, getAngle, getBackGround, getBackgroundColour, getBorder, getBorderColour, getBorderSize, getContentSystem, getId, getImplementationObject, getLocalLocation, getName, getNote, getResource, getScale, hasCollision, init, initImplementationObjet, isBoundaryEnabled, isVisible, setAngle, setBackGround, setBackgroundColour, setBorder, setBorderColour, setBorderSize, setBoundaryEnabled, setContentSystem, setId, setLocalLocation, setLocalLocation, setLocalLocation, setManipulate, setNote, setResource, setScale, setScale, setVisible, setVisible, update, update |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IQuadContentItemImplementation |
---|
setAutoFitSize, setHeight, setWidth |
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IContentItemImplementation |
---|
addMultitouchListener, contains, getImplementationObject, hasCollision, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update |
Constructor Detail |
---|
public Keyboard(ContentSystem contentSystem, java.lang.String name)
contentSystem
- the content systemname
- the nameMethod Detail |
---|
public void addKeyListener(MTKeyListener l)
l
- the lpublic void fireKeyPressed(java.awt.event.KeyEvent evt)
evt
- the evtpublic void fireKeyReleased(java.awt.event.KeyEvent evt)
evt
- the evtpublic java.util.ArrayList<Key> getCurrentKeysPressed()
IKeyboardImplementation
getCurrentKeysPressed
in interface IKeyboardImplementation
public java.net.URL getKeyboardImageResource()
public java.util.List<Key> getKeyDefinitions()
public float getPixelsPerUnit()
public boolean isKeyPressed(int vk)
IKeyboardImplementation
isKeyPressed
in interface IKeyboardImplementation
vk
- the vk
public void setKeyboardImageResource(java.net.URL keyboardImageResource)
IKeyboardImplementation
setKeyboardImageResource
in interface IKeyboardImplementation
keyboardImageResource
- the new keyboard image resourcepublic void setKeyDefinitions(java.util.List<Key> keyDefinitions)
IKeyboardImplementation
setKeyDefinitions
in interface IKeyboardImplementation
keyDefinitions
- the new key definitionspublic void setPixelsPerUnit(float pixelsPerUnit)
IKeyboardImplementation
setPixelsPerUnit
in interface IKeyboardImplementation
pixelsPerUnit
- the new pixels per unitpublic void setRotateTranslateScalable(boolean isEnabled, boolean overRide)
IKeyboardImplementation
setRotateTranslateScalable
in interface IKeyboardImplementation
isEnabled
- the is enabledoverRide
- the over ride
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |