XYCoordinateStringBuilderpublic class VidCartesianCoordinateStringBuilder extends CartesianCoordinateStringBuilder implements XYCoordinateStringBuilder
decimalFormat, scientificFormat, xLabel, yLabel| Modifier | Constructor | Description |
|---|---|---|
protected |
VidCartesianCoordinateStringBuilder() |
|
protected |
VidCartesianCoordinateStringBuilder(java.lang.String xLabel,
java.lang.String yLabel) |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
java.lang.String |
getCoordinateString(VideoPanel panel,
double x,
double y) |
Returns the specified xy coordinates in a string.
|
setCoordinateLabelscreateCartesian, createPolar, createPolarprotected VidCartesianCoordinateStringBuilder()
protected VidCartesianCoordinateStringBuilder(java.lang.String xLabel,
java.lang.String yLabel)
public java.lang.String getCoordinateString(DrawingPanel panel, java.awt.event.MouseEvent e)
getCoordinateString in class CartesianCoordinateStringBuilderpanel - the drawing panele - the mouse eventpublic java.lang.String getCoordinateString(VideoPanel panel, double x, double y)
getCoordinateString in interface XYCoordinateStringBuilderx - the xy - the ypanel - a VideoPanel