Class ScreenshotCommand
java.lang.Object
com.realtime.crossfire.jxclient.commands.AbstractCommand
com.realtime.crossfire.jxclient.commands.ScreenshotCommand
- All Implemented Interfaces:
Command
Implements the "screenshot" command. It writes the current window contents
into a .png file.
-
Constructor Summary
ConstructorsConstructorDescriptionScreenshotCommand(@NotNull JXCWindowRenderer windowRenderer, @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull ScreenshotFiles screenshotFiles) Creates a new instance. -
Method Summary
Methods inherited from class com.realtime.crossfire.jxclient.commands.AbstractCommand
drawInfo, drawInfo, drawInfoError, getCommandName, toString
-
Constructor Details
-
ScreenshotCommand
public ScreenshotCommand(@NotNull @NotNull JXCWindowRenderer windowRenderer, @NotNull @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull @NotNull ScreenshotFiles screenshotFiles) Creates a new instance.- Parameters:
windowRenderer- the renderer to usecrossfireServerConnection- the connection instancescreenshotFiles- the screenshot files instance for creating screenshot file names
-
-
Method Details
-
allArguments
public boolean allArguments()Description copied from interface:CommandReturns whether all remaining commands should be included as arguments.- Returns:
- whether all remaining commands should be included as arguments
-
execute
Description copied from interface:CommandExecutes the command with the given arguments.- Parameters:
args- the command arguments
-
getHelp
Description copied from interface:CommandReturns the help text for this command.- Returns:
- the help text
-