QualifiedCoordinatespublic class QualifiedCoordinates extends Coordinates This class is defined by the JSR-179 specification
Location API for J2ME for J2ME™. |
Fields Summary |
---|
private float | horizontalAccuracyHorizontal accuracy. | private float | verticalAccuracyVertical accuracy. |
Constructors Summary |
---|
public QualifiedCoordinates(double latitude, double longitude, float altitude, float horizontalAccuracy, float verticalAccuracy)
super(latitude, longitude, altitude);
setHorizontalAccuracy(horizontalAccuracy);
setVerticalAccuracy(verticalAccuracy);
|
Methods Summary |
---|
public float | getHorizontalAccuracy()
return horizontalAccuracy;
| public float | getVerticalAccuracy()
return verticalAccuracy;
| public void | setHorizontalAccuracy(float horizontalAccuracy)
if (horizontalAccuracy < 0) {
throw new
IllegalArgumentException("Horizontal accuracy has to be "
+ "larger than 0, it was set to: "
+ horizontalAccuracy);
}
this.horizontalAccuracy = horizontalAccuracy;
| public void | setVerticalAccuracy(float verticalAccuracy)
if (verticalAccuracy < 0) {
throw new IllegalArgumentException(
"Vertical accuracy has to be larger than 0, it was set to: "
+ verticalAccuracy);
}
this.verticalAccuracy = verticalAccuracy;
|
|