Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.commands.ScreenshotCommand Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.commands.ScreenshotCommand:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.commands.ScreenshotCommand:
Collaboration graph

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)
 

Detailed Description

Implements the "screenshot" command. It writes the current window contents into a .png file.

Author
Andreas Kirschbaum

Definition at line 42 of file ScreenshotCommand.java.

Constructor & Destructor Documentation

◆ ScreenshotCommand()

com.realtime.crossfire.jxclient.commands.ScreenshotCommand.ScreenshotCommand ( @NotNull final JXCWindowRenderer  windowRenderer,
@NotNull final CrossfireServerConnection  crossfireServerConnection,
@NotNull final ScreenshotFiles  screenshotFiles 
)

Creates a new instance.

Parameters
windowRendererthe renderer to use
crossfireServerConnectionthe connection instance
screenshotFilesthe 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.

Member Function Documentation

◆ allArguments()

boolean com.realtime.crossfire.jxclient.commands.ScreenshotCommand.allArguments ( )

Returns whether all remaining commands should be included as arguments.

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.

◆ execute()

void com.realtime.crossfire.jxclient.commands.ScreenshotCommand.execute ( @NotNull final String  args)

◆ getHelp()

String com.realtime.crossfire.jxclient.commands.ScreenshotCommand.getHelp ( )

Returns the help text for this command.

Returns
the help text

Implements com.realtime.crossfire.jxclient.commands.Command.

Definition at line 112 of file ScreenshotCommand.java.

Member Data Documentation

◆ screenshotFiles

final ScreenshotFiles com.realtime.crossfire.jxclient.commands.ScreenshotCommand.screenshotFiles
private

◆ windowRenderer

final JXCWindowRenderer com.realtime.crossfire.jxclient.commands.ScreenshotCommand.windowRenderer
private

The documentation for this class was generated from the following file: