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
ConstructorsModifierConstructorDescriptionprotectedprotectedVidCartesianCoordinateStringBuilder(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
setCoordinateLabelsMethods 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:
getCoordinateStringin classCartesianCoordinateStringBuilder- Parameters:
panel- the drawing panele- the mouse event- Returns:
- the coordinate string
-
getCoordinateString
Returns the specified xy coordinates in a string.- Specified by:
getCoordinateStringin interfaceXYCoordinateStringBuilder- Parameters:
x- the xy- the ypanel- a VideoPanel- Returns:
- the coordinate string
-