|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCH.ifa.draw.standard.AbstractTool
CH.ifa.draw.contrib.PolygonTool
public class PolygonTool
| Field Summary |
|---|
| Fields inherited from class CH.ifa.draw.standard.AbstractTool |
|---|
fAnchorX, fAnchorY, fView |
| Constructor Summary | |
|---|---|
PolygonTool(DrawingView view)
|
|
| Method Summary | |
|---|---|
void |
activate()
Activates the tool for the given view. |
void |
deactivate()
Deactivates the tool. |
void |
mouseDown(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse down events in the drawing view. |
void |
mouseDrag(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse drag events in the drawing view. |
void |
mouseMove(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse moves (if the mouse button is up). |
void |
mouseUp(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse up in the drawing view. |
| Methods inherited from class CH.ifa.draw.standard.AbstractTool |
|---|
drawing, editor, keyDown, view |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolygonTool(DrawingView view)
| Method Detail |
|---|
public void activate()
AbstractTool
activate in interface Toolactivate in class AbstractToolpublic void deactivate()
AbstractTool
deactivate in interface Tooldeactivate in class AbstractTool
public void mouseDown(java.awt.event.MouseEvent e,
int x,
int y)
AbstractTool
mouseDown in interface ToolmouseDown in class AbstractTool
public void mouseMove(java.awt.event.MouseEvent e,
int x,
int y)
AbstractTool
mouseMove in interface ToolmouseMove in class AbstractTool
public void mouseDrag(java.awt.event.MouseEvent e,
int x,
int y)
AbstractTool
mouseDrag in interface ToolmouseDrag in class AbstractTool
public void mouseUp(java.awt.event.MouseEvent e,
int x,
int y)
AbstractTool
mouseUp in interface ToolmouseUp in class AbstractTool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||