All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.contrib.PolygonTool

java.lang.Object
   |
   +----CH.ifa.draw.standard.AbstractTool
           |
           +----CH.ifa.draw.contrib.PolygonTool

public class PolygonTool
extends AbstractTool

Constructor Index

 o PolygonTool(DrawingView)

Method Index

 o activate()
Activates the tool for the given view.
 o deactivate()
Deactivates the tool.
 o mouseDown(MouseEvent, int, int)
Handles mouse down events in the drawing view.
 o mouseDrag(MouseEvent, int, int)
Handles mouse drag events in the drawing view.
 o mouseMove(MouseEvent, int, int)
Handles mouse moves (if the mouse button is up).
 o mouseUp(MouseEvent, int, int)
Handles mouse up in the drawing view.

Constructors

 o PolygonTool
 public PolygonTool(DrawingView view)

Methods

 o activate
 public void activate()
Activates the tool for the given view.

Overrides:
activate in class AbstractTool
 o deactivate
 public void deactivate()
Deactivates the tool.

Overrides:
deactivate in class AbstractTool
 o mouseDown
 public void mouseDown(MouseEvent e,
                       int x,
                       int y)
Handles mouse down events in the drawing view.

Overrides:
mouseDown in class AbstractTool
 o mouseMove
 public void mouseMove(MouseEvent e,
                       int x,
                       int y)
Handles mouse moves (if the mouse button is up).

Overrides:
mouseMove in class AbstractTool
 o mouseDrag
 public void mouseDrag(MouseEvent e,
                       int x,
                       int y)
Handles mouse drag events in the drawing view.

Overrides:
mouseDrag in class AbstractTool
 o mouseUp
 public void mouseUp(MouseEvent e,
                     int x,
                     int y)
Handles mouse up in the drawing view.

Overrides:
mouseUp in class AbstractTool

All Packages  Class Hierarchy  This Package  Previous  Next  Index