|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.java.dev.joode.graphics2D.tool.CompositeTool
public class CompositeTool
allows multiple tools to appear as one atomic tool
| Constructor Summary | |
|---|---|
CompositeTool(java.lang.String label,
javax.swing.Icon icon)
|
|
| Method Summary | |
|---|---|
void |
activate()
Tells the tool that it has been activated (i.e. |
void |
addTool(ViewTool tool)
|
void |
deactivate()
Tells the tool that it has been deactivate (i.e. |
javax.swing.Icon |
getIcon()
gets the tools icon for buttons etc. |
java.lang.String |
getLabel()
returns the label that should be used for menus etc. |
void |
install(ViewTools toolsInterface)
called once when the tool is added to the tools interface the object passed in can be queried to retreive information such as the space or world |
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 |
| Constructor Detail |
|---|
public CompositeTool(java.lang.String label,
javax.swing.Icon icon)
| Method Detail |
|---|
public void addTool(ViewTool tool)
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 deactivate()
ViewTool
deactivate in interface ViewToolpublic void update()
ViewTool
update in interface ViewToolpublic void install(ViewTools toolsInterface)
ViewTool
install in interface ViewToolpublic java.lang.String getLabel()
ViewTool
getLabel in interface ViewToolpublic javax.swing.Icon getIcon()
ViewTool
getIcon in interface ViewTool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||