Builder
Composes and builds a ScaleBarSettings object.
This is a concrete implementation of the builder design pattern.
Constructors
Functions
Returns a ScaleBarSettings reference to the object being constructed by the builder.
Setter for borderWidth: defines width of the border for the scale bar. This property is specified in pixels.
Setter for enabled: whether the scale is visible on the map.
Setter for height: defines height of the scale bar. This property is specified in pixels.
Setter for isMetricUnits: whether the scale bar is using metric unit. True if the scale bar is using metric system, false if the scale bar is using imperial units.
Setter for marginBottom: defines the margin to the bottom that the scale bar honors. This property is specified in pixels.
Setter for marginLeft: defines the margin to the left that the scale bar honors. This property is specified in pixels.
Setter for marginRight: defines the margin to the right that the scale bar honors. This property is specified in pixels.
Setter for marginTop: defines the margin to the top that the scale bar honors. This property is specified in pixels.
Setter for position: defines where the scale bar is positioned on the map.
Setter for primaryColor: defines primary color of the scale bar.
Setter for ratio: configures ratio of scale bar max width compared with MapView width, default is 0.5.
Setter for refreshInterval: configures minimum refresh interval, in millisecond, default is
Setter for secondaryColor: defines secondary color of the scale bar.
Setter for showTextBorder: configures whether to show the text border or not, default is true.
Setter for textBarMargin: defines margin of the text bar of the scale bar. This property is specified in pixels.
Setter for textBorderWidth: defines text border width of the scale bar. This property is specified in pixels.
Setter for textColor: defines text color of the scale bar.
Setter for textSize: defines text size of the scale bar. This property is specified in pixels.
Setter for useContinuousRendering: if set to True scale bar will be triggering onDraw depending on ScaleBarSettings.refreshInterval even if actual data did not change. If set to False scale bar will redraw only on demand. Defaults to False and should not be changed explicitly in most cases. Could be set to True to produce correct GPU frame metrics when running gfxinfo command.
Properties
If set to True scale bar will be triggering onDraw depending on ScaleBarSettings.refreshInterval even if actual data did not change. If set to False scale bar will redraw only on demand. Defaults to False and should not be changed explicitly in most cases. Could be set to True to produce correct GPU frame metrics when running gfxinfo command.