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 privateConcreteComponentTransferFunction()Instances should be created through the various factory methods.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetAmplitude()Returns the amplitude value for this transfer functionstatic ComponentTransferFunctiongetDiscreteTransfer(float[] tableValues)Returns a discrete transfer functionfloatgetExponent()Returns the exponent value for this transfer functionstatic ComponentTransferFunctiongetGammaTransfer(float amplitude, float exponent, float offset)Returns a gamma functionstatic ComponentTransferFunctiongetIdentityTransfer()Returns an instance initialized as an identity transfer functionfloatgetIntercept()Returns the intercept value for this transfer functionstatic ComponentTransferFunctiongetLinearTransfer(float slope, float intercept)Returns a linear transfer functionfloatgetOffset()Returns the offset value for this transfer functionfloatgetSlope()Returns the slope value for this transfer functionstatic ComponentTransferFunctiongetTableTransfer(float[] tableValues)Returns a table transfer functionfloat[]getTableValues()Returns the table values for this transfer functionintgetType()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:
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
-
-