APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.tools.texturepacker

public Class TexturePackerFileProcessor

extends FileProcessor
Class Inheritance
Imports
java.io.File, .FileReader, .IOException, java.util.ArrayList, .Collections, .Comparator, java.util.regex.Matcher, .Pattern, com.badlogic.gdx.tools.FileProcessor, com.badlogic.gdx.tools.texturepacker.TexturePacker.ProgressListener, .TexturePacker.Settings, com.badlogic.gdx.utils.GdxRuntimeException, .Json, .JsonReader, .JsonValue, .ObjectMap

Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
pack-priv boolean
private final TexturePacker.Settings
private ObjectMap<File, TexturePacker.Settings>
pack-priv ArrayList<File>
private Json
pack-priv int
private String
private final TexturePacker.ProgressListener
private File

Constructor Summary

AccessConstructor and Description
public
public
TexturePackerFileProcessor(TexturePacker.Settings defaultSettings, String packFileName, TexturePacker.ProgressListener
May be null.
progress
)

Method Summary

Modifier and TypeMethod and Description
protected void
deleteOutput(File outputRoot)

public TexturePacker.ProgressListener
pack-priv void
merge(TexturePacker.Settings settings, File settingsFile)

protected TexturePacker.Settings
protected TexturePacker
protected void
public ArrayList<FileProcessor.Entry>
process(File inputFile, File outputRoot)

Overrides com.badlogic.gdx.tools.FileProcessor.process.

Processes the specified input file or directory.

public ArrayList<FileProcessor.Entry>
process(File[] files, File outputRoot)

Overrides com.badlogic.gdx.tools.FileProcessor.process.

Processes the specified input files.

protected void
processDir(final FileProcessor.Entry inputDir, ArrayList<FileProcessor.Entry> files)

Overrides com.badlogic.gdx.tools.FileProcessor.processDir.

Called for each input directory.

Inherited from com.badlogic.gdx.tools.FileProcessor:
addInputRegexaddInputSuffixaddProcessedFileprocessprocessFilesetComparatorsetFlattenOutputsetInputFiltersetOutputSuffixsetRecursive

Field Detail

countOnlyback to summary
pack-priv boolean countOnly
defaultSettingsback to summary
private final TexturePacker.Settings defaultSettings
dirToSettingsback to summary
private ObjectMap<File, TexturePacker.Settings> dirToSettings
ignoreDirsback to summary
pack-priv ArrayList<File> ignoreDirs
jsonback to summary
private Json json
packCountback to summary
pack-priv int packCount
packFileNameback to summary
private String packFileName
progressback to summary
private final TexturePacker.ProgressListener progress
rootback to summary
private File root

Constructor Detail

TexturePackerFileProcessorback to summary
public TexturePackerFileProcessor()
TexturePackerFileProcessorback to summary
public TexturePackerFileProcessor(TexturePacker.Settings defaultSettings, String packFileName, TexturePacker.ProgressListener progress)
Parameters
progress:TexturePacker.ProgressListener

May be null.

Method Detail

deleteOutputback to summary
protected void deleteOutput(File outputRoot) throws Exception
getProgressListenerback to summary
public TexturePacker.ProgressListener getProgressListener()
mergeback to summary
pack-priv void merge(TexturePacker.Settings settings, File settingsFile)
newSettingsback to summary
protected TexturePacker.Settings newSettings(TexturePacker.Settings settings)
newTexturePackerback to summary
protected TexturePacker newTexturePacker(File root, TexturePacker.Settings settings)
packback to summary
protected void pack(TexturePacker packer, FileProcessor.Entry inputDir)
processback to summary
public ArrayList<FileProcessor.Entry> process(File inputFile, File outputRoot) throws Exception

Overrides com.badlogic.gdx.tools.FileProcessor.process.

Doc from com.badlogic.gdx.tools.FileProcessor.process.

Processes the specified input file or directory.

processback to summary
public ArrayList<FileProcessor.Entry> process(File[] files, File outputRoot) throws Exception

Overrides com.badlogic.gdx.tools.FileProcessor.process.

Doc from com.badlogic.gdx.tools.FileProcessor.process.

Processes the specified input files.

processDirback to summary
protected void processDir(final FileProcessor.Entry inputDir, ArrayList<FileProcessor.Entry> files) throws Exception

Overrides com.badlogic.gdx.tools.FileProcessor.processDir.

Doc from com.badlogic.gdx.tools.FileProcessor.processDir.

Called for each input directory. The files will be sorted. The specified files list can be modified to change which files are processed.