Interface ELOperator

All Known Implementing Classes:
Abs, AbstractELOperator, AdamImage, Add, ArcTangent, Average, BarkImage, BitAnd, BitOr, BitwiseOperator, BitXor, Blur, ColorGradient, ColorNoise, Cosine, Derivative, Distort, DSymmetry, ImageOperator, MultiArgumentOperator, Noise, OneArgumentOperator, TrigonometricOperator, TwoArgumentOperator, EnvironmentMap, FishImage, FrequencyBlocks, FrequencyStars, Grayscale, HGradient, HSymmetry, LenaImage, LowColorNoise, LowNoise, Max, Min, Mul, PeppersImage, PigImage, RayTraceImage, SawPulse, Sine, StreamImage, Sub, SunriseImage, TimeSpinner, ToHSV, ToRGB, VGradient, WaimeaImage

public interface ELOperator

An operator. Operators should not have any externally visible state; they are shared between expressions and are dynamically loaded.

Operators that have slow intializations should perform initialization on a separate thread so as to not block a loading application.

All subclasses must have a constructor that takes no arguments.


Field Summary
static int LARGE_NUMER_OF_ARGUMENTS
           
 
Method Summary
 void apply(ELMatrix[] argument, ELMatrix out, ELEnvironment environment)
          Applies this operator.
 java.lang.String description()
          An english language description of what this operator does.
 int getMaxNumArguments()
          Returns the maxiumum number of arguments this operator accepts.
 int getMinNumArguments()
          Returns the minimum number of arguments this operator accepts.
 boolean hasExternalInfluences()
          Returns true if the output is influenced by the environment.
 java.lang.String name()
          Name of this operator (usually the same as unparse()).
 void paintIcon(java.awt.Graphics2D graphics, int x, int y, int width, int height)
          Draw an icon for this operator
 java.lang.String unparse()
          How this operator should appear in EL code.
 

Field Detail

LARGE_NUMER_OF_ARGUMENTS

public static final int LARGE_NUMER_OF_ARGUMENTS
Method Detail

getMaxNumArguments

public int getMaxNumArguments()
Returns the maxiumum number of arguments this operator accepts. Note: All operators that accept an argument accept an ELMatrix argument.

getMinNumArguments

public int getMinNumArguments()
Returns the minimum number of arguments this operator accepts.

hasExternalInfluences

public boolean hasExternalInfluences()
Returns true if the output is influenced by the environment.

apply

public void apply(ELMatrix[] argument,
                  ELMatrix out,
                  ELEnvironment environment)
Applies this operator.

unparse

public java.lang.String unparse()
How this operator should appear in EL code.

name

public java.lang.String name()
Name of this operator (usually the same as unparse()).

description

public java.lang.String description()
An english language description of what this operator does.

paintIcon

public void paintIcon(java.awt.Graphics2D graphics,
                      int x,
                      int y,
                      int width,
                      int height)
Draw an icon for this operator