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
(Context context, 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
(Context context, 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
Background color used for directions callout. -
DIRECTIONS_SLIDE_COLOR
Background color used for directions slide. -
DIRECTIONS_INSTRUCTIONS_TEXT_COLOR
Color 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
Background color used for route overview button. -
ROUTE_OVERVIEW_BUTTON_TEXT_COLOR
Text color for route overview button. -
END_ROUTE_BUTTON_COLOR
Background color used for route end button. -
END_ROUTE_BUTTON_TEXT_COLOR
Text color used for route end button. -
REORIENTATION_BANNER_COLOR
Background 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
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
For use with the creation of MapViews from XML, simply pass the attributes and the DirectionsOption will set itself up appropriately.
-