// Converts a selection into code used by // Toolbar.drawButton() to draw a toolbar icon. getSelectionBounds(xbase, ybase, width, height); getSelectionCoordinates(xpoints, ypoints); String.resetBuffer; x0 = xpoints[0] - xbase; y0 = ypoints[0] - ybase; String.append("m("+x0+","+y0+"); "); for (i=1; i