Skip navigation links

Oracle Outside In Java API Reference
8.5.3

E57629-03


com.oracle.outsidein.annotations
Enum StampAnnotation.SizingMethodValue

java.lang.Object
  extended by java.lang.Enum<StampAnnotation.SizingMethodValue>
      extended by com.oracle.outsidein.annotations.StampAnnotation.SizingMethodValue

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StampAnnotation.SizingMethodValue>
Enclosing class:
StampAnnotation

public static enum StampAnnotation.SizingMethodValue
extends java.lang.Enum<StampAnnotation.SizingMethodValue>

The method used to scale the stamp image.


Enum Constant Summary
FIT
          The source image will be scaled with its aspect ratio preserved to fit inside the rectangle specified by the annotations dimensions.
SOURCE
          The source image will be rendered at its native size.
STRETCH
          The source image will be stretched to fill the highlight rectangle

 

Method Summary
static StampAnnotation.SizingMethodValue valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StampAnnotation.SizingMethodValue[] 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

FIT

public static final StampAnnotation.SizingMethodValue FIT
The source image will be scaled with its aspect ratio preserved to fit inside the rectangle specified by the annotations dimensions. The top, left corner of the scaled image will align with the top, left corner of the destination rectangle

STRETCH

public static final StampAnnotation.SizingMethodValue STRETCH
The source image will be stretched to fill the highlight rectangle

SOURCE

public static final StampAnnotation.SizingMethodValue SOURCE
The source image will be rendered at its native size. The width and height fields will be ignored, and the top, left corner of the stamped image will be aligned with the top, left corner of the destination rectangle

Method Detail

values

public static StampAnnotation.SizingMethodValue[] 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 (StampAnnotation.SizingMethodValue c : StampAnnotation.SizingMethodValue.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StampAnnotation.SizingMethodValue 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

Skip navigation links

Oracle Outside In Java API Reference
8.5.3

E57629-03


Copyright © 2016, Oracle and/or its affiliates. All rights reserved.