org.foray.fotree.fo.enums
Enum Scaling

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

public enum Scaling
extends Enum<Scaling>

Enumeration of scaling options.


Enum Constant Summary
NON_UNIFORM
          Scaling need not preserve the aspect ratio.
UNIFORM
          Scaling should preserve the aspect ratio.
 
Method Summary
static Scaling valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Scaling[] 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

UNIFORM

public static final Scaling UNIFORM
Scaling should preserve the aspect ratio.


NON_UNIFORM

public static final Scaling NON_UNIFORM
Scaling need not preserve the aspect ratio.

Method Detail

values

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

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

valueOf

public static Scaling 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.