|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Title: ElementImage
Description: Draws a circle at its position with the given size.
Because an image is essentialy a 2D object, it doesn't behave completely as a 3D object. Thus, its center will be affected by transformations of the element, BUT ITS SIZE WON'T. Moreover, in 3D visualizations, the maximum of sizeX and sizeY is used for its horizontal size. In all other views, the corresponding size is used.
Images can be rotated.
Nested Class Summary | |
static class |
ElementImage.Loader
|
Field Summary |
Fields inherited from interface org.opensourcephysics.display3d.core.Element |
TARGET_POSITION, TARGET_SIZE |
Method Summary | |
java.lang.String |
getImageFile()
Gets the image displayed |
double |
getRotationAngle()
Gets the rotation angle for the image |
void |
setImageFile(java.lang.String file)
Sets the image file to be displayed |
void |
setRotationAngle(double angle)
Sets the rotation angle for the image. |
Methods inherited from interface org.opensourcephysics.display3d.core.Element |
getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isVisible, loadUnmutableObjects, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrame |
Methods inherited from interface org.opensourcephysics.display3d.core.interaction.InteractionSource |
addInteractionListener, getInteractionTarget, removeInteractionListener |
Method Detail |
public void setImageFile(java.lang.String file)
public java.lang.String getImageFile()
public void setRotationAngle(double angle)
angle
- the rotation anglepublic double getRotationAngle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |