|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ElementTrail
Title: ElementTrail
Description:A trail of 3D pixels on the screen.
This object is often used to show the path of a moving object.
| Nested Class Summary | |
|---|---|
static class |
ElementTrail.Loader
|
| Field Summary |
|---|
| Fields inherited from interface org.opensourcephysics.display3d.core.Element |
|---|
TARGET_POSITION, TARGET_SIZE |
| Method Summary | |
|---|---|
void |
addPoint(double[] point)
Adds a new double[] point to the trail. |
void |
addPoint(double x,
double y,
double z)
Adds a new (x,y,z) point to the trail. |
void |
clear()
Clears all points from the trail. |
int |
getMaximumPoints()
Returns the maximum number of points allowed for the trail |
boolean |
isConnected()
Gets the connected flag. |
void |
moveToPoint(double x,
double y,
double z)
Starts a new (x,y,z) trail segment by moving to a new point without drawing. |
void |
setConnected(boolean connected)
Sets the connected flag. |
void |
setGhostPoint(double[] point,
boolean connected)
Sets a temporary point that is displayed as the last point of the trail but is not meant to be a permanent part of the trail. |
void |
setMaximumPoints(int maximum)
Sets the maximum number of points for the trail. |
void |
setXLabel(java.lang.String _label)
Sets the label of the X coordinate when the data is displayed in a table |
void |
setYLabel(java.lang.String _label)
Sets the label of the Y coordinate when the data is displayed in a table |
void |
setZLabel(java.lang.String _label)
Sets the label of the Z coordinate when the data is displayed in a table |
| Methods inherited from interface org.opensourcephysics.display3d.core.Element |
|---|
getDrawingPanel3D, 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 |
| Methods inherited from interface org.opensourcephysics.display.Data |
|---|
getColumnNames, getData2D, getData3D, getDataList, getDatasets, getFillColors, getID, getLineColors, getName, setID |
| Method Detail |
|---|
void addPoint(double x,
double y,
double z)
x - doubley - doublez - doublevoid addPoint(double[] point)
point - double[] The array with the coordinates of the point.
If the length of the array is 2, the coordinates are asumed to be X
and Y (Z=0). If it is 3, then X, Y, and Z (as usual).
void moveToPoint(double x,
double y,
double z)
x - doubley - doublez - doublevoid setMaximumPoints(int maximum)
maximum - intint getMaximumPoints()
void setConnected(boolean connected)
connected - booleanboolean isConnected()
setConnected(boolean)void clear()
void setXLabel(java.lang.String _label)
_label - void setYLabel(java.lang.String _label)
_label - void setZLabel(java.lang.String _label)
_label -
void setGhostPoint(double[] point,
boolean connected)
point - the double[3] data with the point. null if there is no such pointconnected - whether this point is connected to the previous one
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||