Specifications
Athena Widget Set libXaw 1.0.7
width The height and width of this widget in pixels.
highlight Apixel value which indexesthe widget’scolormap to derive the color
that will be used to drawthe scale lines on the graph.
insensitiveBorder This pixmap will be tiled into the widget’sborder if the widget becomes
insensitive.
international This is a boolean flag, only settable at widget creation time. While not
utilized in this widget, it can and should be checked by anysubclasses
that have behavior that should vary with locale.
jumpScroll When the graph reaches the right edge of the windowitmust be scrolled
to the left. This resource specifies the number of pixels it will jump.
Smooth scrolling can be achievedbysetting this resource to 1.
mappedWhenManaged If this resource is True,then the widget’swindowwill automatically be
mapped by the Toolkit when it is realized and managed.
minScale The minimum scale for the graph. The number of divisions on the graph
will always be greater than or equal to this value.
pointerColor A pixel value which indexesthe widget’scolormap to derive the fore-
ground color of the pointer symbol specified by the cursorName
resource.
pointerColorBackground A pixel value which indexesthe widget’scolormap to derive the
background color of the pointer symbol specified by the cursor-
Name resource.
screen The screen on which this widget is displayed. This is not a settable
resource.
sensitive Whether or not the toolkit should pass user events to this widget. The
widget will not get input events if either ancestorSensitive or sensitive is
False.
translations The ev e nt bindings associated with this widget.
update The number of seconds between graph updates. Each update is repre-
sented on the graph as a 1 pixel wide line. Every update seconds the
getValue procedure will be used to get a newgraph point, and this point
will be added to the right end of the StripChart.
x
yThe location of the upper left outside corner of this widget in its parent.
3.9.2. Getting the StripChart Value
The StripChart widget will call the application routine passed to it as the getValue callback func-
tion every update seconds to obtain another point for the StripChart graph.
The calling interface for the getValue callback is:
void (*getValueProc)(w, client_data, value)
Widget w;
XtPointer client_data;
XtPointer value;/*double * */
w Specifies the StripChart widget.
client_data Specifies the client data.
value Returns a pointer to a double. The application should set the address pointed to
by this argument to a double containing the value to be graphed on the
StripChart.
50