Module com.github.weisj.jsvg
Class TransferFunctionElement
java.lang.Object
com.github.weisj.jsvg.nodes.AbstractSVGNode
com.github.weisj.jsvg.nodes.filter.TransferFunctionElement
- All Implemented Interfaces:
SVGNode
- Direct Known Subclasses:
TransferFunctionElement.FeFuncA
,TransferFunctionElement.FeFuncB
,TransferFunctionElement.FeFuncG
,TransferFunctionElement.FeFuncR
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static final class
static final class
static final class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TransferFunctionElement.Channel
(package private) static final byte[]
private byte[]
private TransferFunctionType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(@NotNull AttributeNode attributeNode) channel()
private static byte @Nullable []
createGammaLookupTable
(float amplitude, float exponent, float offset) private static byte @Nullable []
createLinearLookupTable
(float intercept, float slope) private static byte @Nullable []
createLookupTable
(TransferFunctionType type, @NotNull AttributeNode attributeNode) private static byte @Nullable []
createTableBasedLookupTable
(TransferFunctionType type, int[] intTable) byte @NotNull []
type()
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, id, toString
-
Field Details
-
IDENTITY_LOOKUP_TABLE
static final byte[] IDENTITY_LOOKUP_TABLE -
channel
-
type
-
lookupTable
private byte[] lookupTable
-
-
Constructor Details
-
TransferFunctionElement
-
-
Method Details
-
channel
-
type
-
lookupTable
public byte @NotNull [] lookupTable() -
build
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classAbstractSVGNode
-
createLookupTable
private static byte @Nullable [] createLookupTable(TransferFunctionType type, @NotNull @NotNull AttributeNode attributeNode) -
createTableBasedLookupTable
private static byte @Nullable [] createTableBasedLookupTable(TransferFunctionType type, int[] intTable) -
createLinearLookupTable
private static byte @Nullable [] createLinearLookupTable(float intercept, float slope) -
createGammaLookupTable
private static byte @Nullable [] createGammaLookupTable(float amplitude, float exponent, float offset)
-