public static final class DangerousSlowdownsManager.DangerousSlowdownsBoxOptions extends Object
Constructor and Description |
---|
DangerousSlowdownsBoxOptions(GeoPoint corner1,
GeoPoint corner2)
Initializes a new instance of the
DangerousSlowdownsManager.DangerousSlowdownsBoxOptions
class with the two corners of the rectangular region. |
DangerousSlowdownsBoxOptions(GeoPoint corner1,
GeoPoint corner2,
UserPreferences.Unit units)
Initializes a new instance of the
DangerousSlowdownsManager.DangerousSlowdownsBoxOptions
class with the two corners of the rectangular region and response units. |
Modifier and Type | Method and Description |
---|---|
DangerousSlowdownsManager.DangerousSlowdownsBoxOptions |
setCorner1(GeoPoint value)
Sets the first corner of the region.
|
DangerousSlowdownsManager.DangerousSlowdownsBoxOptions |
setCorner2(GeoPoint value)
Sets the second corner of the region, which is diagonally opposite the first corner.
|
T |
setSeverity(int severity)
Sets the requested severity.
|
T |
setUnits(UserPreferences.Unit units)
Sets the preferred units.
|
String |
toString() |
public DangerousSlowdownsBoxOptions(GeoPoint corner1, GeoPoint corner2)
DangerousSlowdownsManager.DangerousSlowdownsBoxOptions
class with the two corners of the rectangular region.
Default units are used from UserPreferences.getSettingUnits()
.
To specify units explicitly, use constructor that accepts UserPreferences.Unit
.corner1
- The first corner of the region in which to get data.corner2
- The second corner of the region in which to get data, which
diagonally opposed corner1.DangerousSlowdownsManager.DangerousSlowdownsManagerException
- Thrown when corner1
or corner2
is invalid.public DangerousSlowdownsBoxOptions(GeoPoint corner1, GeoPoint corner2, UserPreferences.Unit units)
DangerousSlowdownsManager.DangerousSlowdownsBoxOptions
class with the two corners of the rectangular region and response units.corner1
- The first corner of the region in which to get data.corner2
- The second corner of the region in which to get data, which
diagonally opposed corner1.units
- Response units.DangerousSlowdownsManager.DangerousSlowdownsManagerException
- when corner1
or corner2
is invalid.public DangerousSlowdownsManager.DangerousSlowdownsBoxOptions setCorner1(GeoPoint value)
value
- The first corner of the region in which to get data.DangerousSlowdownsManager.DangerousSlowdownsBoxOptions
class.DangerousSlowdownsManager.DangerousSlowdownsManagerException
- when value is not a valid corner position.public DangerousSlowdownsManager.DangerousSlowdownsBoxOptions setCorner2(GeoPoint value)
value
- The second corner of the region in which to get data.DangerousSlowdownsManager.DangerousSlowdownsBoxOptions
class.DangerousSlowdownsManager.DangerousSlowdownsManagerException
- when value is not a valid corner position.public T setUnits(UserPreferences.Unit units)
units
- The preferred units.DangerousSlowdownsManager.DangerousSlowdownsRadiusOptions
class.DangerousSlowdownsManager.DangerousSlowdownsManagerException
- when units is null.public T setSeverity(int severity)
severity
- Requested severities.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.