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
public abstract class TransferFunctionElement extends AbstractSVGNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransferFunctionElement.Channelstatic classTransferFunctionElement.FeFuncAstatic classTransferFunctionElement.FeFuncBstatic classTransferFunctionElement.FeFuncGstatic classTransferFunctionElement.FeFuncR
-
Field Summary
Fields Modifier and Type Field Description private TransferFunctionElement.Channelchannel(package private) static byte[]IDENTITY_LOOKUP_TABLEprivate byte[]lookupTableprivate TransferFunctionTypetype
-
Constructor Summary
Constructors Modifier Constructor Description privateTransferFunctionElement(TransferFunctionElement.Channel channel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuild(@NotNull AttributeNode attributeNode)TransferFunctionElement.Channelchannel()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()TransferFunctionTypetype()-
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:
buildin interfaceSVGNode- Overrides:
buildin 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)
-
-