org.opensourcephysics.displayejs
Class InteractionTargetCursorPosition

java.lang.Object
  extended by org.opensourcephysics.displayejs.InteractionTargetElementPosition
      extended by org.opensourcephysics.displayejs.InteractionTargetCursorPosition
All Implemented Interfaces:
Drawable, Interactive, Measurable, InteractionTarget

public class InteractionTargetCursorPosition
extends InteractionTargetElementPosition

A particular implmentation of a position target for a cursor


Field Summary
static int X
           
static int XY
           
static int Y
           
 
Method Summary
 Point3D getHotspot(DrawingPanel _panel)
           
 void updateHotspot(DrawingPanel _panel, Point3D _point)
           
 
Methods inherited from class org.opensourcephysics.displayejs.InteractionTargetElementPosition
draw, findInteractive, getSource, getX, getXMax, getXMin, getY, getYMax, getYMin, isEnabled, isMeasured, setEnabled, setX, setXY, setY
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X

public static final int X
See Also:
Constant Field Values

Y

public static final int Y
See Also:
Constant Field Values

XY

public static final int XY
See Also:
Constant Field Values
Method Detail

getHotspot

public Point3D getHotspot(DrawingPanel _panel)
Specified by:
getHotspot in interface InteractionTarget
Overrides:
getHotspot in class InteractionTargetElementPosition

updateHotspot

public void updateHotspot(DrawingPanel _panel,
                          Point3D _point)
Specified by:
updateHotspot in interface InteractionTarget
Overrides:
updateHotspot in class InteractionTargetElementPosition