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
  • Field Details

  • Constructor Details

  • Method Details

    • channel

    • type

      public TransferFunctionType type()
    • lookupTable

      public byte @NotNull [] lookupTable()
    • build

      @MustBeInvokedByOverriders public void build(@NotNull @NotNull AttributeNode attributeNode)
      Specified by:
      build in interface SVGNode
      Overrides:
      build in class AbstractSVGNode
    • 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)