org.foray.fotree.fo.enums
Enum ScalingMethod

java.lang.Object
  extended by java.lang.Enum<ScalingMethod>
      extended by org.foray.fotree.fo.enums.ScalingMethod
All Implemented Interfaces:
Serializable, Comparable<ScalingMethod>

public enum ScalingMethod
extends Enum<ScalingMethod>

Enumeration of possible scaling-method values.

See Also:
"XSL-FO, 1.1, Section 7.15.13 (page 316)."

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(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 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

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

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

valueOf

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


Copyright © 2017. All rights reserved.