|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.image.AbstractImageTool
public abstract class AbstractImageTool
Constructor Summary | |
---|---|
AbstractImageTool()
|
Method Summary | ||
---|---|---|
void |
convert(File source,
File destination,
AbstractImageToolOption option,
ImageToolDirective... directives)
Converts and resizes an image with dimensions and directives |
|
void |
convert(File source,
File destination,
ImageToolDirective... directives)
Converts an image with some directives |
|
protected abstract void |
convert(File source,
File destination,
Map<Class<AbstractImageToolOption>,AbstractImageToolOption> options,
Set<ImageToolDirective> directives)
Convert an image with dimensions and options directives |
|
void |
convert(File source,
File destination,
Set<AbstractImageToolOption> options,
ImageToolDirective... directives)
Converts and resizes an image with dimensions and directives |
|
protected
|
getOption(Map<?,?> options,
Class<T> key)
Option getter tool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.silverpeas.image.ImageTool |
---|
isActivated |
Constructor Detail |
---|
public AbstractImageTool()
Method Detail |
---|
protected abstract void convert(File source, File destination, Map<Class<AbstractImageToolOption>,AbstractImageToolOption> options, Set<ImageToolDirective> directives) throws Exception
source
- mandatory (if it not exists, no exception is generated and the process stops)destination
- if destination is not specified, the destination file is the same as the
sourceoptions
- permits specifying multiple additional working options : - DIMENSION : resizing
the image - BACKGROUND : setting a background colordirectives
- it is possible to specify some additional directives : - PREVIEW_WORK : the
conversion concerns an preview result - GEOMETRY_SHRINK : shrinks images with dimension(s)
larger than the corresponding width and/or height dimension(s).
Exception
public void convert(File source, File destination, ImageToolDirective... directives)
ImageTool
convert
in interface ImageTool
public void convert(File source, File destination, AbstractImageToolOption option, ImageToolDirective... directives)
ImageTool
convert
in interface ImageTool
public void convert(File source, File destination, Set<AbstractImageToolOption> options, ImageToolDirective... directives)
ImageTool
convert
in interface ImageTool
protected <T extends AbstractImageToolOption> T getOption(Map<?,?> options, Class<T> key)
options
- key
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |