Draw with the mouse illustrator style

I can pass the type of figure I want to draw to DragCreatingTool in some way, on writing some method