Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | allArguments () |
void | execute (@NotNull final String args) |
String | getHelp () |
ScreenshotCommand (@NotNull final JXCWindowRenderer windowRenderer, @NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final ScreenshotFiles screenshotFiles) | |
Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |
String | getCommandName () |
String | toString () |
Private Attributes | |
final ScreenshotFiles | screenshotFiles |
final JXCWindowRenderer | windowRenderer |
Additional Inherited Members | |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |
AbstractCommand (@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection) | |
void | drawInfo (@NotNull final String message) |
void | drawInfo (@NotNull final String message, final int color) |
void | drawInfoError (@NotNull final String message) |
Implements the "screenshot" command. It writes the current window contents into a .png file.
Definition at line 42 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 63 of file ScreenshotCommand.java.
References com.realtime.crossfire.jxclient.commands.AbstractCommand.crossfireServerConnection, 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 70 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 75 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(), com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.redraw(), com.realtime.crossfire.jxclient.commands.ScreenshotCommand.screenshotFiles, and com.realtime.crossfire.jxclient.commands.ScreenshotCommand.windowRenderer.
String com.realtime.crossfire.jxclient.commands.ScreenshotCommand.getHelp | ( | ) |
Returns the help text for this command.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 112 of file ScreenshotCommand.java.
|
private |
The ScreenshotFiles instance for creating screenshot file names.
Definition at line 54 of file ScreenshotCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.ScreenshotCommand.execute(), and com.realtime.crossfire.jxclient.commands.ScreenshotCommand.ScreenshotCommand().
|
private |
The renderer to use.
Definition at line 48 of file ScreenshotCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.ScreenshotCommand.execute(), and com.realtime.crossfire.jxclient.commands.ScreenshotCommand.ScreenshotCommand().