Interface ourTool

All Known Implementing Classes:
brushTool, bucketTool, curveTool, ellipseTool, eraserTool, letterTool, lineTool, magicSelectTool, medicineTool, pencilTool, polygonTool, rectTool, roundedRectTool, selectallTool, selectTool, sprayTool, zoomTool

public interface ourTool

Interface for all tools so that functionality can be abstracted.


Method Summary
 void clickAction(java.awt.event.MouseEvent mevt, main_canvas theCanvas)
          Called whenever the mouse is clicked.
 void dragAction(java.awt.event.MouseEvent mevt, main_canvas theCanvas)
          Called for all dragging actions.
 void mouseReleaseAction(java.awt.event.MouseEvent mevt, main_canvas theCanvas)
          Called for all mouse releasing actions.
 

Method Detail

clickAction

void clickAction(java.awt.event.MouseEvent mevt,
                 main_canvas theCanvas)
Called whenever the mouse is clicked.

Parameters:
mevt - holds a MouseEvent
theCanvas - holds a main_canvas

dragAction

void dragAction(java.awt.event.MouseEvent mevt,
                main_canvas theCanvas)
Called for all dragging actions.

Parameters:
mevt - holds a MouseEvent for the dragging action
theCanvas - holds a main_canvas

mouseReleaseAction

void mouseReleaseAction(java.awt.event.MouseEvent mevt,
                        main_canvas theCanvas)
Called for all mouse releasing actions.

Parameters:
mevt - holds a MouseEvent
theCanvas - holds a main_canvas