public class LineDragEvent extends EventObject
Constructor and Description |
---|
LineDragEvent(IndexedLineSet lineSet,
int index,
double[] translation,
double[] position) |
Modifier and Type | Method and Description |
---|---|
int |
getIndex() |
IndexedLineSet |
getIndexedLineSet() |
int[] |
getLineIndices()
BE CAREFUL: this method uses the line index when the drag started.
|
double[][] |
getLineVertices()
BE CAREFUL: this method uses the line index when the drag started.
|
double[] |
getPosition() |
double[] |
getTranslation() |
double |
getX()
The x-coordinate of this event's translation.
|
double |
getY()
The y-coordinate of this event's translation.
|
double |
getZ()
The z-coordinate of this event's translation.
|
getSource, toString
public LineDragEvent(IndexedLineSet lineSet, int index, double[] translation, double[] position)
public double getX()
public double getY()
public double getZ()
public double[] getTranslation()
public double[] getPosition()
public int getIndex()
public int[] getLineIndices()
ArrayIndexOutOfBoundsException
public double[][] getLineVertices()
ArrayIndexOutOfBoundsException
public IndexedLineSet getIndexedLineSet()