Enum IcnsType
- java.lang.Object
-
- java.lang.Enum<IcnsType>
-
- org.apache.commons.imaging.formats.icns.IcnsType
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private static IcnsType[]
ALL_IMAGE_TYPES
private static IcnsType[]
ALL_MASK_TYPES
private int
bitsPerPixel
private boolean
hasMask
private int
height
private int
type
private int
width
-
Constructor Summary
Constructors Modifier Constructor Description private
IcnsType(java.lang.String type, int width, int height, int bitsPerPixel, boolean hasMask)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
describeType(int type)
static IcnsType
find1BPPMaskType(IcnsType imageType)
static IcnsType
find8BPPMaskType(IcnsType imageType)
static IcnsType
findAnyType(int type)
static IcnsType
findImageType(int type)
int
getBitsPerPixel()
int
getHeight()
int
getType()
int
getWidth()
boolean
hasMask()
java.lang.String
toString()
static int
typeAsInt(java.lang.String type)
static IcnsType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IcnsType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ICNS_16x12_1BIT_IMAGE_AND_MASK
public static final IcnsType ICNS_16x12_1BIT_IMAGE_AND_MASK
-
ICNS_16x12_4BIT_IMAGE
public static final IcnsType ICNS_16x12_4BIT_IMAGE
-
ICNS_16x12_8BIT_IMAGE
public static final IcnsType ICNS_16x12_8BIT_IMAGE
-
ICNS_16x16_8BIT_MASK
public static final IcnsType ICNS_16x16_8BIT_MASK
-
ICNS_16x16_1BIT_IMAGE_AND_MASK
public static final IcnsType ICNS_16x16_1BIT_IMAGE_AND_MASK
-
ICNS_16x16_4BIT_IMAGE
public static final IcnsType ICNS_16x16_4BIT_IMAGE
-
ICNS_16x16_8BIT_IMAGE
public static final IcnsType ICNS_16x16_8BIT_IMAGE
-
ICNS_16x16_32BIT_IMAGE
public static final IcnsType ICNS_16x16_32BIT_IMAGE
-
ICNS_32x32_8BIT_MASK
public static final IcnsType ICNS_32x32_8BIT_MASK
-
ICNS_32x32_1BIT_IMAGE
public static final IcnsType ICNS_32x32_1BIT_IMAGE
-
ICNS_32x32_1BIT_IMAGE_AND_MASK
public static final IcnsType ICNS_32x32_1BIT_IMAGE_AND_MASK
-
ICNS_32x32_4BIT_IMAGE
public static final IcnsType ICNS_32x32_4BIT_IMAGE
-
ICNS_32x32_8BIT_IMAGE
public static final IcnsType ICNS_32x32_8BIT_IMAGE
-
ICNS_32x32_32BIT_IMAGE
public static final IcnsType ICNS_32x32_32BIT_IMAGE
-
ICNS_48x48_8BIT_MASK
public static final IcnsType ICNS_48x48_8BIT_MASK
-
ICNS_48x48_1BIT_IMAGE_AND_MASK
public static final IcnsType ICNS_48x48_1BIT_IMAGE_AND_MASK
-
ICNS_48x48_4BIT_IMAGE
public static final IcnsType ICNS_48x48_4BIT_IMAGE
-
ICNS_48x48_8BIT_IMAGE
public static final IcnsType ICNS_48x48_8BIT_IMAGE
-
ICNS_48x48_32BIT_IMAGE
public static final IcnsType ICNS_48x48_32BIT_IMAGE
-
ICNS_128x128_8BIT_MASK
public static final IcnsType ICNS_128x128_8BIT_MASK
-
ICNS_128x128_32BIT_IMAGE
public static final IcnsType ICNS_128x128_32BIT_IMAGE
-
ICNS_16x16_32BIT_ARGB_IMAGE
public static final IcnsType ICNS_16x16_32BIT_ARGB_IMAGE
-
ICNS_32x32_32BIT_ARGB_IMAGE
public static final IcnsType ICNS_32x32_32BIT_ARGB_IMAGE
-
ICNS_64x64_32BIT_ARGB_IMAGE
public static final IcnsType ICNS_64x64_32BIT_ARGB_IMAGE
-
ICNS_128x128_32BIT_ARGB_IMAGE
public static final IcnsType ICNS_128x128_32BIT_ARGB_IMAGE
-
ICNS_256x256_32BIT_ARGB_IMAGE
public static final IcnsType ICNS_256x256_32BIT_ARGB_IMAGE
-
ICNS_512x512_32BIT_ARGB_IMAGE
public static final IcnsType ICNS_512x512_32BIT_ARGB_IMAGE
-
ICNS_1024x1024_32BIT_ARGB_IMAGE
public static final IcnsType ICNS_1024x1024_32BIT_ARGB_IMAGE
-
ICNS_32x32_2x_32BIT_ARGB_IMAGE
public static final IcnsType ICNS_32x32_2x_32BIT_ARGB_IMAGE
-
ICNS_64x64_2x_32BIT_ARGB_IMAGE
public static final IcnsType ICNS_64x64_2x_32BIT_ARGB_IMAGE
-
ICNS_256x256_2x_32BIT_ARGB_IMAGE
public static final IcnsType ICNS_256x256_2x_32BIT_ARGB_IMAGE
-
ICNS_512x512_2x_32BIT_ARGB_IMAGE
public static final IcnsType ICNS_512x512_2x_32BIT_ARGB_IMAGE
-
-
Field Detail
-
ALL_IMAGE_TYPES
private static final IcnsType[] ALL_IMAGE_TYPES
-
ALL_MASK_TYPES
private static final IcnsType[] ALL_MASK_TYPES
-
type
private final int type
-
width
private final int width
-
height
private final int height
-
bitsPerPixel
private final int bitsPerPixel
-
hasMask
private final boolean hasMask
-
-
Method Detail
-
values
public static IcnsType[] 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 (IcnsType c : IcnsType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IcnsType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getType
public int getType()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getBitsPerPixel
public int getBitsPerPixel()
-
hasMask
public boolean hasMask()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<IcnsType>
-
findAnyType
public static IcnsType findAnyType(int type)
-
findImageType
public static IcnsType findImageType(int type)
-
typeAsInt
public static int typeAsInt(java.lang.String type)
-
describeType
public static java.lang.String describeType(int type)
-
-