org.ajax4jsf.resource
Enum Java2Dresource.ImageType

java.lang.Object
  extended by java.lang.Enum<Java2Dresource.ImageType>
      extended by org.ajax4jsf.resource.Java2Dresource.ImageType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Java2Dresource.ImageType>
Enclosing class:
Java2Dresource

public static enum Java2Dresource.ImageType
extends java.lang.Enum<Java2Dresource.ImageType>


Enum Constant Summary
GIF
           
JPEG
           
PNG
           
PNG8
           
 
Field Summary
protected static java.awt.image.IndexColorModel SAFE_WEB_COLORS_MODEL
          Default web safe colors color model
 
Method Summary
protected abstract  java.awt.image.BufferedImage createImage(int width, int height)
           
protected  java.lang.String getFormatName()
           
protected  java.lang.String getMimeType()
           
static Java2Dresource.ImageType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Java2Dresource.ImageType[] 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

GIF

public static final Java2Dresource.ImageType GIF

PNG

public static final Java2Dresource.ImageType PNG

PNG8

public static final Java2Dresource.ImageType PNG8

JPEG

public static final Java2Dresource.ImageType JPEG
Field Detail

SAFE_WEB_COLORS_MODEL

protected static final java.awt.image.IndexColorModel SAFE_WEB_COLORS_MODEL
Default web safe colors color model

Method Detail

values

public static Java2Dresource.ImageType[] 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 (Java2Dresource.ImageType c : Java2Dresource.ImageType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Java2Dresource.ImageType 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 name
java.lang.NullPointerException - if the argument is null

createImage

protected abstract java.awt.image.BufferedImage createImage(int width,
                                                            int height)

getFormatName

protected java.lang.String getFormatName()

getMimeType

protected java.lang.String getMimeType()


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.