org.jrabbit.base.graphics.layers.types
Class BlendedLayer

java.lang.Object
  extended by org.jrabbit.base.data.structures.LockingList<Renderable>
      extended by org.jrabbit.base.graphics.layers.types.DefaultLayer
          extended by org.jrabbit.base.graphics.layers.types.BlendedLayer
All Implemented Interfaces:
java.lang.Iterable<Renderable>, Renderable, Referenced, Accepter<Renderable>, Container<Renderable>, Remover<Renderable>, Layer, GLTransform, Blended, GLGroupTransformed

public class BlendedLayer
extends DefaultLayer
implements Blended

BlendedLayer adds a controllable BlendOp to DefaultLayer. By doing this, every object rendered by the BlendedLayer has that blending mode as its default.

Author:
Chris Molini

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jrabbit.base.data.structures.LockingList
LockingList.UList
 
Field Summary
private  BlendOp blending
          The BlendOp that controls the Layer's blending mode.
 
Fields inherited from class org.jrabbit.base.graphics.layers.types.DefaultLayer
reference, transforms
 
Fields inherited from class org.jrabbit.base.data.structures.LockingList
addCache, adding, clear, main, removalCache, removing
 
Constructor Summary
BlendedLayer(java.lang.String reference, BlendOp blending)
          Creates a BlendedLayer with the indicated identifier and blending mode.
 
Method Summary
 BlendOp blending()
          Accesses the Layer's BlendOp.
 
Methods inherited from class org.jrabbit.base.graphics.layers.types.DefaultLayer
bind, reference, release, render, transforms
 
Methods inherited from class org.jrabbit.base.data.structures.LockingList
add, add, add, clear, contains, isEmpty, iterator, lock, locked, predictedSize, remove, remove, remove, size, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jrabbit.base.data.structures.base.Container
clear, contains, size
 
Methods inherited from interface org.jrabbit.base.data.structures.base.Accepter
add, add
 
Methods inherited from interface org.jrabbit.base.data.structures.base.Remover
remove, remove
 
Methods inherited from interface java.lang.Iterable
iterator
 

Field Detail

blending

private BlendOp blending
The BlendOp that controls the Layer's blending mode.

Constructor Detail

BlendedLayer

public BlendedLayer(java.lang.String reference,
                    BlendOp blending)
Creates a BlendedLayer with the indicated identifier and blending mode.

Parameters:
reference - The String that will identify this Layer.
blending - The BlendOp that controls how this Layer is blended.
Method Detail

blending

public BlendOp blending()
Accesses the Layer's BlendOp.

Specified by:
blending in interface Blended
Returns:
The BlendOp that defines blending for the Layer.