public class ContentFactory
extends java.lang.Object
| Constructor and Description |
|---|
ContentFactory()
Default Constructor.
|
ContentFactory(ResourceFinder finder)
Explicit Value Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Content |
createContent(java.awt.image.BufferedImage image)
Create a Content from a BufferedImage.
|
Content |
createContent(java.awt.image.BufferedImage image,
boolean rotatable)
Create a Content from a BufferedImage.
|
Content |
createContent(java.awt.Image image)
Create a Content (with the default number
of channels) from an Image.
|
Content |
createContent(java.awt.Image image,
boolean rotatable)
Create a Content (with the default number
of channels) from an Image.
|
Content |
createContent(java.awt.Image image,
int channels)
Create a Content from an Image.
|
Content |
createContent(java.awt.Image image,
int channels,
boolean rotatable)
Create a Content from an Image.
|
Content |
createContent(java.lang.String name)
Create a Content (with the default number of
channels) from a file/resource containing an Image.
|
Content |
createContent(java.lang.String name,
boolean rotatable)
Create a Content (with the default number of
channels) from a file containing an Image.
|
Content |
createContent(java.lang.String name,
int channels)
Create a Content from a file/resource
containing an Image.
|
Content |
createContent(java.lang.String name,
int channels,
boolean rotatable)
Create a Content from a file/resource
containing an Image.
|
Content[] |
createContents(java.lang.String[] names,
int channels)
Create an array of Content objects
from an array of images in files/resources.
|
Content[] |
createContents(java.lang.String path,
java.io.FilenameFilter filter)
Create an array Content (with the default
number of channels) from a group of files containing images.
|
Content[] |
createContents(java.lang.String path,
java.io.FilenameFilter filter,
int channels)
Create an array of Content objects from a
group of files/resources containing images.
|
Content[] |
createContents(java.lang.String name,
int n,
int channels)
Create an array of Content objects
from an "array" of images in a file.
|
Content[][] |
createContents(java.lang.String name,
int rows,
int columns,
int channels)
Create an array of Content objects
from a table-oriented Image in a file.
|
public ContentFactory()
public ContentFactory(ResourceFinder finder)
finder - The ResourceFinder to use (if needed)public Content createContent(java.awt.image.BufferedImage image, boolean rotatable)
image - The BufferedImagerotatable - false to prevent rotations (and improve performance)public Content createContent(java.awt.image.BufferedImage image)
image - The BufferedImagepublic Content createContent(java.awt.Image image, int channels, boolean rotatable)
image - The original Imagechannels - 3 for RGB; 4 for ARGBrotatable - false to prevent rotations (and improve performance)public Content createContent(java.awt.Image image, int channels)
image - The original Imagechannels - 3 for RGB; 4 for ARGBpublic Content createContent(java.awt.Image image, boolean rotatable)
image - The original Imagerotatable - false to prevent rotations (and improve performance)public Content createContent(java.awt.Image image)
image - The original Imagepublic Content createContent(java.lang.String name, int channels, boolean rotatable)
name - The name of the file/resourcechannels - 3 for RGB; 4 for ARGBrotatable - false to prevent rotations (and improve performance)public Content createContent(java.lang.String name, int channels)
name - The name of the filechannels - 3 for RGB; 4 for ARGBpublic Content createContent(java.lang.String name, boolean rotatable)
name - The name of the filerotatable - false to prevent rotations (and improve performance)public Content createContent(java.lang.String name)
name - The name of the filepublic Content[] createContents(java.lang.String[] names, int channels)
names - The names of the file/resourcechannels - 3 for RGB, 4 for ARGBpublic Content[] createContents(java.lang.String path, java.io.FilenameFilter filter, int channels)
path - The path to the directory containing the imagesfilter - The FilenameFilter to usechannels - 3 for RGB; 4 for ARGBpublic Content[] createContents(java.lang.String path, java.io.FilenameFilter filter)
path - The path to the directory containing the imagesfilter - The FilenameFilter to usepublic Content[] createContents(java.lang.String name, int n, int channels)
name - The name of the file/resourcen - The number of imageschannels - 3 for RGB, 4 for ARGBpublic Content[][] createContents(java.lang.String name, int rows, int columns, int channels)
name - The name of the file/resourcerows - The number of rowscolumns - The number of columnschannels - 3 for RGB, 4 for ARGB