Class DirectionsOptions
java.lang.Object
com.arubanetworks.meridian.maps.directions.DirectionsOptions
- All Implemented Interfaces:
Serializable
A serializable options object for use with
MapView
and MapFragment
.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Background color used for directions callout.boolean
Iftrue
, the directions text is inverted so that instructions is above distance.int
Color for directions instruction text and arrows.int
Background color used for directions slide.int
Background color used for route end button.int
Text color used for route end button.int
Background color used for re-orientation banner.int
Background color used for route overview button.int
Text color for route overview button. -
Constructor Summary
ConstructorsConstructorDescriptionDirectionsOptions
(DirectionsOptions fromOptions) Initializes this DirectionsOptions instance by copying the values of the given DirectionsOptions instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromAttributes
(android.content.Context context, android.util.AttributeSet attrs) For use with the creation of MapViews from XML, simply pass the attributes and the DirectionsOption will set itself up appropriately.static DirectionsOptions
A static factory method for getting a default options object.static DirectionsOptions
getFromAttributes
(android.content.Context context, android.util.AttributeSet attrs) A static factory method for getting a default options object with the provided attributes.void
set
(DirectionsOptions options) Sets this DirectionsOptions values to that of another DirectionsOptions.
-
Field Details
-
DIRECTIONS_CALLOUT_COLOR
@ColorInt public int DIRECTIONS_CALLOUT_COLORBackground color used for directions callout. -
DIRECTIONS_SLIDE_COLOR
@ColorInt public int DIRECTIONS_SLIDE_COLORBackground color used for directions slide. -
DIRECTIONS_INSTRUCTIONS_TEXT_COLOR
@ColorInt public int DIRECTIONS_INSTRUCTIONS_TEXT_COLORColor for directions instruction text and arrows.Make sure to test dark theme with any values set here because they don’t always work.
-
ROUTE_OVERVIEW_BUTTON_COLOR
@ColorInt public int ROUTE_OVERVIEW_BUTTON_COLORBackground color used for route overview button. -
ROUTE_OVERVIEW_BUTTON_TEXT_COLOR
@ColorInt public int ROUTE_OVERVIEW_BUTTON_TEXT_COLORText color for route overview button. -
END_ROUTE_BUTTON_COLOR
@ColorInt public int END_ROUTE_BUTTON_COLORBackground color used for route end button. -
END_ROUTE_BUTTON_TEXT_COLOR
@ColorInt public int END_ROUTE_BUTTON_TEXT_COLORText color used for route end button. -
REORIENTATION_BANNER_COLOR
@ColorInt public int REORIENTATION_BANNER_COLORBackground color used for re-orientation banner. -
DIRECTIONS_INSTRUCTIONS_ON_TOP
public boolean DIRECTIONS_INSTRUCTIONS_ON_TOPIftrue
, the directions text is inverted so that instructions is above distance.By default directions text has distance on top and instructions on the bottom.
-
-
Constructor Details
-
DirectionsOptions
Initializes this DirectionsOptions instance by copying the values of the given DirectionsOptions instance.- Parameters:
fromOptions
- The options to copy.
-
-
Method Details
-
getDefaultOptions
A static factory method for getting a default options object. -
getFromAttributes
public static DirectionsOptions getFromAttributes(android.content.Context context, android.util.AttributeSet attrs) A static factory method for getting a default options object with the provided attributes. -
set
Sets this DirectionsOptions values to that of another DirectionsOptions. -
fromAttributes
public void fromAttributes(android.content.Context context, android.util.AttributeSet attrs) For use with the creation of MapViews from XML, simply pass the attributes and the DirectionsOption will set itself up appropriately.
-