com.levigo.jadice.document.read
Enum NCIReaderSettings.InvalidResolutionHandling

java.lang.Object
  extended by java.lang.Enum<NCIReaderSettings.InvalidResolutionHandling>
      extended by com.levigo.jadice.document.read.NCIReaderSettings.InvalidResolutionHandling
All Implemented Interfaces:
Serializable, Comparable<NCIReaderSettings.InvalidResolutionHandling>
Enclosing class:
NCIReaderSettings

public static enum NCIReaderSettings.InvalidResolutionHandling
extends Enum<NCIReaderSettings.InvalidResolutionHandling>

This enum contains possible handling-strategies for invalid resolution information found in documents.


Enum Constant Summary
CLAMP
          Clamp the resolution, so that it falls into the range [ NCIReaderSettings.getMinimumResolution()..
USE_DEFAULT
          Replace any invalid resolution that does not fall into the range [ NCIReaderSettings.getMinimumResolution()..
 
Method Summary
static NCIReaderSettings.InvalidResolutionHandling valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NCIReaderSettings.InvalidResolutionHandling[] 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

CLAMP

public static final NCIReaderSettings.InvalidResolutionHandling CLAMP
Clamp the resolution, so that it falls into the range [ NCIReaderSettings.getMinimumResolution().. NCIReaderSettings.getMaximumResolution()] while maintaining the aspect ratio found in the document.


USE_DEFAULT

public static final NCIReaderSettings.InvalidResolutionHandling USE_DEFAULT
Replace any invalid resolution that does not fall into the range [ NCIReaderSettings.getMinimumResolution().. NCIReaderSettings.getMaximumResolution()] with NCIReaderSettings.getDefaultResolution() while maintaining the aspect ratio.

Method Detail

values

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

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

valueOf

public static NCIReaderSettings.InvalidResolutionHandling 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 © 1995-2020 levigo holding gmbh. All Rights Reserved.