public class CartesianCoordinateStringBuilder extends CoordinateStringBuilder
| Modifier and Type | Field and Description |
|---|---|
protected java.text.DecimalFormat |
decimalFormat |
protected java.text.DecimalFormat |
scientificFormat |
protected java.lang.String |
xLabel |
protected java.lang.String |
yLabel |
| Constructor and Description |
|---|
CartesianCoordinateStringBuilder() |
CartesianCoordinateStringBuilder(java.lang.String xLabel,
java.lang.String yLabel) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCoordinateString(DrawingPanel panel,
java.awt.event.MouseEvent e)
Converts a the pixel coordinates in a mouse event into world coordinates and
return these coordinates in a string.
|
void |
setCoordinateLabels(java.lang.String xLabel,
java.lang.String yLabel) |
createCartesian, createPolar, createPolarprotected java.text.DecimalFormat scientificFormat
protected java.text.DecimalFormat decimalFormat
protected java.lang.String xLabel
protected java.lang.String yLabel
public CartesianCoordinateStringBuilder()
public CartesianCoordinateStringBuilder(java.lang.String xLabel,
java.lang.String yLabel)
public void setCoordinateLabels(java.lang.String xLabel,
java.lang.String yLabel)
setCoordinateLabels in class CoordinateStringBuilderpublic java.lang.String getCoordinateString(DrawingPanel panel, java.awt.event.MouseEvent e)
getCoordinateString in class CoordinateStringBuildere - the mouse event