Class SVGDecoratedShapeElementBridge

All Implemented Interfaces:
SVGAnimationTargetContext, Bridge, BridgeUpdateHandler, ErrorConstants, GraphicsNodeBridge, XMLConstants, SVGContext, CSSConstants, SVGConstants
Direct Known Subclasses:
BatikRegularPolygonElementBridge, BatikStarElementBridge, SVGLineElementBridge, SVGPathElementBridge, SVGPolygonElementBridge, SVGPolylineElementBridge

public abstract class SVGDecoratedShapeElementBridge extends SVGShapeElementBridge
The base bridge class for decorated shapes. Decorated shapes can be filled, stroked and can have markers.
  • Constructor Details

    • SVGDecoratedShapeElementBridge

      protected SVGDecoratedShapeElementBridge()
      Constructs a new bridge for SVG decorated shapes.
  • Method Details

    • createShapePainter

      protected ShapePainter createShapePainter(BridgeContext ctx, 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 in addition to the marker properties.
      Overrides:
      createShapePainter in class SVGShapeElementBridge
      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
    • handleCSSPropertyChanged

      protected void handleCSSPropertyChanged(int property)
      Description copied from class: SVGShapeElementBridge
      Invoked for each CSS property that has changed.
      Overrides:
      handleCSSPropertyChanged in class SVGShapeElementBridge