SourceForge.net Logo
aXSL API 0.2

org.axsl.common.value
Enum ScalingMethod

java.lang.Object
  extended by java.lang.Enum<ScalingMethod>
      extended by org.axsl.common.value.ScalingMethod
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ScalingMethod>

public enum ScalingMethod
extends java.lang.Enum<ScalingMethod>

Enumeration of the possible "scaling-method" values.


Enum Constant Summary
AUTO
          The User Agent is free to choose either resampling, integer scaling, or any other scaling method.
INTEGER_PIXELS
          The User Agent should scale the image such that each pixel in the original image is scaled to the nearest integer number of device-pixels that yields an image less-than-or-equal-to the image size derived from the content-height, content-width, and scaling properties.
RESAMPLE_ANY_METHOD
          The User Agent should resample the supplied image to provide an image that fills the size derived from the content-height, content-width, and scaling properties.
 
Method Summary
static ScalingMethod valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ScalingMethod[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTO

public static final ScalingMethod AUTO
The User Agent is free to choose either resampling, integer scaling, or any other scaling method.


INTEGER_PIXELS

public static final ScalingMethod INTEGER_PIXELS
The User Agent should scale the image such that each pixel in the original image is scaled to the nearest integer number of device-pixels that yields an image less-than-or-equal-to the image size derived from the content-height, content-width, and scaling properties.


RESAMPLE_ANY_METHOD

public static final ScalingMethod RESAMPLE_ANY_METHOD
The User Agent should resample the supplied image to provide an image that fills the size derived from the content-height, content-width, and scaling properties. The user agent may use any sampling method.

Method Detail

values

public static final ScalingMethod[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ScalingMethod c : ScalingMethod.values())
        System.out.println(c);

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

valueOf

public static ScalingMethod 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

SourceForge.net Logo
aXSL API 0.2

This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.