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
public abstract class TransferFunctionElement extends AbstractSVGNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransferFunctionElement.Channel
static class
TransferFunctionElement.FeFuncA
static class
TransferFunctionElement.FeFuncB
static class
TransferFunctionElement.FeFuncG
static class
TransferFunctionElement.FeFuncR
-
Field Summary
Fields Modifier and Type Field Description private TransferFunctionElement.Channel
channel
(package private) static byte[]
IDENTITY_LOOKUP_TABLE
private byte[]
lookupTable
private TransferFunctionType
type
-
Constructor Summary
Constructors Modifier Constructor Description private
TransferFunctionElement(TransferFunctionElement.Channel channel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(@NotNull AttributeNode attributeNode)
TransferFunctionElement.Channel
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 []
lookupTable()
TransferFunctionType
type()
-
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, id, toString
-
-
-
-
Field Detail
-
IDENTITY_LOOKUP_TABLE
static final byte[] IDENTITY_LOOKUP_TABLE
-
channel
private final TransferFunctionElement.Channel channel
-
type
private TransferFunctionType type
-
lookupTable
private byte[] lookupTable
-
-
Constructor Detail
-
TransferFunctionElement
private TransferFunctionElement(TransferFunctionElement.Channel channel)
-
-
Method Detail
-
channel
public TransferFunctionElement.Channel channel()
-
type
public TransferFunctionType type()
-
lookupTable
public byte @NotNull [] lookupTable()
-
build
@MustBeInvokedByOverriders public void build(@NotNull @NotNull AttributeNode attributeNode)
- 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)
-
-