|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwheels.etc.AbstractGraphic
Abstract class implementing CustomGraphic interface. For convenience,
defines all the mouse interaction methods to do nothing so they
don't all have to be defined every time a class implementing CustomGraphic
is created.
All subclasses must implement paint(java.awt.Graphics2D) and
contains(java.awt.Point)!
| Constructor Summary | |
AbstractGraphic()
|
|
| Method Summary | |
void |
mouseClicked(MouseEvent e)
Called when mouse is clicked over the graphic. |
void |
mouseDragged(MouseEvent e)
Called when mouse button is pressed and dragged over graphic. |
void |
mousePressed(MouseEvent e)
Called when a mouse button is pressed over the graphic. |
void |
mouseReleased(MouseEvent e)
Called when a mouse button is released over the graphic. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface wheels.etc.CustomGraphic |
contains, paint |
| Constructor Detail |
public AbstractGraphic()
| Method Detail |
public void mousePressed(MouseEvent e)
mousePressed in interface CustomGraphicpublic void mouseReleased(MouseEvent e)
mouseReleased in interface CustomGraphicpublic void mouseClicked(MouseEvent e)
mouseClicked in interface CustomGraphicpublic void mouseDragged(MouseEvent e)
mouseDragged in interface CustomGraphic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||