Package org.apache.batik.ext.awt.image
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.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the amplitude value for this transfer functionstatic ComponentTransferFunction
getDiscreteTransfer
(float[] tableValues) Returns a discrete transfer functionfloat
Returns the exponent value for this transfer functionstatic ComponentTransferFunction
getGammaTransfer
(float amplitude, float exponent, float offset) Returns a gamma functionstatic ComponentTransferFunction
Returns an instance initialized as an identity transfer functionfloat
Returns the intercept value for this transfer functionstatic ComponentTransferFunction
getLinearTransfer
(float slope, float intercept) Returns a linear transfer functionfloat
Returns the offset value for this transfer functionfloat
getSlope()
Returns the slope value for this transfer functionstatic ComponentTransferFunction
getTableTransfer
(float[] tableValues) Returns a table transfer functionfloat[]
Returns the table values for this transfer functionint
getType()
Returns the type of this transfer function
-
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:
getType
in interfaceComponentTransferFunction
-
getSlope
public float getSlope()Returns the slope value for this transfer function- Specified by:
getSlope
in interfaceComponentTransferFunction
-
getTableValues
public float[] getTableValues()Returns the table values for this transfer function- Specified by:
getTableValues
in interfaceComponentTransferFunction
-
getIntercept
public float getIntercept()Returns the intercept value for this transfer function- Specified by:
getIntercept
in interfaceComponentTransferFunction
-
getAmplitude
public float getAmplitude()Returns the amplitude value for this transfer function- Specified by:
getAmplitude
in interfaceComponentTransferFunction
-
getExponent
public float getExponent()Returns the exponent value for this transfer function- Specified by:
getExponent
in interfaceComponentTransferFunction
-
getOffset
public float getOffset()Returns the offset value for this transfer function- Specified by:
getOffset
in interfaceComponentTransferFunction
-