Method: #plotMove

Defined in:
sample/demos-en/plot.rb,
sample/demos-jp/plot.rb

#plotMove(w, x, y) ⇒ Object

plotMove – This method is invoked during mouse motion events. It drags the current item.

Arguments: w - The canvas window. x, y - The coordinates of the mouse.



120
121
122
123
124
# File 'sample/demos-en/plot.rb', line 120

def plotMove (w, x, y)
  w.move 'selected', x - $plot['lastX'], y - $plot['lastY']
  $plot['lastX'] = x
  $plot['lastY'] = y
end