|
Crossfire JXClient, Trunk
R20561
|
Implements the "screenshot" command. More...
Inheritance diagram for com.realtime.crossfire.jxclient.commands.ScreenshotCommand:
Collaboration diagram for com.realtime.crossfire.jxclient.commands.ScreenshotCommand:Public Member Functions | |||
| boolean | allArguments () | ||
Returns whether all remaining commands should be included as arguments.
| |||
| void | execute (@NotNull final String args) | ||
Executes the command with the given arguments.
| |||
| ScreenshotCommand (@NotNull final JXCWindowRenderer windowRenderer, @NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final ScreenshotFiles screenshotFiles) | |||
| Creates a new instance. More... | |||
Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |||
| String | getCommandName () | ||
Returns the name of the command.
| |||
| String | toString () | ||
Private Attributes | |
| final ScreenshotFiles | screenshotFiles |
| The ScreenshotFiles instance for creating screenshot file names. More... | |
| final JXCWindowRenderer | windowRenderer |
| The renderer to use. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |
| AbstractCommand (@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection) | |
| Creates a new instance. More... | |
| void | drawInfo (@NotNull final String message) |
| Displays a regular output message. More... | |
| void | drawInfo (@NotNull final String message, final int color) |
| Displays a message. More... | |
| void | drawInfoError (@NotNull final String message) |
| Displays an error message. More... | |
Implements the "screenshot" command.
It write the current window contents into a .png file.
Definition at line 40 of file ScreenshotCommand.java.
| com.realtime.crossfire.jxclient.commands.ScreenshotCommand.ScreenshotCommand | ( | @NotNull final JXCWindowRenderer | windowRenderer, |
| @NotNull final CrossfireServerConnection | crossfireServerConnection, | ||
| @NotNull final ScreenshotFiles | screenshotFiles | ||
| ) |
Creates a new instance.
| windowRenderer | the renderer to use |
| crossfireServerConnection | the connection instance |
| screenshotFiles | the screenshot files instance for creating screenshot file names |
Definition at line 61 of file ScreenshotCommand.java.
References com.realtime.crossfire.jxclient.commands.ScreenshotCommand.screenshotFiles, and com.realtime.crossfire.jxclient.commands.ScreenshotCommand.windowRenderer.
| boolean com.realtime.crossfire.jxclient.commands.ScreenshotCommand.allArguments | ( | ) |
Returns whether all remaining commands should be included as arguments.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 71 of file ScreenshotCommand.java.
| void com.realtime.crossfire.jxclient.commands.ScreenshotCommand.execute | ( | @NotNull final String | args | ) |
Executes the command with the given arguments.
| args | the command arguments |
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 79 of file ScreenshotCommand.java.
References com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfo(), com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfoError(), com.realtime.crossfire.jxclient.gui.commands.ScreenshotFiles.getFile(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.getWindowHeight(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.getWindowWidth(), and com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.redraw().
Here is the call graph for this function:
|
private |
The ScreenshotFiles instance for creating screenshot file names.
Definition at line 52 of file ScreenshotCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.ScreenshotCommand.ScreenshotCommand().
|
private |
The renderer to use.
Definition at line 46 of file ScreenshotCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.ScreenshotCommand.ScreenshotCommand().