com.flagstone.transform.datatype
Enum Blend

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

public enum Blend
extends Enum<Blend>

Blend modes let you control how the colours and transparency of successive layers are composited together when the Flash Player displays the objects on the screen. The effect is to create highlights, shadows or to control how an underlying object appears.


Enum Constant Summary
ADD
          Add the colours of the layers together.
ALPHA
          Applies the transparency of the current layer to the underlying layer.
DARKEN
          Displays colours from the underlying layer that are darker than the current layer.
DIFFERENCE
          Subtracts the largest colour value from the smallest, creating a colour negative effect.
ERASE
          Delete the colours from the underlying layer that match the colour on the current layer.
HARDLIGHT
          Select colours from the underlying layer using the values on the current layer.
INVERT
          Inverts the colours of the current layer.
LAYER
          Sets the opacity of the current layer at 100% before blending.
LIGHTEN
          Displays colours from the underlying layer that are lighter than the current layer.
MULTIPLY
          Multiplies layers together.
NORMAL
          Applies colour form the current layer normally with no blending with the underlying layers.
NULL
          No Blend.
OVERLAY
          Use the colour from the current layer to select colours from the underlying layer.
SCREEN
          Multiplies this inverse of the layer with the underlying layer, creating a bleaching effect.
SUBTRACT
          Subtract the current layer colour from the underlying layer.
 
Method Summary
static Blend fromInt(int type)
          Get the Blend that is identified by an integer value.
 int getValue()
          Get the integer value that is used to identify this Blend.
static Blend valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Blend[] 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

NULL

public static final Blend NULL
No Blend.


NORMAL

public static final Blend NORMAL
Applies colour form the current layer normally with no blending with the underlying layers.


LAYER

public static final Blend LAYER
Sets the opacity of the current layer at 100% before blending.


MULTIPLY

public static final Blend MULTIPLY
Multiplies layers together. This has the effect of darkening the layer.


SCREEN

public static final Blend SCREEN
Multiplies this inverse of the layer with the underlying layer, creating a bleaching effect.


LIGHTEN

public static final Blend LIGHTEN
Displays colours from the underlying layer that are lighter than the current layer.


DARKEN

public static final Blend DARKEN
Displays colours from the underlying layer that are darker than the current layer.


ADD

public static final Blend ADD
Add the colours of the layers together.


SUBTRACT

public static final Blend SUBTRACT
Subtract the current layer colour from the underlying layer.


DIFFERENCE

public static final Blend DIFFERENCE
Subtracts the largest colour value from the smallest, creating a colour negative effect.


INVERT

public static final Blend INVERT
Inverts the colours of the current layer.


ALPHA

public static final Blend ALPHA
Applies the transparency of the current layer to the underlying layer.


ERASE

public static final Blend ERASE
Delete the colours from the underlying layer that match the colour on the current layer.


OVERLAY

public static final Blend OVERLAY
Use the colour from the current layer to select colours from the underlying layer.


HARDLIGHT

public static final Blend HARDLIGHT
Select colours from the underlying layer using the values on the current layer.

Method Detail

values

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

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

valueOf

public static Blend 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 Blend fromInt(int type)
Get the Blend that is identified by an integer value. This method is used when decoding a Blend from a Flash file.

Parameters:
type - the integer value read from a Flash file.
Returns:
the Blend identified by the integer value.

getValue

public int getValue()
Get the integer value that is used to identify this Blend. This method is used when encoding a Blend in a Flash file.

Returns:
the integer value used to encode this Blend.


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