com.flagstone.transform.fillstyle
Enum Interpolation

java.lang.Object
  extended by java.lang.Enum<Interpolation>
      extended by com.flagstone.transform.fillstyle.Interpolation
All Implemented Interfaces:
Serializable, Comparable<Interpolation>

public enum Interpolation
extends Enum<Interpolation>

Interpolation describes how the transition between colours in a gradient are calculated.


Enum Constant Summary
LINEAR
          Linear RGBA interpolation.
NORMAL
          Normal RGBA interpolation.
 
Method Summary
static Interpolation fromInt(int value)
          Returns the Interpolation for a given type.
 int getValue()
          Get the value used to represent the Interpolation when it is encoded.
static Interpolation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Interpolation[] 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

NORMAL

public static final Interpolation NORMAL
Normal RGBA interpolation.


LINEAR

public static final Interpolation LINEAR
Linear RGBA interpolation.

Method Detail

values

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

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

valueOf

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

fromInt

public static Interpolation fromInt(int value)
Returns the Interpolation for a given type.

Parameters:
value - the type that identifies the Interpolation when it is encoded.
Returns:
a shared instance of the object representing a given Interpolation.

getValue

public int getValue()
Get the value used to represent the Interpolation when it is encoded.

Returns:
the encoded value for the Interpolation.


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.