public class ScreenshotCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
private ScreenshotFiles |
screenshotFiles
The
ScreenshotFiles instance for creating screenshot file names. |
private JXCWindowRenderer |
windowRenderer
The renderer to use.
|
Constructor and Description |
---|
ScreenshotCommand(JXCWindowRenderer windowRenderer,
CrossfireServerConnection crossfireServerConnection,
ScreenshotFiles screenshotFiles)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allArguments()
Returns whether all remaining commands should be included as arguments.
|
void |
execute(java.lang.String args)
Executes the command with the given arguments.
|
drawInfo, drawInfo, drawInfoError, getCommandName, toString
@NotNull private final ScreenshotFiles screenshotFiles
ScreenshotFiles
instance for creating screenshot file names.@NotNull private final JXCWindowRenderer windowRenderer
public ScreenshotCommand(@NotNull JXCWindowRenderer windowRenderer, @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull ScreenshotFiles screenshotFiles)
windowRenderer
- the renderer to usecrossfireServerConnection
- the connection instancescreenshotFiles
- the screenshot files instance for creating
screenshot file namespublic boolean allArguments()
public void execute(@NotNull java.lang.String args)
args
- the command arguments