Class SVGPatternElementBridge

    • Constructor Detail

      • SVGPatternElementBridge

        public SVGPatternElementBridge()
        Constructs a new SVGPatternElementBridge.
    • Method Detail

      • getLocalName

        public java.lang.String getLocalName()
        Returns 'pattern'.
        Specified by:
        getLocalName in interface Bridge
      • createPaint

        public java.awt.Paint createPaint​(BridgeContext ctx,
                                          org.w3c.dom.Element patternElement,
                                          org.w3c.dom.Element paintedElement,
                                          GraphicsNode paintedNode,
                                          float opacity)
        Creates a Paint according to the specified parameters.
        Specified by:
        createPaint in interface PaintBridge
        Parameters:
        ctx - the bridge context to use
        patternElement - the pattern element that defines a Paint
        paintedElement - the element referencing the paint
        paintedNode - the graphics node on which the Paint will be applied
        opacity - the opacity of the Paint to create
      • extractPatternContent

        protected static RootGraphicsNode extractPatternContent​(org.w3c.dom.Element patternElement,
                                                                BridgeContext ctx)
        Returns the content of the specified pattern element. The content of the pattern can be specified as children of the patternElement or children of one of its 'ancestor' (linked with the xlink:href attribute).
        Parameters:
        patternElement - the gradient element
        ctx - the bridge context to use
      • extractLocalPatternContent

        protected static RootGraphicsNode extractLocalPatternContent​(org.w3c.dom.Element e,
                                                                     BridgeContext ctx)
        Returns the content of the specified pattern element or null if any.
        Parameters:
        e - the pattern element
        ctx - the bridge context