|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.jme.cursorsystem.MultiTouchElement
synergynetframework.jme.cursorsystem.elements.MultiTouchButton
public class MultiTouchButton
The Class MultiTouchButton.
Nested Class Summary | |
---|---|
static interface |
MultiTouchButton.MultiTouchButtonListener
The listener interface for receiving multiTouchButton events. |
Field Summary |
---|
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement |
---|
AXIS_Z, DIRECTION_UP |
Constructor Summary | |
---|---|
MultiTouchButton(com.jme.scene.Spatial s)
Instantiates a new multi touch button. |
Method Summary | |
---|---|
void |
addButtonListener(MultiTouchButton.MultiTouchButtonListener l)
Adds the button listener. |
void |
cursorChanged(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor changed. |
void |
cursorClicked(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor clicked. |
void |
cursorPressed(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor pressed. |
void |
cursorReleased(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor released. |
double |
getDragDistanceFromCursorPressedEvent()
Gets the drag distance from cursor pressed event. |
MultiTouchCursorEvent |
getLastChangedEvent()
Gets the last changed event. |
MultiTouchCursorEvent |
getLastClickedEvent()
Gets the last clicked event. |
MultiTouchCursorEvent |
getLastPressedEvent()
Gets the last pressed event. |
MultiTouchCursorEvent |
getLastReleasedEvent()
Gets the last released event. |
java.lang.Object |
getProperty(java.lang.String key)
Gets the property. |
void |
removeButtonListener(MultiTouchButton.MultiTouchButtonListener l)
Removes the button listener. |
void |
setLastChangedEvent(MultiTouchCursorEvent lastChangedEvent)
Sets the last changed event. |
void |
setLastClickedEvent(MultiTouchCursorEvent lastClickedEvent)
Sets the last clicked event. |
void |
setLastPressedEvent(MultiTouchCursorEvent lastPressedEvent)
Sets the last pressed event. |
void |
setLastReleasedEvent(MultiTouchCursorEvent lastReleasedEvent)
Sets the last released event. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the property. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiTouchButton(com.jme.scene.Spatial s)
s
- the sMethod Detail |
---|
public void addButtonListener(MultiTouchButton.MultiTouchButtonListener l)
l
- the lpublic void cursorChanged(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorChanged
in class MultiTouchElement
c
- the cevent
- the eventpublic void cursorClicked(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorClicked
in class MultiTouchElement
c
- the cevent
- the eventpublic void cursorPressed(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorPressed
in class MultiTouchElement
c
- the cevent
- the eventpublic void cursorReleased(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorReleased
in class MultiTouchElement
c
- the cevent
- the eventpublic double getDragDistanceFromCursorPressedEvent()
public MultiTouchCursorEvent getLastChangedEvent()
public MultiTouchCursorEvent getLastClickedEvent()
public MultiTouchCursorEvent getLastPressedEvent()
public MultiTouchCursorEvent getLastReleasedEvent()
public java.lang.Object getProperty(java.lang.String key)
key
- the key
public void removeButtonListener(MultiTouchButton.MultiTouchButtonListener l)
l
- the lpublic void setLastChangedEvent(MultiTouchCursorEvent lastChangedEvent)
lastChangedEvent
- the new last changed eventpublic void setLastClickedEvent(MultiTouchCursorEvent lastClickedEvent)
lastClickedEvent
- the new last clicked eventpublic void setLastPressedEvent(MultiTouchCursorEvent lastPressedEvent)
lastPressedEvent
- the new last pressed eventpublic void setLastReleasedEvent(MultiTouchCursorEvent lastReleasedEvent)
lastReleasedEvent
- the new last released eventpublic void setProperty(java.lang.String key, java.lang.Object value)
key
- the keyvalue
- the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |