|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.displayejs.InteractionTargetElementPosition
public class InteractionTargetElementPosition
Method Summary | |
---|---|
void |
draw(DrawingPanel _panel,
java.awt.Graphics _g)
Draws a representation of an object in a drawing panel. |
Interactive |
findInteractive(DrawingPanel _panel,
int _xpix,
int _ypix)
|
Point3D |
getHotspot(DrawingPanel _panel)
|
InteractionSource |
getSource()
|
double |
getX()
|
double |
getXMax()
Gets the maximum x needed to draw this object. |
double |
getXMin()
Gets the minimum x needed to draw this object. |
double |
getY()
|
double |
getYMax()
Gets the maximum y needed to draw this object. |
double |
getYMin()
Gets the minimum y needed to draw this object. |
boolean |
isEnabled()
|
boolean |
isMeasured()
Determines if information is available to set min/max values. |
void |
setEnabled(boolean _enabled)
|
void |
setX(double _x)
|
void |
setXY(double _x,
double _y)
|
void |
setY(double _y)
|
void |
updateHotspot(DrawingPanel _panel,
Point3D _point)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public InteractionSource getSource()
getSource
in interface InteractionTarget
public Point3D getHotspot(DrawingPanel _panel)
getHotspot
in interface InteractionTarget
public void updateHotspot(DrawingPanel _panel, Point3D _point)
updateHotspot
in interface InteractionTarget
public Interactive findInteractive(DrawingPanel _panel, int _xpix, int _ypix)
findInteractive
in interface Interactive
public void setEnabled(boolean _enabled)
setEnabled
in interface Interactive
public boolean isEnabled()
isEnabled
in interface Interactive
public void setXY(double _x, double _y)
setXY
in interface Interactive
public void setX(double _x)
setX
in interface Interactive
public void setY(double _y)
setY
in interface Interactive
public double getX()
getX
in interface Interactive
public double getY()
getY
in interface Interactive
public boolean isMeasured()
Measurable
isMeasured
in interface Measurable
public double getXMin()
Measurable
getXMin
in interface Measurable
public double getXMax()
Measurable
getXMax
in interface Measurable
public double getYMin()
Measurable
getYMin
in interface Measurable
public double getYMax()
Measurable
getYMax
in interface Measurable
public void draw(DrawingPanel _panel, java.awt.Graphics _g)
Drawable
draw
in interface Drawable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |