Skip to content

Instantly share code, notes, and snippets.

@robinkanters
Created December 23, 2015 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinkanters/298be43269d324622436 to your computer and use it in GitHub Desktop.
Save robinkanters/298be43269d324622436 to your computer and use it in GitHub Desktop.
class AbstractTool is
function moveTo(point) is
input: the location point the mouse moved to
(this function must be implemented by subclasses)
function mouseDown(point) is
input: the location point the mouse is at
(this function must be implemented by subclasses)
function mouseUp(point) is
input: the location point the mouse is at
(this function must be implemented by subclasses)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment