public class VidCartesianCoordinateStringBuilder extends CartesianCoordinateStringBuilder
decimalFormat, scientificFormat, xLabel, yLabel
Constructor and Description |
---|
VidCartesianCoordinateStringBuilder() |
VidCartesianCoordinateStringBuilder(java.lang.String xLabel,
java.lang.String yLabel) |
Modifier and Type | Method and Description |
---|---|
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.
|
setCoordinateLabels
createCartesian, createPolar, createPolar
public VidCartesianCoordinateStringBuilder()
public VidCartesianCoordinateStringBuilder(java.lang.String xLabel, java.lang.String yLabel)
public java.lang.String getCoordinateString(DrawingPanel panel, java.awt.event.MouseEvent e)
getCoordinateString
in class CartesianCoordinateStringBuilder
panel
- the drawing panele
- the mouse eventpublic java.lang.String getCoordinateString(double x, double y)
x
- the xy
- the y