Object ManeuverIconHelper
-
- All Implemented Interfaces:
public class ManeuverIconHelperA helping class for creating maneuvers that are draw on the Canvas
-
-
Field Summary
Fields Modifier and Type Field Description public final static Map<Pair<String, String>, ManeuverIconDrawer>MANEUVER_ICON_DRAWER_MAPpublic final static Set<String>SHOULD_FLIP_MODIFIERSpublic final static Set<String>ROUNDABOUT_MANEUVER_TYPESpublic final static Set<String>MANEUVER_TYPES_WITH_NULL_MODIFIERSpublic final static ManeuverIconHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final static BooleanisManeuverIconNeedFlip(String maneuverType, String maneuverModifier, String drivingSide)Returns whether the maneuver's icon should be flipped final static FloatadjustRoundaboutAngle(Float roundaboutAngle)Provides the roundabout's angle according to angle limits final static IntegerprovideGenericRoundabout(String drivingSide)Provide a generic roundabout resource.
-
-
-
Method Detail
-
isManeuverIconNeedFlip
final static Boolean isManeuverIconNeedFlip(String maneuverType, String maneuverModifier, String drivingSide)
Returns whether the maneuver's icon should be flipped
-
adjustRoundaboutAngle
final static Float adjustRoundaboutAngle(Float roundaboutAngle)
Provides the roundabout's angle according to angle limits
-
provideGenericRoundabout
@DrawableRes() final static Integer provideGenericRoundabout(String drivingSide)
Provide a generic roundabout resource.
- Parameters:
drivingSide- can be ManeuverModifier.RIGHT or ManeuverModifier.LEFT
-
-