Class SVGShapeElementBridge

    • Field Detail

      • hasNewShapePainter

        protected boolean hasNewShapePainter
        This flag bit indicates if a new shape painter has already been created. Avoid creating one ShapePainter per CSS property change
    • Constructor Detail

      • SVGShapeElementBridge

        protected SVGShapeElementBridge()
        Constructs a new bridge for SVG shapes.
    • Method Detail

      • createShapePainter

        protected ShapePainter createShapePainter​(BridgeContext ctx,
                                                  org.w3c.dom.Element e,
                                                  ShapeNode shapeNode)
        Creates the shape painter associated to the specified element. This implementation creates a shape painter considering the various fill and stroke properties.
        Parameters:
        ctx - the bridge context to use
        e - the element that describes the shape painter to use
        shapeNode - the shape node that is interested in its shape painter
      • buildShape

        protected abstract void buildShape​(BridgeContext ctx,
                                           org.w3c.dom.Element e,
                                           ShapeNode node)
        Initializes the specified ShapeNode's shape defined by the specified Element and using the specified bridge context.
        Parameters:
        ctx - the bridge context to use
        e - the element that describes the shape node to build
        node - the shape node to initialize
      • isComposite

        public boolean isComposite()
        Returns false as shapes are not a container.