|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
synergynetframework.appsystem.contentsystem.jme.items.JMEQuadContentItem
synergynetframework.appsystem.contentsystem.jme.items.JMEKeyboard
public class JMEKeyboard
The Class JMEKeyboard.
Constructor Summary | |
---|---|
JMEKeyboard(ContentItem contentItem)
Instantiates a new JME keyboard. |
Method Summary | |
---|---|
void |
cursorDragged(long id,
int x,
int y)
Cursor dragged. |
void |
cursorPressed(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
Cursor pressed. |
void |
cursorReleased(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
Cursor released. |
java.util.ArrayList<Key> |
getCurrentKeysPressed()
Gets the current keys pressed. |
int |
getImageHeight()
Gets the image height. |
int |
getImageWidth()
Gets the image width. |
boolean |
isKeyPressed(int vk)
Checks if is key pressed. |
void |
setAutoFitSize(boolean isEnabled)
Sets the auto fit size. |
void |
setBackGround(Background backGround)
Sets the back ground. |
void |
setBorder(Border border)
Sets the border. |
void |
setHeight(int height)
Sets the height. |
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 isEnable)
Sets the rotate translate scalable. |
void |
setRotateTranslateScalable(boolean isEnabled,
boolean overRide)
Sets the rotate translate scalable. |
void |
setWidth(int width)
Sets the width. |
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEQuadContentItem |
---|
cursorChanged, cursorClicked |
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem |
---|
contains, getImplementationObject, getLocalLocation, hasCollision, init, setAngle, setBoundaryEnabled, setId, setLocation, setManipulate, setScale, setScale, setVisible, setVisible |
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.IContentItemImplementation |
---|
addMultitouchListener, contains, getImplementationObject, hasCollision, init, setAngle, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update |
Constructor Detail |
---|
public JMEKeyboard(ContentItem contentItem)
contentItem
- the content itemMethod Detail |
---|
public void cursorDragged(long id, int x, int y)
id
- the idx
- the xy
- the ypublic void cursorPressed(OrthoCursorEventDispatcher commonCursorEventDispatcher, ScreenCursor c, MultiTouchCursorEvent event)
OrthoCursorEventDispatcher.CommonCursorEventListener
cursorPressed
in interface OrthoCursorEventDispatcher.CommonCursorEventListener
cursorPressed
in class JMEQuadContentItem
commonCursorEventDispatcher
- the common cursor event dispatcherc
- the cevent
- the eventpublic void cursorReleased(OrthoCursorEventDispatcher commonCursorEventDispatcher, ScreenCursor c, MultiTouchCursorEvent event)
OrthoCursorEventDispatcher.CommonCursorEventListener
cursorReleased
in interface OrthoCursorEventDispatcher.CommonCursorEventListener
cursorReleased
in class JMEQuadContentItem
commonCursorEventDispatcher
- the common cursor event dispatcherc
- the cevent
- the eventpublic java.util.ArrayList<Key> getCurrentKeysPressed()
IKeyboardImplementation
getCurrentKeysPressed
in interface IKeyboardImplementation
public int getImageHeight()
public int getImageWidth()
public boolean isKeyPressed(int vk)
IKeyboardImplementation
isKeyPressed
in interface IKeyboardImplementation
vk
- the vk
public void setAutoFitSize(boolean isEnabled)
IQuadContentItemImplementation
setAutoFitSize
in interface IQuadContentItemImplementation
setAutoFitSize
in class JMEQuadContentItem
isEnabled
- the new auto fit sizepublic void setBackGround(Background backGround)
IContentItemImplementation
setBackGround
in interface IContentItemImplementation
setBackGround
in class JMEOrthoContentItem
backGround
- the new back groundpublic void setBorder(Border border)
IContentItemImplementation
setBorder
in interface IContentItemImplementation
setBorder
in class JMEOrthoContentItem
border
- the new borderpublic void setHeight(int height)
IQuadContentItemImplementation
setHeight
in interface IQuadContentItemImplementation
setHeight
in class JMEQuadContentItem
height
- the new heightpublic 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 isEnable)
IOrthoContentItemImplementation
setRotateTranslateScalable
in interface IOrthoContentItemImplementation
setRotateTranslateScalable
in class JMEOrthoContentItem
isEnable
- the new rotate translate scalablepublic void setRotateTranslateScalable(boolean isEnabled, boolean overRide)
IKeyboardImplementation
setRotateTranslateScalable
in interface IKeyboardImplementation
isEnabled
- the is enabledoverRide
- the over ridepublic void setWidth(int width)
IQuadContentItemImplementation
setWidth
in interface IQuadContentItemImplementation
setWidth
in class JMEQuadContentItem
width
- the new width
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |