synergynetframework.appsystem.contentsystem.jme.items
Class JMEKeyboard

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
      extended by synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.jme.items.JMEQuadContentItem
              extended by synergynetframework.appsystem.contentsystem.jme.items.JMEKeyboard
All Implemented Interfaces:
IContentItemImplementation, IKeyboardImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, ScreenCursorListener, OrthoBringToTop.OrthoBringToTopListener, OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener, OrthoCursorEventDispatcher.CommonCursorEventListener, OrthoSnap.SnapListener, FlickMover.FlickListener

public class JMEKeyboard
extends JMEQuadContentItem
implements IKeyboardImplementation

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.JMEOrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addMultitouchListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, cursorRightClicked, flick, getMaxScale, getMinScale, isFlickable, ItemBringToTop, itemFlicked, itemMoved, itemRotated, itemScaled, itemSnapped, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, screenCursorChanged, screenCursorClicked, screenCursorPressed, screenCursorReleased, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setFixLocations, setLocalLocation, setName, setOrder, setRightClickDistance, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher, update, update
 
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.IOrthoContentItemImplementation
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, flick, getMaxScale, getMinScale, isFlickable, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setFixLocations, setOrder, setRightClickDistance, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
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

JMEKeyboard

public JMEKeyboard(ContentItem contentItem)
Instantiates a new JME keyboard.

Parameters:
contentItem - the content item
Method Detail

cursorDragged

public void cursorDragged(long id,
                          int x,
                          int y)
Cursor dragged.

Parameters:
id - the id
x - the x
y - the y

cursorPressed

public void cursorPressed(OrthoCursorEventDispatcher commonCursorEventDispatcher,
                          ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from interface: OrthoCursorEventDispatcher.CommonCursorEventListener
Cursor pressed.

Specified by:
cursorPressed in interface OrthoCursorEventDispatcher.CommonCursorEventListener
Overrides:
cursorPressed in class JMEQuadContentItem
Parameters:
commonCursorEventDispatcher - the common cursor event dispatcher
c - the c
event - the event

cursorReleased

public void cursorReleased(OrthoCursorEventDispatcher commonCursorEventDispatcher,
                           ScreenCursor c,
                           MultiTouchCursorEvent event)
Description copied from interface: OrthoCursorEventDispatcher.CommonCursorEventListener
Cursor released.

Specified by:
cursorReleased in interface OrthoCursorEventDispatcher.CommonCursorEventListener
Overrides:
cursorReleased in class JMEQuadContentItem
Parameters:
commonCursorEventDispatcher - the common cursor event dispatcher
c - the c
event - the event

getCurrentKeysPressed

public java.util.ArrayList<Key> getCurrentKeysPressed()
Description copied from interface: IKeyboardImplementation
Gets the current keys pressed.

Specified by:
getCurrentKeysPressed in interface IKeyboardImplementation
Returns:
the current keys pressed

getImageHeight

public int getImageHeight()
Gets the image height.

Returns:
the image height

getImageWidth

public int getImageWidth()
Gets the image width.

Returns:
the image width

isKeyPressed

public boolean isKeyPressed(int vk)
Description copied from interface: IKeyboardImplementation
Checks if is key pressed.

Specified by:
isKeyPressed in interface IKeyboardImplementation
Parameters:
vk - the vk
Returns:
true, if is key pressed

setAutoFitSize

public void setAutoFitSize(boolean isEnabled)
Description copied from interface: IQuadContentItemImplementation
Sets the auto fit size.

Specified by:
setAutoFitSize in interface IQuadContentItemImplementation
Overrides:
setAutoFitSize in class JMEQuadContentItem
Parameters:
isEnabled - the new auto fit size

setBackGround

public void setBackGround(Background backGround)
Description copied from interface: IContentItemImplementation
Sets the back ground.

Specified by:
setBackGround in interface IContentItemImplementation
Overrides:
setBackGround in class JMEOrthoContentItem
Parameters:
backGround - the new back ground

setBorder

public void setBorder(Border border)
Description copied from interface: IContentItemImplementation
Sets the border.

Specified by:
setBorder in interface IContentItemImplementation
Overrides:
setBorder in class JMEOrthoContentItem
Parameters:
border - the new border

setHeight

public void setHeight(int height)
Description copied from interface: IQuadContentItemImplementation
Sets the height.

Specified by:
setHeight in interface IQuadContentItemImplementation
Overrides:
setHeight in class JMEQuadContentItem
Parameters:
height - the new height

setKeyboardImageResource

public void setKeyboardImageResource(java.net.URL keyboardImageResource)
Description copied from interface: IKeyboardImplementation
Sets the keyboard image resource.

Specified by:
setKeyboardImageResource in interface IKeyboardImplementation
Parameters:
keyboardImageResource - the new keyboard image resource

setKeyDefinitions

public void setKeyDefinitions(java.util.List<Key> keyDefinitions)
Description copied from interface: IKeyboardImplementation
Sets the key definitions.

Specified by:
setKeyDefinitions in interface IKeyboardImplementation
Parameters:
keyDefinitions - the new key definitions

setPixelsPerUnit

public void setPixelsPerUnit(float pixelsPerUnit)
Description copied from interface: IKeyboardImplementation
Sets the pixels per unit.

Specified by:
setPixelsPerUnit in interface IKeyboardImplementation
Parameters:
pixelsPerUnit - the new pixels per unit

setRotateTranslateScalable

public void setRotateTranslateScalable(boolean isEnable)
Description copied from interface: IOrthoContentItemImplementation
Sets the rotate translate scalable.

Specified by:
setRotateTranslateScalable in interface IOrthoContentItemImplementation
Overrides:
setRotateTranslateScalable in class JMEOrthoContentItem
Parameters:
isEnable - the new rotate translate scalable

setRotateTranslateScalable

public void setRotateTranslateScalable(boolean isEnabled,
                                       boolean overRide)
Description copied from interface: IKeyboardImplementation
Sets the rotate translate scalable.

Specified by:
setRotateTranslateScalable in interface IKeyboardImplementation
Parameters:
isEnabled - the is enabled
overRide - the over ride

setWidth

public void setWidth(int width)
Description copied from interface: IQuadContentItemImplementation
Sets the width.

Specified by:
setWidth in interface IQuadContentItemImplementation
Overrides:
setWidth in class JMEQuadContentItem
Parameters:
width - the new width