public static GeneralPath appendShapeEdge(GeneralPath toShape,GeneralPath addShape,boolean lineTo){
  boolean DEBUG=Debug.debugging("arealist");
  int pointCount=0;
  if (addShape == null) {
    return toShape;
  }
  if (toShape == null) {
    return addShape;
  }
  toShape.append(addShape,lineTo);
  return toShape;
}

public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( "arealist" ) ; int pointCount = 0 ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toShape ; }
convenience method to append the edge of a generalpath shape to another generalpath shape . a pathiterator is used to figure out the points to use to add to the toshape . you need to close the path yourself if you want it to be a polygon .
