question: public void close ( ) { double dx = lastMoveTo . x - pen . x ; double dy = lastMoveTo . y - pen . y ; if ( convertToTwips ) { dx *= SwfConstants . TWIPS_PER_PIXEL ; dy *= SwfConstants . TWIPS_PER_PIXEL ; } pen . x = lastMoveTo . x ; pen . y = lastMoveTo . y ; if ( dx == 0 && dy == 0 ) { return ; } else { int intdx = ( int ) Math . rint ( dx ) ; int intdy = ( int ) Math . rint ( dy ) ; addLineSubdivideAware ( intdx , intdy ) ; dxSumTwips += intdx ; dySumTwips += intdy ; } }
target:  Creates a straight-edge record (i.e a straight line) from the current drawing position to the last move-to position. If the delta for the x and y co-ordinates is zero, a line is not necessary and the method does nothing.