question: 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 ; }
target:  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.