Class BatikRegularPolygonElementBridge

    • Constructor Detail

      • BatikRegularPolygonElementBridge

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

      • getLocalName

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

        protected void buildShape​(BridgeContext ctx,
                                  org.w3c.dom.Element e,
                                  ShapeNode shapeNode)
        Constructs a regular polygone according to the specified parameters.
        Specified by:
        buildShape in class SVGShapeElementBridge
        Parameters:
        ctx - the bridge context to use
        e - the element that describes a rect element
        shapeNode - the shape node to initialize
      • convertSides

        protected static int convertSides​(org.w3c.dom.Element filterElement,
                                          java.lang.String attrName,
                                          int defaultValue,
                                          BridgeContext ctx)
        Stolen from AbstractSVGFilterPrimitiveElementBridge. Converts on the specified filter primitive element, the specified attribute that represents an integer and with the specified default value.
        Parameters:
        filterElement - the filter primitive element
        attrName - the name of the attribute
        defaultValue - the default value of the attribute
        ctx - the BridgeContext to use for error information