com.esri.core.map
Enum ImageServiceParameters.IMAGE_FORMAT

java.lang.Object
  extended by java.lang.Enum<ImageServiceParameters.IMAGE_FORMAT>
      extended by com.esri.core.map.ImageServiceParameters.IMAGE_FORMAT
All Implemented Interfaces:
Serializable, Comparable<ImageServiceParameters.IMAGE_FORMAT>
Enclosing class:
ImageServiceParameters

public static enum ImageServiceParameters.IMAGE_FORMAT
extends Enum<ImageServiceParameters.IMAGE_FORMAT>

The format of the exported image. The default format is JPG_PNG.

Values: jpgpng | png | png8 | png24 | jpg | bmp | gif | tiff


Enum Constant Summary
BMP
          Image format: bmp
GIF
          Image format: gif
JPG
          Image format: jpg
JPG_PNG
          Image format: jpgpng
PNG
          Image format: png
PNG24
          Image format: png24
PNG8
          Image format: png8
TIFF
          Image format: tiff
 
Method Summary
static ImageServiceParameters.IMAGE_FORMAT fromString(String str)
          Returns image format whose name matches the input; null if there is no match.
 String toString()
           
static ImageServiceParameters.IMAGE_FORMAT valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ImageServiceParameters.IMAGE_FORMAT[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JPG_PNG

public static final ImageServiceParameters.IMAGE_FORMAT JPG_PNG
Image format: jpgpng


PNG

public static final ImageServiceParameters.IMAGE_FORMAT PNG
Image format: png


PNG8

public static final ImageServiceParameters.IMAGE_FORMAT PNG8
Image format: png8


PNG24

public static final ImageServiceParameters.IMAGE_FORMAT PNG24
Image format: png24


JPG

public static final ImageServiceParameters.IMAGE_FORMAT JPG
Image format: jpg


BMP

public static final ImageServiceParameters.IMAGE_FORMAT BMP
Image format: bmp


GIF

public static final ImageServiceParameters.IMAGE_FORMAT GIF
Image format: gif


TIFF

public static final ImageServiceParameters.IMAGE_FORMAT TIFF
Image format: tiff

Method Detail

values

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

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

valueOf

public static ImageServiceParameters.IMAGE_FORMAT 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 name
NullPointerException - if the argument is null

toString

public String toString()
Overrides:
toString in class Enum<ImageServiceParameters.IMAGE_FORMAT>

fromString

public static ImageServiceParameters.IMAGE_FORMAT fromString(String str)
Returns image format whose name matches the input; null if there is no match.

Parameters:
str - input string to match the image format.
Returns:
corresponding image format, null if none; match is case-sensitive.


Copyright © 2012. All Rights Reserved.