|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.batik.ext.awt.image.ConcreteComponentTransferFunction
This class implements the interface expected from a component transfer function.
| Fields inherited from interface org.apache.batik.ext.awt.image.ComponentTransferFunction |
DISCRETE, GAMMA, IDENTITY, LINEAR, TABLE |
| Method Summary | |
float |
getAmplitude()
Returns the amplitude value for this transfer function |
static ComponentTransferFunction |
getDiscreteTransfer(float[] tableValues)
Returns a discrete transfer function |
float |
getExponent()
Returns the exponent value for this transfer function |
static ComponentTransferFunction |
getGammaTransfer(float amplitude,
float exponent,
float offset)
Returns a gamma function |
static ComponentTransferFunction |
getIdentityTransfer()
Returns an instance initialized as an identity transfer function |
float |
getIntercept()
Returns the intercept value for this transfer function |
static ComponentTransferFunction |
getLinearTransfer(float slope,
float intercept)
Returns a linear transfer function |
float |
getOffset()
Returns the offset value for this transfer function |
float |
getSlope()
Returns the slope value for this transfer function |
static ComponentTransferFunction |
getTableTransfer(float[] tableValues)
Returns a table transfer function |
float[] |
getTableValues()
Returns the table values for this transfer function |
int |
getType()
Returns the type of this transfer function |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ComponentTransferFunction getIdentityTransfer()
public static ComponentTransferFunction getTableTransfer(float[] tableValues)
public static ComponentTransferFunction getDiscreteTransfer(float[] tableValues)
public static ComponentTransferFunction getLinearTransfer(float slope,
float intercept)
public static ComponentTransferFunction getGammaTransfer(float amplitude,
float exponent,
float offset)
public int getType()
getType in interface ComponentTransferFunctionpublic float getSlope()
getSlope in interface ComponentTransferFunctionpublic float[] getTableValues()
getTableValues in interface ComponentTransferFunctionpublic float getIntercept()
getIntercept in interface ComponentTransferFunctionpublic float getAmplitude()
getAmplitude in interface ComponentTransferFunctionpublic float getExponent()
getExponent in interface ComponentTransferFunctionpublic float getOffset()
getOffset in interface ComponentTransferFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||