DataHubGauge

DataHubGauge — a gauge for displaying DataHub point values.

Description

This applet consists of a needle that moves in an arc against a fixed background to indicate values of a DataHub point.

Base Class

DataHubListener

Parameters

ParameterTypeDefaultDescription
needlecolorColorREDThe color of the needle.
pincolorColorREDThe color of the pin, which is the dot at the pivot point of the needle.
needlelengthint50The length of the needle, in pixels.
basexint0The x coordinates of the pivot point of the needle.
baseyint0The y coordinate of the pivot point of the needle.
pinradiusint5The size of the pin.
startvaluedouble0The point value associated with the start of the arc through which the needle travels.
endvaluedouble100The point value associated with the end of the arc through which the needle travels.
rangedegreesdouble180The number of degrees of the arc through which the needle will travel.
startdegreesdouble0The beginning point of the arc through which the needle will travel. Degrees start at a 3 o'clock position and increase in an anticlockwise direction. So a start point of zero and a range of 180 will give a half circle arc on the horizontal.
gaugeimagestringnullThe filename for a background image for the gauge.
editablebooleanfalseAllows the viewer to move the needle and change the value.
label1 to label10stringnullYou can add up to 10 text labels which will be displayed in front of the background image.
labelx1 to labelx10int0The x coordinates for the center of each text label.
labely1 to labely10int0The y coordinates for the center of each text label.
labelfont1 to labelfont10FontnullThe font for each text label.
labelcolor1 to labelcolor10ColorREDThe color for each text label.
valuexint0The x coordinates of a label that shows the value associated with the data point.
valueyint0The y coordinates of a label that shows the value associated with the data point.
valuefontFontnullThe font for the value label.
valueformatstringnullThe format of the value label.
valuecolorColorREDThe color of the value label.
showvaluebooleanfalseDetermines whether the value is shown or hidden.
stepdouble0The minimum value change necessary to reposition the needle.