// log.debug("quadTo"+edgeCntrl2.x+","+edgeCntrl2.y+","+edge2.x+","+edge2.y);
// log.debug("lineTo"+inter2.x+","+inter2.y);
// log.debug("lineTo"+start2.x+","+start2.y);
// log.debug("lineTo"+start1.x+","+start1.y);
GeneralPath graphics = new GeneralPath();
graphics.moveTo(start1.x,start1.y);
graphics.lineTo(inter1.x,inter1.y);
graphics.lineTo(edge1.x,edge1.y);
graphics.quadTo(edgeCntrl1.x,edgeCntrl1.y,end.x,end.y);
graphics.quadTo(edgeCntrl2.x,edgeCntrl2.y,edge2.x,edge2.y);
graphics.lineTo(inter2.x,inter2.y);
graphics.lineTo(start2.x,start2.y);
graphics.lineTo(start1.x,start1.y);
graphics.closePath();
int[] rules = new int[8];
//all possible Compositing Rules:
rules[0] = AlphaComposite.SRC_OVER;