|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisual.statik.sampled.ContentFactory
public class ContentFactory
A utility class for constructing/creating visual.statik.sampled.Content objects
Constructor Summary | |
---|---|
ContentFactory()
Default Constructor |
|
ContentFactory(ResourceFinder finder)
Explicit Value Constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentFactory()
public ContentFactory(ResourceFinder finder)
finder
- The ResourceFinder to use (if needed)Method Detail |
---|
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 BufferedImage
public 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 ARGB
public 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 Image
public 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 ARGB
public 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 file
public Content[] createContents(java.lang.String[] names, int channels)
names
- The names of the file/resourcechannels
- 3 for RGB, 4 for ARGB
public 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 ARGB
public Content[] createContents(java.lang.String path, java.io.FilenameFilter filter)
path
- The path to the directory containing the imagesfilter
- The FilenameFilter to use
public 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 ARGB
public 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
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |