RhombMarker Constructor

Syntax

PP.Ui.RhombMarker (setting);

Parameters

settings. JSON object that contains values of component properties.

Description

The RhombMarker constructor creates an instance of the RhombMarker class.

Example

To execute the example, the page must contain the Speedometer component named speed1 (see Example of Creating a Fuel Gauge Unit). Add a button to the page, clicking which adds a diamond marker to the speedometer center:

<input TYPE="button" VALUE=" OK " ONCLICK="RMarks()">
<script>
function RMarks()
{
	var rmark = new PP.Ui.RhombMarker(
	{
		Border:	{PPType: PP.SolidColorBrush, Color: "#aa0000"},
		Size:15,
		Offset: -5,
		BorderWidth: 5
	});
	speed1.setCenter(rmark);
}
</script>

After clicking the OK button the marker shown in speedometer center changes as follows:

See also:

RhombMarker