FileDocCategorySizeDatePackage
QualifiedCoordinates.javaAPI DocphoneME MR2 API (J2ME)2679Wed May 02 18:00:40 BST 2007javax.microedition.location

QualifiedCoordinates

public class QualifiedCoordinates extends Coordinates
This class is defined by the JSR-179 specification Location API for J2ME for J2ME™.

Fields Summary
private float
horizontalAccuracy
Horizontal accuracy.
private float
verticalAccuracy
Vertical 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 floatgetHorizontalAccuracy()

        return horizontalAccuracy;
    
public floatgetVerticalAccuracy()

        return verticalAccuracy;
    
public voidsetHorizontalAccuracy(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 voidsetVerticalAccuracy(float verticalAccuracy)

        if (verticalAccuracy < 0) {
            throw new IllegalArgumentException(
		"Vertical accuracy has to be larger than 0, it was set to: "
		+ verticalAccuracy);
        }
        this.verticalAccuracy = verticalAccuracy;