public OMDrawingTool(){
  super();
  setBorder(BorderFactory.createEmptyBorder());
  DEBUG=Debug.debugging("drawingtool");
  selectionSupport=new SelectionSupport(this);
  setAttributes(new GraphicAttributes());
  setMouseMode(createMouseMode());
  undoStack=new UndoStack();
  undoTrigger=new UndoMenuItemStackTrigger();
  undoStack.addUndoStackTrigger(undoTrigger);
  setUseAsTool(false);
}

public OMDrawingTool ( ) { super ( ) ; setBorder ( BorderFactory . createEmptyBorder ( ) ) ; DEBUG = Debug . debugging ( "drawingtool" ) ; selectionSupport = new SelectionSupport ( this ) ; setAttributes ( new GraphicAttributes ( ) ) ; setMouseMode ( createMouseMode ( ) ) ; undoStack = new UndoStack ( ) ; undoTrigger = new UndoMenuItemStackTrigger ( ) ; undoStack . addUndoStackTrigger ( undoTrigger ) ; setUseAsTool ( false ) ; }
create a openmap drawing tool .
