org.opensourcephysics.media.core
Class VidCartesianCoordinateStringBuilder
java.lang.Object
org.opensourcephysics.display.axes.CoordinateStringBuilder
org.opensourcephysics.display.axes.CartesianCoordinateStringBuilder
org.opensourcephysics.media.core.VidCartesianCoordinateStringBuilder
public class VidCartesianCoordinateStringBuilder
- extends CartesianCoordinateStringBuilder
A coordinate string builder for a video panel.
Method Summary |
java.lang.String |
getCoordinateString(double x,
double y)
Returns the specified xy coordinates in a string. |
java.lang.String |
getCoordinateString(DrawingPanel panel,
java.awt.event.MouseEvent e)
Converts the pixel coordinates in a mouse event into world coordinates and
return these coordinates in a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VidCartesianCoordinateStringBuilder
protected VidCartesianCoordinateStringBuilder()
VidCartesianCoordinateStringBuilder
protected VidCartesianCoordinateStringBuilder(java.lang.String xLabel,
java.lang.String yLabel)
getCoordinateString
public java.lang.String getCoordinateString(DrawingPanel panel,
java.awt.event.MouseEvent e)
- Converts the pixel coordinates in a mouse event into world coordinates and
return these coordinates in a string.
- Overrides:
getCoordinateString
in class CartesianCoordinateStringBuilder
- Parameters:
panel
- the drawing panele
- the mouse event
- Returns:
- the coordinate string
getCoordinateString
public java.lang.String getCoordinateString(double x,
double y)
- Returns the specified xy coordinates in a string.
- Parameters:
x
- the xy
- the y
- Returns:
- the coordinate string