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 java.lang.Object implements ComponentTransferFunction
This class implements the interface expected from a component transfer function.- Version:
- $Id: ConcreteComponentTransferFunction.java 1808977 2017-09-20 09:06:07Z ssteiner $
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ConcreteComponentTransferFunction()
Instances should be created through the various factory methods.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getAmplitude()
Returns the amplitude value for this transfer functionstatic ComponentTransferFunction
getDiscreteTransfer(float[] tableValues)
Returns a discrete transfer functionfloat
getExponent()
Returns the exponent value for this transfer functionstatic ComponentTransferFunction
getGammaTransfer(float amplitude, float exponent, float offset)
Returns a gamma functionstatic ComponentTransferFunction
getIdentityTransfer()
Returns an instance initialized as an identity transfer functionfloat
getIntercept()
Returns the intercept value for this transfer functionstatic ComponentTransferFunction
getLinearTransfer(float slope, float intercept)
Returns a linear transfer functionfloat
getOffset()
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[]
getTableValues()
Returns the table values for this transfer functionint
getType()
Returns the type of this transfer function
-
-
-
Method Detail
-
getIdentityTransfer
public static ComponentTransferFunction getIdentityTransfer()
Returns an instance initialized as an identity transfer function
-
getTableTransfer
public static ComponentTransferFunction getTableTransfer(float[] tableValues)
Returns a table transfer function
-
getDiscreteTransfer
public static ComponentTransferFunction getDiscreteTransfer(float[] tableValues)
Returns a discrete transfer function
-
getLinearTransfer
public static ComponentTransferFunction getLinearTransfer(float slope, float intercept)
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
-
-