Enum MapImageTypeEnum
- java.lang.Object
-
- java.lang.Enum<MapImageTypeEnum>
-
- net.sf.jasperreports.components.map.type.MapImageTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<MapImageTypeEnum>,NamedEnum
public enum MapImageTypeEnum extends Enum<MapImageTypeEnum> implements NamedEnum
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MapImageTypeEnumgetByName(String name)StringgetName()static MapImageTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static MapImageTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PNG
public static final MapImageTypeEnum PNG
The 8-bit PNG format (the same as PNG_8)
-
PNG_8
public static final MapImageTypeEnum PNG_8
The 8-bit PNG format
-
PNG_32
public static final MapImageTypeEnum PNG_32
The 32-bit PNG format
-
GIF
public static final MapImageTypeEnum GIF
The GIF format
-
JPG
public static final MapImageTypeEnum JPG
The JPEG compression format
-
JPG_BASELINE
public static final MapImageTypeEnum JPG_BASELINE
The non-progressive JPEG compression format
-
-
Method Detail
-
values
public static MapImageTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MapImageTypeEnum c : MapImageTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MapImageTypeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getByName
public static MapImageTypeEnum getByName(String name)
-
-