org.apache.batik.ext.awt.image

Class ConcreteComponentTransferFunction

public class ConcreteComponentTransferFunction extends Object implements ComponentTransferFunction

This class implements the interface expected from a component transfer function.
Method Summary
floatgetAmplitude()
Returns the amplitude value for this transfer function
static ComponentTransferFunctiongetDiscreteTransfer(float[] tableValues)
Returns a discrete transfer function
floatgetExponent()
Returns the exponent value for this transfer function
static ComponentTransferFunctiongetGammaTransfer(float amplitude, float exponent, float offset)
Returns a gamma function
static ComponentTransferFunctiongetIdentityTransfer()
Returns an instance initialized as an identity transfer function
floatgetIntercept()
Returns the intercept value for this transfer function
static ComponentTransferFunctiongetLinearTransfer(float slope, float intercept)
Returns a linear transfer function
floatgetOffset()
Returns the offset value for this transfer function
floatgetSlope()
Returns the slope value for this transfer function
static ComponentTransferFunctiongetTableTransfer(float[] tableValues)
Returns a table transfer function
float[]getTableValues()
Returns the table values for this transfer function
intgetType()
Returns the type of this transfer function

Method Detail

getAmplitude

public float getAmplitude()
Returns the amplitude value for this transfer function

getDiscreteTransfer

public static ComponentTransferFunction getDiscreteTransfer(float[] tableValues)
Returns a discrete transfer function

getExponent

public float getExponent()
Returns the exponent value for this transfer function

getGammaTransfer

public static ComponentTransferFunction getGammaTransfer(float amplitude, float exponent, float offset)
Returns a gamma function

getIdentityTransfer

public static ComponentTransferFunction getIdentityTransfer()
Returns an instance initialized as an identity transfer function

getIntercept

public float getIntercept()
Returns the intercept value for this transfer function

getLinearTransfer

public static ComponentTransferFunction getLinearTransfer(float slope, float intercept)
Returns a linear transfer function

getOffset

public float getOffset()
Returns the offset value for this transfer function

getSlope

public float getSlope()
Returns the slope value for this transfer function

getTableTransfer

public static ComponentTransferFunction getTableTransfer(float[] tableValues)
Returns a table transfer function

getTableValues

public float[] getTableValues()
Returns the table values for this transfer function

getType

public int getType()
Returns the type of this transfer function
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.