|
|||||||||
| 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
net.java.dev.joode.graphics2D.tool.ForceTool
public class ForceTool
graphicaly applies a force to a body at a specific point on the body
| Field Summary | |
|---|---|
float |
scalingFactor
the differece between the current cursor position and the anchor point is scaled by the scaling factor to produce a force vector to apply at the anchor point |
| Fields inherited from class net.java.dev.joode.graphics2D.tool.AbstractTool |
|---|
tools |
| Constructor Summary | |
|---|---|
ForceTool()
|
|
| 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 |
void |
mouseDragged(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 |
step()
|
| Methods inherited from class net.java.dev.joode.graphics2D.tool.AbstractTool |
|---|
getLabel, install, mouseClicked, mouseEntered, mouseExited, mouseMoved, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public float scalingFactor
| Constructor Detail |
|---|
public ForceTool()
| Method Detail |
|---|
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class AbstractToolpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class AbstractToolpublic void step()
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class AbstractTool
public void notifyQuickStep(World w,
float stepSize)
WorldStepListener
notifyQuickStep in interface WorldStepListenernotifyQuickStep in class AbstractTool
public void notifyStep(World w,
float stepSize)
WorldStepListener
notifyStep in interface WorldStepListenernotifyStep in class AbstractToolpublic void activate()
ViewTool
activate in interface ViewToolactivate in class AbstractToolpublic void deactivate()
ViewTool
deactivate in interface ViewTooldeactivate in class AbstractToolpublic javax.swing.Icon getIcon()
AbstractTool
getIcon in interface ViewToolgetIcon in class AbstractTool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||