|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwheelsunh.etc.AbstractGraphic
public abstract class 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(java.awt.event.MouseEvent e)
Called when mouse is clicked over the graphic. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Called when mouse button is pressed and dragged over graphic. |
void |
mousePressed(java.awt.event.MouseEvent e)
Called when a mouse button is pressed over the graphic. |
void |
mouseReleased(java.awt.event.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 wheelsunh.etc.CustomGraphic |
---|
contains, paint |
Constructor Detail |
---|
public AbstractGraphic()
Method Detail |
---|
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface CustomGraphic
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface CustomGraphic
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface CustomGraphic
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface CustomGraphic
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |