|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.input.action.KeyInputAction
com.jme.input.action.KeyScreenShotAction
KeyScreenShotAction allows the user to press a key to take a
screenshot of the current display. This screenshot is saved in the current
running directory with a supplied filename.png. If no filename is supplied it
is saved as screenshot.png.
| Field Summary |
| Fields inherited from class com.jme.input.action.KeyInputAction |
allowsRepeats, key, keyChar, speed |
| Constructor Summary | |
KeyScreenShotAction()
A call to KeyScreenShotAction("screenshot") |
|
KeyScreenShotAction(java.lang.String filename)
Creates a screenshot action that saves to the given filename. |
|
| Method Summary | |
java.lang.String |
getFilename()
Returns the currently set filename that screenshots are saved too. |
void |
performAction(InputActionEvent evt)
performAction saves the current renderer screen to the
filename as an image. |
void |
setFilename(java.lang.String filename)
Sets the name of the file to save screenshots too. |
| Methods inherited from class com.jme.input.action.KeyInputAction |
allowsRepeats, getKey, getKeyChar, getSpeed, setAllowsRepeats, setKey, setKeyChar, setSpeed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public KeyScreenShotAction()
KeyScreenShotAction(java.lang.String)public KeyScreenShotAction(java.lang.String filename)
File class
filename - The filename to save the current renderer screen to.File| Method Detail |
public void performAction(InputActionEvent evt)
performAction saves the current renderer screen to the
filename as an image.
evt - the event that triggered the perform action method.InputAction.performAction(InputActionEvent)public void setFilename(java.lang.String filename)
filename - The filename to save too.public java.lang.String getFilename()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||