public class PolarCoordinateStringBuilder extends CoordinateStringBuilder
Modifier and Type | Field and Description |
---|---|
protected double |
cos |
protected java.text.DecimalFormat |
decimalFormat |
protected java.lang.String |
phiLabel |
protected java.lang.String |
rLabel |
protected java.text.DecimalFormat |
scientificFormat |
protected double |
sin |
xLabel, yLabel
Constructor and Description |
---|
PolarCoordinateStringBuilder() |
PolarCoordinateStringBuilder(java.lang.String rLabel,
java.lang.String phiLabel) |
PolarCoordinateStringBuilder(java.lang.String rLabel,
java.lang.String phiLabel,
double phiZero) |
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 rLabel,
java.lang.String phiLabel) |
createCartesian, createPolar, createPolar
protected java.text.DecimalFormat scientificFormat
protected java.text.DecimalFormat decimalFormat
protected java.lang.String rLabel
protected java.lang.String phiLabel
protected double sin
protected double cos
public PolarCoordinateStringBuilder()
public PolarCoordinateStringBuilder(java.lang.String rLabel, java.lang.String phiLabel, double phiZero)
public PolarCoordinateStringBuilder(java.lang.String rLabel, java.lang.String phiLabel)
public void setCoordinateLabels(java.lang.String rLabel, java.lang.String phiLabel)
setCoordinateLabels
in class CoordinateStringBuilder
public java.lang.String getCoordinateString(DrawingPanel panel, java.awt.event.MouseEvent e)
getCoordinateString
in class CoordinateStringBuilder
e
- the mouse event