Class ConcreteComponentTransferFunction
java.lang.Object
org.apache.batik.ext.awt.image.ConcreteComponentTransferFunction
- All Implemented Interfaces:
ComponentTransferFunction
public final class ConcreteComponentTransferFunction
extends Object
implements ComponentTransferFunction
This class implements the interface expected from a component
transfer function.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate floatprivate floatprivate floatprivate floatprivate float[]private int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInstances should be created through the various factory methods. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the amplitude value for this transfer functionstatic ComponentTransferFunctiongetDiscreteTransfer(float[] tableValues) Returns a discrete transfer functionfloatReturns the exponent value for this transfer functionstatic ComponentTransferFunctiongetGammaTransfer(float amplitude, float exponent, float offset) Returns a gamma functionstatic ComponentTransferFunctionReturns an instance initialized as an identity transfer functionfloatReturns the intercept value for this transfer functionstatic ComponentTransferFunctiongetLinearTransfer(float slope, float intercept) Returns a linear transfer functionfloatReturns the offset value for this transfer functionfloatgetSlope()Returns the slope value for this transfer functionstatic ComponentTransferFunctiongetTableTransfer(float[] tableValues) Returns a table transfer functionfloat[]Returns the table values for this transfer functionintgetType()Returns the type of this transfer function
-
Field Details
-
type
private int type -
slope
private float slope -
tableValues
private float[] tableValues -
intercept
private float intercept -
amplitude
private float amplitude -
exponent
private float exponent -
offset
private float offset
-
-
Constructor Details
-
ConcreteComponentTransferFunction
private ConcreteComponentTransferFunction()Instances should be created through the various factory methods.
-
-
Method Details
-
getIdentityTransfer
Returns an instance initialized as an identity transfer function -
getTableTransfer
Returns a table transfer function -
getDiscreteTransfer
Returns a discrete transfer function -
getLinearTransfer
Returns a linear transfer function -
getGammaTransfer
public static ComponentTransferFunction getGammaTransfer(float amplitude, float exponent, float offset) Returns a gamma function -
getType
public int getType()Returns the type of this transfer function- Specified by:
getTypein interfaceComponentTransferFunction
-
getSlope
public float getSlope()Returns the slope value for this transfer function- Specified by:
getSlopein interfaceComponentTransferFunction
-
getTableValues
public float[] getTableValues()Returns the table values for this transfer function- Specified by:
getTableValuesin interfaceComponentTransferFunction
-
getIntercept
public float getIntercept()Returns the intercept value for this transfer function- Specified by:
getInterceptin interfaceComponentTransferFunction
-
getAmplitude
public float getAmplitude()Returns the amplitude value for this transfer function- Specified by:
getAmplitudein interfaceComponentTransferFunction
-
getExponent
public float getExponent()Returns the exponent value for this transfer function- Specified by:
getExponentin interfaceComponentTransferFunction
-
getOffset
public float getOffset()Returns the offset value for this transfer function- Specified by:
getOffsetin interfaceComponentTransferFunction
-