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

Public Member Functions

Path getFile () throws IOException
 

Private Attributes

int screenshotId
 

Static Private Attributes

static final int SCREENSHOT_FILENAMES = 10
 

Detailed Description

Helper class for creating file names for screenshot files.

Author
Andreas Kirschbaum

Definition at line 34 of file ScreenshotFiles.java.

Member Function Documentation

◆ getFile()

Path com.realtime.crossfire.jxclient.gui.commands.ScreenshotFiles.getFile ( ) throws IOException

Returns a Path for the next screenshot file.

Returns
the file
Exceptions
IOExceptionif the file cannot be determined

Definition at line 54 of file ScreenshotFiles.java.

References com.realtime.crossfire.jxclient.settings.Filenames.getSettingsFile(), com.realtime.crossfire.jxclient.gui.commands.ScreenshotFiles.SCREENSHOT_FILENAMES, and com.realtime.crossfire.jxclient.gui.commands.ScreenshotFiles.screenshotId.

Referenced by com.realtime.crossfire.jxclient.commands.ScreenshotCommand.execute().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ SCREENSHOT_FILENAMES

final int com.realtime.crossfire.jxclient.gui.commands.ScreenshotFiles.SCREENSHOT_FILENAMES = 10
staticprivate

The number of auto-created screenshot filenames. If more than this number of screenshots are created, old files will be recycled.

Definition at line 40 of file ScreenshotFiles.java.

Referenced by com.realtime.crossfire.jxclient.gui.commands.ScreenshotFiles.getFile().

◆ screenshotId

int com.realtime.crossfire.jxclient.gui.commands.ScreenshotFiles.screenshotId
private

A number for creating screenshot file names. It is incremented for each screenshot.

Definition at line 46 of file ScreenshotFiles.java.

Referenced by com.realtime.crossfire.jxclient.gui.commands.ScreenshotFiles.getFile().


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