JSR-234 1.1

javax.microedition.amms.control
Interface EffectOrderControl

All Superinterfaces:
javax.microedition.media.Control

public interface EffectOrderControl
extends javax.microedition.media.Control

EffectOrderControl is an interface designed to specify the order of effects represented by EffectControls. It is intended that an EffectOrderControl might be exposed by Players, EffectModules, MediaProcessors, MIDIChannelControls and by the GlobalManager.

Effects with a smaller order are processed first.

If an EffectOrderControl is not used, the default ordering of effects will be used. The default ordering is implementation specific.


Method Summary
 int getEffectOrder(EffectControl effect)
          Returns the current position of the effect in the effect processing chain.
 EffectControl[] getEffectOrders()
          Returns the current positions of the effects in the effect processing chain.
 int setEffectOrder(EffectControl effect, int order)
          Sets the order of the effect in the effect chain.
 

Method Detail

setEffectOrder

int setEffectOrder(EffectControl effect,
                   int order)
Sets the order of the effect in the effect chain. If the implementation does not allow a certain ordering of the effects, it may reorder the effects as it sees fit.

Parameters:
effect - the effect whose order is to be set
order - the desired position of the effect in the effect chain. The range is the whole Integer range.
Returns:
the actual order of the effect that was set
Throws:
java.lang.IllegalArgumentException - if the effect cannot be fetched from this class or if the effect is null

getEffectOrder

int getEffectOrder(EffectControl effect)
Returns the current position of the effect in the effect processing chain.

Parameters:
effect - the effect whose order is queried
Returns:
a value ranged to the whole Integer range, smaller values meaning earlier effects
Throws:
java.lang.IllegalArgumentException - if the effect cannot be fetched from this class or if the effect is null

getEffectOrders

EffectControl[] getEffectOrders()
Returns the current positions of the effects in the effect processing chain.

Returns:
an array of EffectControls in the their current order where the first item in the array means the effect that is processed first

JSR-234 1.1

Copyright © 2004-2007 Nokia Corporation. See the Copyright for details.