Package org.opensourcephysics.media.core
Class VidCartesianCoordinateStringBuilder
java.lang.Object
org.opensourcephysics.display.axes.CoordinateStringBuilder
org.opensourcephysics.display.axes.CartesianCoordinateStringBuilder
org.opensourcephysics.media.core.VidCartesianCoordinateStringBuilder
- All Implemented Interfaces:
XYCoordinateStringBuilder
public class VidCartesianCoordinateStringBuilder
extends CartesianCoordinateStringBuilder
implements XYCoordinateStringBuilder
A coordinate string builder for a video panel.
-
Field Summary
Fields inherited from class org.opensourcephysics.display.axes.CoordinateStringBuilder
decimalFormat, scientificFormat, xLabel, yLabel
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
VidCartesianCoordinateStringBuilder
(String xLabel, String yLabel) -
Method Summary
Modifier and TypeMethodDescriptiongetCoordinateString
(DrawingPanel panel, MouseEvent e) Converts the pixel coordinates in a mouse event into world coordinates and return these coordinates in a string.getCoordinateString
(VideoPanel panel, double x, double y) Returns the specified xy coordinates in a string.Methods inherited from class org.opensourcephysics.display.axes.CartesianCoordinateStringBuilder
setCoordinateLabels
Methods inherited from class org.opensourcephysics.display.axes.CoordinateStringBuilder
createCartesian, createPolar, createPolar
-
Constructor Details
-
VidCartesianCoordinateStringBuilder
protected VidCartesianCoordinateStringBuilder() -
VidCartesianCoordinateStringBuilder
-
-
Method Details
-
getCoordinateString
Converts the pixel coordinates in a mouse event into world coordinates and return these coordinates in a string.- Overrides:
getCoordinateString
in classCartesianCoordinateStringBuilder
- Parameters:
panel
- the drawing panele
- the mouse event- Returns:
- the coordinate string
-
getCoordinateString
Returns the specified xy coordinates in a string.- Specified by:
getCoordinateString
in interfaceXYCoordinateStringBuilder
- Parameters:
x
- the xy
- the ypanel
- a VideoPanel- Returns:
- the coordinate string
-