|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.java.dev.joode.graphics2D.tool.AbstractTool
public abstract class AbstractTool
helper class for ViewTool implementers that provides concrete empty implementations of the event methods, so that subclasses do not necissarily need to define every one of them
| Field Summary | |
|---|---|
protected ViewTools |
tools
|
| Constructor Summary | |
|---|---|
AbstractTool()
|
|
| Method Summary | |
|---|---|
void |
activate()
Tells the tool that it has been activated (i.e. |
void |
deactivate()
Tells the tool that it has been deactivate (i.e. |
javax.swing.Icon |
getIcon()
returns null, subclasses should probably overide this |
java.lang.String |
getLabel()
uses the toString to produce a label |
void |
install(ViewTools tools)
stores the reference for subclasses to use |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
notifyQuickStep(World w,
float stepSize)
the world has quickstepped |
void |
notifyStep(World w,
float stepSize)
the world has stepped |
void |
update()
called if the world or space changes when a tool is active |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ViewTools tools
| Constructor Detail |
|---|
public AbstractTool()
| Method Detail |
|---|
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListener
public void notifyQuickStep(World w,
float stepSize)
WorldStepListener
notifyQuickStep in interface WorldStepListener
public void notifyStep(World w,
float stepSize)
WorldStepListener
notifyStep in interface WorldStepListenerpublic void activate()
ViewTool
activate in interface ViewToolpublic void update()
ViewTool
update in interface ViewToolpublic void deactivate()
ViewTool
deactivate in interface ViewToolpublic java.lang.String getLabel()
getLabel in interface ViewToolpublic javax.swing.Icon getIcon()
getIcon in interface ViewToolpublic void install(ViewTools tools)
install in interface ViewTool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||