net.sf.dynamicreports.report.constant
Enum ImageScale

java.lang.Object
  extended by java.lang.Enum<ImageScale>
      extended by net.sf.dynamicreports.report.constant.ImageScale
All Implemented Interfaces:
Serializable, Comparable<ImageScale>

public enum ImageScale
extends Enum<ImageScale>

Author:
Ricardo Mariaca (r.mariaca@dynamicreports.org)

Enum Constant Summary
FILL
          A constant value specifying that if the dimensions of the actual image do not fit those specified for the image element that displays it, the image can be forced to obey them and stretch itself so that it fits in the designated output area.
FILL_PROPORTIONALLY
          A constant value specifying that if the actual image does not fit into the image element, it can be adapted to those dimensions without needing to change its original proportions.
NO_RESIZE
          A constant value specifying that if the actual image is larger than the image element size, it will be cut off so that it keeps its original resolution, and only the region that fits the specified size will be displayed.
 
Method Summary
static ImageScale valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ImageScale[] 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

NO_RESIZE

public static final ImageScale NO_RESIZE
A constant value specifying that if the actual image is larger than the image element size, it will be cut off so that it keeps its original resolution, and only the region that fits the specified size will be displayed.


FILL

public static final ImageScale FILL
A constant value specifying that if the dimensions of the actual image do not fit those specified for the image element that displays it, the image can be forced to obey them and stretch itself so that it fits in the designated output area.


FILL_PROPORTIONALLY

public static final ImageScale FILL_PROPORTIONALLY
A constant value specifying that if the actual image does not fit into the image element, it can be adapted to those dimensions without needing to change its original proportions.

Method Detail

values

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

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

valueOf

public static ImageScale 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 © 2010-2014. All Rights Reserved.