|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.displayejs.AbstractInteractiveElement org.opensourcephysics.displayejs.InteractiveArrow
public class InteractiveArrow
Field Summary | |
---|---|
static int |
ARROW
|
static int |
BOX
|
static int |
SEGMENT
|
Fields inherited from class org.opensourcephysics.displayejs.AbstractInteractiveElement |
---|
SENSIBILITY |
Fields inherited from interface org.opensourcephysics.displayejs.InteractiveElement |
---|
TARGET_POSITION, TARGET_SIZE |
Constructor Summary | |
---|---|
InteractiveArrow()
Default constructor |
|
InteractiveArrow(int _type)
Constructor for a given type. |
Method Summary | |
---|---|
void |
copyFrom(InteractiveElement _element)
|
void |
draw(DrawingPanel3D _panel,
java.awt.Graphics2D _g2,
int _index)
Draws a given Object3D (indicated by its index). |
void |
draw(DrawingPanel _panel,
java.awt.Graphics _g)
Draws a representation of an object in a drawing panel. |
void |
drawQuickly(DrawingPanel3D _panel,
java.awt.Graphics2D _g2)
Sketches the drawable |
Interactive |
findInteractive(DrawingPanel _panel,
int _xpix,
int _ypix)
|
Object3D[] |
getObjects3D(DrawingPanel3D _panel)
Returns an array of Objects3D to (sort according to its distance and) draw. |
double |
getXMax()
Gets the maximum x needed to draw this object. |
double |
getXMin()
Gets the minimum x needed to draw this object. |
double |
getYMax()
Gets the maximum y needed to draw this object. |
double |
getYMin()
Gets the minimum y needed to draw this object. |
double |
getZMax()
Gets the maximum z needed to draw this object. |
double |
getZMin()
Gets the minimum z needed to draw this object. |
void |
setArrowType(int _type)
Set the type of decoration at the head of the arrow. |
void |
setOrigin(double ox,
double oy,
double oz,
boolean relativeToSize)
Sets the origin of the body's own coordinate system. |
void |
setTransformation(Transformation transformation)
Sets the internal transformation of the element, that is, the transformation that takes the standard XYZ axes to the body's internal reference axes. |
void |
toBodyFrame(double[] vector)
This method converts a double[3] vector from the space's frame to the body's frame. |
void |
toSpaceFrame(double[] vector)
This method converts a double[3] vector from the body's frame to the space's frame. |
Methods inherited from class org.opensourcephysics.displayejs.AbstractInteractiveElement |
---|
addListener, canBeMeasured, getControl, getDataObject, getGroup, getResolution, getSensitivity, getSet, getSetIndex, getSizeX, getSizeY, getSizeZ, getStyle, getX, getY, getZ, initializeMemberOfSet, invokeActions, isEnabled, isEnabled, isGroupEnabled, isGroupEnabled, isMeasured, isVisible, needsToProject, removeAllListeners, removeListener, setControl, setDataObject, setEnabled, setEnabled, setGroup, setGroupEnabled, setGroupEnabled, setResolution, setSensitivity, setSet, setSizeX, setSizeXY, setSizeXYZ, setSizeY, setSizeZ, setVisible, setX, setXY, setXYZ, setY, setZ, toXML |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ARROW
public static final int SEGMENT
public static final int BOX
Constructor Detail |
---|
public InteractiveArrow()
public InteractiveArrow(int _type)
Method Detail |
---|
public void copyFrom(InteractiveElement _element)
copyFrom
in interface InteractiveElement
copyFrom
in class AbstractInteractiveElement
public void setArrowType(int _type)
public Interactive findInteractive(DrawingPanel _panel, int _xpix, int _ypix)
findInteractive
in interface Interactive
findInteractive
in class AbstractInteractiveElement
public Object3D[] getObjects3D(DrawingPanel3D _panel)
Drawable3D
getObjects3D
in interface Drawable3D
getObjects3D
in class AbstractInteractiveElement
public void draw(DrawingPanel3D _panel, java.awt.Graphics2D _g2, int _index)
Drawable3D
draw
in interface Drawable3D
draw
in class AbstractInteractiveElement
public void drawQuickly(DrawingPanel3D _panel, java.awt.Graphics2D _g2)
Drawable3D
drawQuickly
in interface Drawable3D
drawQuickly
in class AbstractInteractiveElement
public void draw(DrawingPanel _panel, java.awt.Graphics _g)
Drawable
draw
in interface Drawable
draw
in class AbstractInteractiveElement
public void setOrigin(double ox, double oy, double oz, boolean relativeToSize)
Body
setOrigin
in interface Body
public void setTransformation(Transformation transformation)
Body
setTransformation
in interface Body
transformation
- the new transformationTransformation
public void toSpaceFrame(double[] vector)
Body
toSpaceFrame
in interface Body
public void toBodyFrame(double[] vector) throws java.lang.UnsupportedOperationException
Body
toBodyFrame
in interface Body
java.lang.UnsupportedOperationException
public double getXMin()
Measurable
getXMin
in interface Measurable
getXMin
in class AbstractInteractiveElement
public double getXMax()
Measurable
getXMax
in interface Measurable
getXMax
in class AbstractInteractiveElement
public double getYMin()
Measurable
getYMin
in interface Measurable
getYMin
in class AbstractInteractiveElement
public double getYMax()
Measurable
getYMax
in interface Measurable
getYMax
in class AbstractInteractiveElement
public double getZMin()
Measurable3D
getZMin
in interface Measurable3D
getZMin
in class AbstractInteractiveElement
public double getZMax()
Measurable3D
getZMax
in interface Measurable3D
getZMax
in class AbstractInteractiveElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |