ComboPlot Object Class


Overview

A Chart Object creates a Plot object of type ComboPlot when the chart type resource is set to XintCHART_TYPE_COMBO_PLOT. This is a special plot type that can create and manage other plot types to build composite plots.

Inherited Resources and Behavior

The ComboPlot object class inherits behavior and resources from the Xt Object, Graphic and Group object classes.

The ComboPlot object class does not define any new resources.


Graphics Class Inherited Resources

ComboPlot inherits behavior and resources from the Graphic class. The set of resources that can be accessed along with the proper defaults is listed below.

NameTypeDefaultAccess
XmNcolorPixelforegroundCSG
XmNdashListchar *NULLCSG
XmNfillColorPixel"gray"CSG
XmNfillFilenamechar *NULLCSG
XmNfillPixmapPixmapNULLCSG
XmNfillStyleintXintFILL_SOLIDCSG
XmNfontchar *"*Helvetica*-120-*"CSG
XmNhighlightModeintXintHIGHLIGHT_HANDLECSG
XmNlineStyleintXintLINE_NONECSG
XmNlineThicknessint1CSG
XmNmoveBooleanTrueCSG
XmNsensitiveBooleanTrueCSG
XmNshapeBooleanTrueCSG
XmNstippleColorPixelforegroundCSG


Functions

The following functions are defined for creating new plot types and retrieving plot components.

Function NameDescription
XintComboPlotCreateNewPlotCreates a new plot type inside the combo plot.
XintComboPlotGetComponentRetrieves a component from a combo plot.


XintComboPlotCreateNewPlot

This function creates a new plot object inside the ComboPlot object. You can use function XintChartAssociateData to attach data to this new plot object. The function returns the ID of the plot object that was created.

     Object XintComboPlotCreateNewPlot (...)

Objectcombo_plotID of the ComboPlot object.
intplot_typeType of plot to create.

The argument plot_type can be one of the following constants:

ConstantDescription
XintPLOT_TYPE_BARTo create a BarLine plot.
XintPLOT_TYPE_PIETo create a Pie plot.
XintPLOT_TYPE_SURFACE_3DTo create a Surface3D plot.
XintPLOT_TYPE_HIGH_LOWTo create a HighLow plot.
XintPLOT_TYPE_HISTOGRAMTo create a Histogram plot.
XintPLOT_TYPE_AREATo create a XYPlot configured as an area plot.
XintPLOT_TYPE_LINETo create a XYPlot configured as a line plot.
XintPLOT_TYPE_SCATTEREDTo create a XYPlot configured as a scattered plot.
XintPLOT_TYPE_BAR_3DTo create a Bar3D plot.


XintComboPlotGetComponent

This function returns the object ID of a specified component of the ComboPlot. This function is similar to XintChartGetComponent, except that it provides one more argument to take into account the fact that multiple plots can be managed by a ComboPlot.

     Object XintComboPlotGetComponent (...)

Objectcombo_plotID of the ComboPlot object.
intcodeCode for the component to return.
intindexThe index of the plot of interest (starts at 0).

The argument code can be one of the following constants:

ConstantDescription
XintCHART_COMPONENT_PLOTThe code for the plot object.
XintCHART_COMPONENT_VERTICAL_AXISThe code for the vertical axis object.
XintCHART_COMPONENT_HORIZONTAL_AXISThe code for the horizontal axis object.

The function returns NULL if argument index is out of range.


Macros

The XintIsComboPlot macro returns True if the specified object is a ComboPlot object. It returns False otherwise.

     Boolean XintIsComboPlot (Object object)