Class SVGFeColorMatrixElementBridge

    • Constructor Detail

      • SVGFeColorMatrixElementBridge

        public SVGFeColorMatrixElementBridge()
        Constructs a new bridge for the <feColorMatrix> element.
    • Method Detail

      • getLocalName

        public java.lang.String getLocalName()
        Returns 'feColorMatrix'.
      • createFilter

        public Filter createFilter​(BridgeContext ctx,
                                   org.w3c.dom.Element filterElement,
                                   org.w3c.dom.Element filteredElement,
                                   GraphicsNode filteredNode,
                                   Filter inputFilter,
                                   java.awt.geom.Rectangle2D filterRegion,
                                   java.util.Map filterMap)
        Creates a Filter primitive according to the specified parameters.
        Parameters:
        ctx - the bridge context to use
        filterElement - the element that defines a filter
        filteredElement - the element that references the filter
        filteredNode - the graphics node to filter
        inputFilter - the Filter that represents the current filter input if the filter chain.
        filterRegion - the filter area defined for the filter chain the new node will be part of.
        filterMap - a map where the mediator can map a name to the Filter it creates. Other FilterBridges can then access a filter node from the filterMap if they know its name.
      • convertValuesToMatrix

        protected static float[][] convertValuesToMatrix​(org.w3c.dom.Element filterElement,
                                                         BridgeContext ctx)
        Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'matrix' type.
        Parameters:
        filterElement - the filter element
        ctx - the BridgeContext to use for error information
      • convertValuesToSaturate

        protected static float convertValuesToSaturate​(org.w3c.dom.Element filterElement,
                                                       BridgeContext ctx)
        Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'saturate' type.
        Parameters:
        filterElement - the filter element
        ctx - the BridgeContext to use for error information
      • convertValuesToHueRotate

        protected static float convertValuesToHueRotate​(org.w3c.dom.Element filterElement,
                                                        BridgeContext ctx)
        Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'hueRotate' type.
        Parameters:
        filterElement - the filter element
        ctx - the BridgeContext to use for error information
      • convertType

        protected static int convertType​(org.w3c.dom.Element filterElement,
                                         BridgeContext ctx)
        Converts the type of the specified color matrix filter primitive.
        Parameters:
        filterElement - the filter element
        ctx - the BridgeContext to use for error information