|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.drawing3d.Element org.opensourcephysics.drawing3d.Group org.opensourcephysics.drawing3d.MultiTrail
public class MultiTrail
Title: MultiTrail
Description: MultiTrail is a class that uses a group of ElementTrails to create a more sophisticated trail with segments
Field Summary |
---|
Fields inherited from class org.opensourcephysics.drawing3d.Element |
---|
CHANGE_COLOR, CHANGE_GROUP, CHANGE_INTERACTION_POINTS, CHANGE_NONE, CHANGE_POSITION, CHANGE_POSITION_AND_SIZE, CHANGE_PROJECTION, CHANGE_RESOLUTION, CHANGE_SHAPE, CHANGE_SIZE, CHANGE_TRANSFORMATION, CHANGE_VISIBILITY, STD_CENTERED_END, STD_CENTERED_ORIGIN, STD_END, STD_ORIGIN, TARGET_POSITION, TARGET_SIZE, TO_RADIANS, X_UNIT_VECTOR, Y_UNIT_VECTOR, Z_UNIT_VECTOR |
Constructor Summary | |
---|---|
MultiTrail()
|
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 point to the trail. |
void |
addPoints(double[][] input)
Adds an array of new double[] points to the trail. |
void |
addPoints(double[] xInput,
double[] yInput,
double[] zInput)
Adds an array of points to the trail. |
void |
clear()
Clears all points from all segments of the trail. |
int |
getConnectionType()
Gets the connection type. |
int |
getMaximumPoints()
Returns the maximum number of points allowed for the trail |
int |
getSkipPoints()
Returns the skip parameter of the trail. |
Style |
getStyle()
Gets the style of the element. |
void |
initialize()
Clears all points from the last segment of the trail, respecting previous segments. |
boolean |
isActive()
Whether the trail is in active mode. |
boolean |
isClearAtInput()
Whether the trail is in clear at input mode. |
boolean |
isNoRepeat()
Whether the trail is in no repeat mode. |
void |
moveToPoint(double[] point)
Moves to the new point without drawing. |
void |
moveToPoint(double x,
double y,
double z)
Moves to the new point without drawing. |
void |
newSegment()
Creates a new segment of the trail. |
void |
setActive(boolean _active)
Set/unset the active state of the trail. |
void |
setClearAtInput(boolean _clear)
Sets the trail to clear existing points when receiving a new point or array of points. |
void |
setConnectionType(int type)
Sets the type of connection for the next point. |
void |
setMaximumPoints(int maximum)
Sets the maximum number of points for the trail. |
void |
setNoRepeat(boolean _noRepeat)
Sets the no repeat state of the trail. |
void |
setSkipPoints(int _skip)
Sets the skip parameter. |
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 class org.opensourcephysics.drawing3d.Group |
---|
addElement, addElementAtIndex, addElements, getCanBeMeasured, getColumnNames, getData2D, getData3D, getDataList, getDatasets, getDiagonalSize, getElement, getElements, getExtrema, getFillColors, getID, getInteractedIndex, getLineColors, getNumberOfElements, getTargetHit, hasChanged, processChanges, removeAllElements, removeElement, removePanel, setID, setPanel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensourcephysics.display.Data |
---|
getName |
Constructor Detail |
---|
public MultiTrail()
Method Detail |
---|
public Style getStyle()
Element
getStyle
in class Element
Style
public void setActive(boolean _active)
_active
- public boolean isActive()
public void setNoRepeat(boolean _noRepeat)
_noRepeat
- public boolean isNoRepeat()
public void setClearAtInput(boolean _clear)
_clear
- public boolean isClearAtInput()
public void setSkipPoints(int _skip)
_skip
- public int getSkipPoints()
public void setXLabel(java.lang.String _label)
_label
- public void setYLabel(java.lang.String _label)
_label
- public void setZLabel(java.lang.String _label)
_label
- public void addPoint(double x, double y, double z)
x
- double The X coordinate of the point.y
- double The Y coordinate of the point.public void addPoint(double[] point)
point
- double[] The double[2] array with the coordinates of the point.public void moveToPoint(double x, double y, double z)
x
- double The X coordinate of the point.y
- double The Y coordinate of the point.public void moveToPoint(double[] point)
point
- double[] The double[2] array with the coordinates of the point.public void addPoints(double[][] input)
input
- double[][] The double[nPoints][2] array with the coordinates of the points.public void addPoints(double[] xInput, double[] yInput, double[] zInput)
xInput
- double The double[] array with the X coordinates of the points.yInput
- double The double[] array with the Y coordinates of the points.public void setMaximumPoints(int maximum)
maximum
- intpublic int getMaximumPoints()
public void setConnectionType(int type)
type
- intpublic int getConnectionType()
setConnectionType(int)
public void clear()
clear
in class Group
public void initialize()
initialize
in class Group
public void newSegment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |