|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ImageFormat> fr.opensagres.xdocreport.core.document.ImageFormat
public enum ImageFormat
Image format.
Enum Constant Summary | |
---|---|
bmp
|
|
gif
|
|
jfif
|
|
jpe
|
|
jpeg
|
|
jpg
|
|
png
|
|
tif
|
|
tiff
|
Method Summary | |
---|---|
static ImageFormat |
getFormatByExtension(String extension)
Returns the image format retrieved by the given extension (bmp, jpeg...). |
static ImageFormat |
getFormatByResourceName(String resourceName)
Returns the image format retrieved by the extension of the given resource name. |
String |
getType()
|
static ImageFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ImageFormat[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ImageFormat bmp
public static final ImageFormat jpg
public static final ImageFormat jpeg
public static final ImageFormat jpe
public static final ImageFormat jfif
public static final ImageFormat gif
public static final ImageFormat tif
public static final ImageFormat tiff
public static final ImageFormat png
Method Detail |
---|
public static ImageFormat[] values()
for (ImageFormat c : ImageFormat.values()) System.out.println(c);
public static ImageFormat valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getType()
public static ImageFormat getFormatByExtension(String extension)
extension
-
public static ImageFormat getFormatByResourceName(String resourceName)
resourceName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |