* @param shapeNode the shape node that is interested in its shape painter
*/
protected ShapePainter createShapePainter(BridgeContext ctx,
Element e,
ShapeNode shapeNode) {
ShapePainter fillAndStroke;
fillAndStroke = createFillStrokePainter(ctx, e, shapeNode);
ShapePainter markerPainter = createMarkerPainter(ctx, e, shapeNode);
Shape shape = shapeNode.getShape();
ShapePainter painter;
if (markerPainter != null) {
if (fillAndStroke != null) {
CompositeShapePainter cp = new CompositeShapePainter(shape);
cp.addShapePainter(fillAndStroke);