Class ScreenshotCommand

  • All Implemented Interfaces:
    Command

    public class ScreenshotCommand
    extends AbstractCommand
    Implements the "screenshot" command. It write the current window contents into a .png file.
    • Constructor Detail

      • ScreenshotCommand

        public ScreenshotCommand​(@NotNull
                                 @NotNull JXCWindowRenderer windowRenderer,
                                 @NotNull
                                 @NotNull CrossfireServerConnection crossfireServerConnection,
                                 @NotNull
                                 @NotNull ScreenshotFiles screenshotFiles)
        Creates a new instance.
        Parameters:
        windowRenderer - the renderer to use
        crossfireServerConnection - the connection instance
        screenshotFiles - the screenshot files instance for creating screenshot file names
    • Method Detail

      • allArguments

        public boolean allArguments()
        Description copied from interface: Command
        Returns whether all remaining commands should be included as arguments.
        Returns:
        whether all remaining commands should be included as arguments
      • execute

        public void execute​(@NotNull
                            @NotNull java.lang.String args)
        Description copied from interface: Command
        Executes the command with the given arguments.
        Parameters:
        args - the command arguments