rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Charts Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvChartGraphic Class Reference

Base class for graphic objects displaying charts. More...

#include <ilviews/charts/graphic.h>

Inheritance diagram for IlvChartGraphic:
IlvSimpleGraphic IlvGraphic IlvCartesianChart IlvPolarChart IlvPieChartGraphic IlvRadarChart

List of all members.

Public Types

enum  FillMode { FillNone, FillDataArea, FillGraphArea, FillDataAndGraphArea }
 

Available chart fill modes.

More...
enum  ScrollMode { IlvScrollModeStop, IlvScrollModeShift, IlvScrollModeCycle }
 

Available scrolling modes.

More...

Public Member Functions

 IlvChartGraphic (IlvDisplay *display, const IlvRect &bbox, IlvPalette *palette=0)
 Constructor.
virtual ~IlvChartGraphic ()
 Destructor.
IlvAbstractChartCursoraddAbscissaCursor (IlDouble value, IlvPalette *palette=0, IlBoolean reDraw=IlTrue)
 Adds a cursor on the abscissa axis.
IlvAbstractGridDisplayeraddAbscissaGrid (IlvPalette *majorPalette=0, IlvPalette *minorPalette=0, IlBoolean reDraw=IlTrue)
 Adds a grid on the abscissa axis.
virtual IlBoolean addDisplayer (IlvAbstractChartDisplayer *displayer, IlUInt count, IlvChartDataSet *const *dataSets, IlvCoordinateInfo *ordinateInfo=0, IlUInt position=IlvLastPositionIndex)
 Adds a displayer connected to several data sets.
IlBoolean addDisplayer (IlvAbstractChartDisplayer *displayer, IlvChartDataSet *dataSet=0, IlvCoordinateInfo *ordinateInfo=0, IlUInt position=IlvLastPositionIndex)
 Adds a displayer connected to one data set.
IlvAbstractChartCursoraddOrdinateCursor (IlDouble value, IlvPalette *palette=0, IlUInt index=0, IlBoolean reDraw=IlTrue)
 Adds a cursor on an ordinate axis.
IlvAbstractGridDisplayeraddOrdinateGrid (IlvPalette *majorPalette=0, IlvPalette *minorPalette=0, IlUInt index=0, IlBoolean reDraw=IlTrue)
 Adds a grid to an ordinate axis.
void addOrdinateScale (IlvAbstractScaleDisplayer *scale)
 Adds an ordinate scale.
virtual void dataPointsAdded (const IlvChartDataSet *ds, IlUInt iMin, IlUInt iMax, IlBoolean reDraw=IlTrue)
 Performs the automatic update when new data are added.
IlBoolean dataPointsToDisplay (IlUInt count, const IlvDoublePoint *dataPoints, IlvPoint *points, const IlvCoordinateInfo *ordinateInfo, IlBoolean shiftOfCycleLength, const IlvTransformer *t=0) const
 Converts data points to screen coordinates.
IlBoolean displayToDataPoints (IlUInt count, const IlvPoint *points, IlvDoublePoint *dataPoints, const IlvCoordinateInfo *ordinateInfo, IlBoolean shiftOfCycleLength, const IlvTransformer *t=0) const
 Converts screen coordinates to data points.
void enableFastScroll (IlBoolean enable)
 Enables a very efficient refresh in Shift scroll mode.
IlvAbstractGridDisplayergetAbscissaGrid () const
 Returns the abscissa grid.
IlvCoordinateInfogetAbscissaInfo () const
 Returns the coordinate information object of the abscissa.
IlvSingleScaleDisplayergetAbscissaScale () const
 Returns the abscissa scale.
const IlvAxisCrossinggetAxisCrossing (IlInt index) const
 Gets crossing between coordinate axes.
IlvAbstractChartCursorgetCycleCursor () const
 Returns the cycle cursor.
IlvAbstractChartDatagetData () const
 Returns the chart data object that manages the data sets displayed by the current object.
void getDataDisplayArea (const IlvCoordinateInfo *coordInfo, IlvRect &dataDisplayArea, const IlvTransformer *t=0) const
 Returns the rectangle where the data values of a coordinate are projected.
void getDataDisplayArea (IlvRect &dataDisplayArea, const IlvTransformer *t=0) const
 Returns the data display area of the chart.
IlvChartDataSetgetDataSet (IlUInt dataSetIndex) const
 Returns a given data set.
IlUInt getDataSetIndex (const IlvChartDataSet *dataSet) const
 Returns the index of a given data set.
IlvChartDataSet *const * getDataSets (IlUInt &dataSetCount) const
 Returns the data sets.
IlUInt getDataSetsCount () const
 Returns the number of data sets.
IlvAbstractChartDisplayergetDisplayer (IlUInt displayerIndex) const
 Gets one specific displayer by index.
IlvAbstractChartDisplayergetDisplayerByName (const char *name) const
 Gets one specific displayer by name.
IlUInt getDisplayerIndex (const IlvAbstractChartDisplayer *displayer) const
 Returns the index of a displayer.
IlUInt getDisplayersCount () const
 Returns the number of displayers.
IlUInt getDisplayItem (IlvAbstractChartDisplayer *&displayer, IlvChartDataSet *&dataSet, const IlvPoint &viewPoint, const IlvTransformer *t) const
 Returns the data point whose representation on the chart includes a given screen point of the chart graphic.
IlBoolean getDrawingArea (IlvRect &drawingArea, const IlvTransformer *t=0) const
 Returns the drawing area of the chart.
void getGraphArea (IlvRect &graphArea, const IlvTransformer *t=0) const
 Returns the graph area of the chart.
IlvChartLayoutgetLayout () const
 Returns the chart layout object.
IlvChartLegendgetLegend () const
 Returns the legend.
IlUInt getNearestPoint (IlvAbstractChartDisplayer *&displayer, IlvChartDataSet *&dataSet, const IlvPoint &viewPoint, IlvDim distance, IlvPoint &point, const IlvTransformer *t) const
 Returns the nearest data point from a screen point of the chart graphic.
IlvAbstractGridDisplayergetOrdinateGrid (IlUInt index=0) const
 Gets an ordinate grid by index.
IlUInt getOrdinateGridIndex (const IlvAbstractGridDisplayer *grid) const
 Returns the index of an ordinate grid.
IlvCoordinateInfogetOrdinateInfo (IlUInt index=0) const
 Returns the coordinate information object of an ordinate axis.
IlUInt getOrdinateInfoCount () const
 Returns the number of ordinate coordinate information objects.
IlUInt getOrdinateInfoIndex (const IlvCoordinateInfo *info) const
 Returns the index of an ordinate coordinate information object.
IlvAbstractScaleDisplayergetOrdinateScale (IlUInt index=0) const
 Gets an ordinate scale by index.
IlUInt getOrdinateScaleIndex (const IlvAbstractScaleDisplayer *scale) const
 Returns the index of an ordinate scale.
IlUInt getOrdinateScalesCount () const
 Returns the number of ordinate scales.
IlvSingleScaleDisplayergetOrdinateSingleScale (IlUInt index=0) const
 Gets a single ordinate scale by index.
IlvPalettegetProjectedPointsPalette () const
 Returns the palette used to display the out-of-bounds data points that are projected.
IlvAbstractProjectorgetProjector () const
 Returns the projector.
void getProjectorArea (const IlvAbstractScaleDisplayer *scale, IlvProjectorArea &projArea, const IlvTransformer *t=0) const
 Returns the description of the projecting area associated with a scale.
void getProjectorArea (const IlvCoordinateInfo *coordInfo, IlvProjectorArea &projArea, const IlvTransformer *t) const
 Returns the description of the projecting area associated with a coordinate.
IlvSingleScaleDisplayergetScaleForCursor (const IlvAbstractChartCursor *cursor) const
 Returns the scale for a cursor.
IlvAbstractChartCursorgetScrollCursor () const
 Returns the scrolling cursor.
ScrollMode getScrollMode () const
 Returns the scrolling mode.
IlDouble getScrollRatio () const
 Returns the scrolling ratio.
virtual void insertOrdinateScale (IlvAbstractScaleDisplayer *scale, IlUInt index=0)
 Inserts an ordinate scale.
IlBoolean isFastScrollEnabled () const
 Queries for the Fast Scroll mode.
IlBoolean isReDrawnWhenNotified () const
 Indicates whether an automatic redraw is performed.
void moveCursor (IlvAbstractChartCursor *cursor, IlDouble newValue, IlBoolean reDraw=IlTrue)
 Moves a cursor.
virtual void moveDisplayer (IlUInt displayerIndex, IlUInt newIndex)
 Changes the stacking order of a displayer.
IlBoolean projectHorizontally () const
 Indicates whether there is a horizontal projection of out-of-bounds data points.
IlBoolean projectVertically () const
 Indicates whether there is a vertical projection of out-of-bounds data points.
void reDrawWhenNotified (IlBoolean reDraw)
 Specifies whether an automatic redraw is performed.
IlvAbstractChartCursorremoveAbscissaCursor (IlvAbstractChartCursor *cursor, IlBoolean reDraw=IlTrue)
 Removes a cursor from the abscissa axis.
void removeAbscissaGrid (IlBoolean reDraw=IlTrue)
 Removes the grid from the abscissa axis.
virtual void removeAbscissaScale ()
 Removes the abscissa scale.
virtual IlBoolean removeDisplayer (IlUInt displayerIndex)
 Removes a displayer.
virtual void removeDisplayers ()
 Removes all displayers.
IlvAbstractChartCursorremoveOrdinateCursor (IlvAbstractChartCursor *cursor, IlUInt index=0, IlBoolean reDraw=IlTrue)
 Removes a cursor from an ordinate axis.
void removeOrdinateGrid (IlUInt index=0, IlBoolean reDraw=IlTrue)
 Removes the grid from an ordinate axis.
virtual void removeOrdinateGrids ()
 Removes all the ordinate grids.
virtual void removeOrdinateScale (IlUInt index)
 Removes an ordinate scale.
virtual void removeOrdinateScales ()
 Removes all the ordinate scales.
virtual IlBoolean replaceDisplayer (IlvAbstractChartDisplayer *oldDisplayer, IlvAbstractChartDisplayer *newDisplayer, IlBoolean copyPalettes=IlFalse)
 Replaces one displayer by another.
virtual void setAbscissaGrid (IlvAbstractGridDisplayer *grid)
 Sets the abscissa grid.
virtual void setAbscissaScale (IlvSingleScaleDisplayer *scale)
 Sets the abscissa scale.
void setAxisCrossing (IlInt index, IlDouble val)
 Specifies the crossing between coordinate axes at a fixed value.
void setAxisCrossing (IlInt index, IlvAxisCrossing *)
 Specifies the crossing between coordinate axes.
void setCursorVisible (IlvAbstractChartCursor *cursor, IlBoolean visible)
 Shows or hides a cursor.
virtual void setData (IlvAbstractChartData *data)
 Sets the chart data object that manages the data sets displayed by the current object.
void setDrawOrder (IlvDrawOrder drawOrder)
 Sets the drawing order for all the scales and grids defined.
virtual void setLayout (IlvChartLayout *layout)
 Sets the chart layout object.
void setLegend (IlvChartLegend *legend)
 Sets the legend.
virtual void setOrdinateGrid (IlUInt index, IlvAbstractGridDisplayer *grid)
 Adds or replaces an ordinate grid.
virtual void setOrdinateScale (IlUInt index, IlvAbstractScaleDisplayer *scale)
 Adds or replaces an ordinate scale.
void setProjectedPointsPalette (IlvPalette *palette)
 Sets the palette used to display the out-of-bounds data points that are projected.
void setProjectHorizontally (IlBoolean projectHorizontally)
 Specifies whether there is a horizontal projection of out-of-bounds data points.
virtual IlBoolean setProjector (IlvAbstractProjector *projector)
 Sets the projector.
void setProjectVertically (IlBoolean projectVertically)
 Specifies whether there is a vertical projection of out-of-bounds data points.
void setScrollMode (ScrollMode mode, IlBoolean createCursor=IlFalse)
 Sets the scrolling mode.
void setScrollRatio (IlDouble ratio)
 Sets the scrolling ratio.
void stackScales (IlUInt count, const IlvSingleScaleDisplayer *const *scales, IlDouble offsetRatio)
 Stack several ordinate scales.
virtual void translateCharts (IlDouble deltaAbscissa, IlDouble deltaOrdinate, IlUInt ordinateAxisIndex=0, IlBoolean redraw=IlTrue, IlBoolean clipToAutoRange=IlTrue)
 Translates the graphical representations of data.
virtual void update ()
 Updates the current object.
void updateAndReDraw ()
 Updates and redraws the current object.
IlBoolean zoomCharts (const IlvCoordInterval &abscissaRange, const IlvCoordInterval &ordinateRange, IlUInt ordinateAxisIndex=0, IlBoolean redraw=IlTrue, IlBoolean clipToAutoRange=IlTrue)
 Zooms the graphical representations of data.
virtual IlBoolean zoomCharts (const IlvCoordInterval &ordinateRange, IlUInt ordinateAxisIndex, IlBoolean redraw=IlTrue, IlBoolean clipToAutoRange=IlTrue)
 Zooms the graphical representations of data on an ordinate axis.
virtual IlBoolean zoomCharts (const IlvCoordInterval &abscissaRange, IlBoolean redraw=IlTrue, IlBoolean clipToAutoRange=IlTrue)
 Zooms the graphical representations of data on the abscissa axis.

Friends

class IlvAbscissaAxisElement
class IlvAxisElement

Detailed Description

Base class for graphic objects displaying charts.

Library: ilvcharts

An instance of IlvChartGraphic makes it possible to display a chart. A chart can display a chart data object (an instance of IlvAbstractChartData), that is responsible to handle as many data sets (instances of IlvChartDataSet) that are needed. Each data set can have several graphical representations that are managed by instances of IlvAbstractChartDisplayer.

The way the data is projected to the screen is handled by a projector, which is an object of the IlvAbstractProjector type.

The chart can have one scale to represent the abscissa coordinate, and several scales (instance of IlvAbstractScaleDisplayer) for different ordinate coordinate systems. Specific information is stored for each coordinate that is represented by a different scale by the means of IlvCoordinateInfo objects.

The location and sizes of the different areas maintained by a chart graphic (where the actual data is represented, where the scales should be displayed, and so on) is maintained by a chart layout object, which is an instance of the class IlvChartLayout.

A chart graphic is able to automatically manage the scrolling of the charts when new data come in.

See also:
IlvAbstractChartData, IlvChartDataSet, IlvAbstractChartDisplayer, IlvAbstractProjector, IlvAbstractScaleDisplayer, IlvCoordinateInfo, IlvChartLayout.

Member Enumeration Documentation

Available chart fill modes.

This enumeration type indicates which areas are filled within the bounding box of the chart.

Enumerator:
FillNone 

No areas within the chart are filled.

FillDataArea 

The data display area is filled.

(See the IlvChartLayout class for more details about the different areas defined within the bounding box of a chart).

FillGraphArea 

The graph area is filled.

(See the IlvChartLayout class for more details about the different areas defined within the bounding box of a chart).

FillDataAndGraphArea 

The data display area and the graph area are filled.

(See the IlvChartLayout class for more details about the different areas defined within the bounding box of a chart).

Available scrolling modes.

This enumeration type indicates what kind of scrolling is wanted when new data come to the data sets.

Enumerator:
IlvScrollModeStop 

Enumeration value indicating that a stop scroll mode is applied.

The chart does not scroll. When new data come in, the chart is refreshed only if those data points have a visual impact.

IlvScrollModeShift 

Enumeration value indicating that a shift scroll mode is applied.

The chart is updated by simply adding the new data point. If that data point is outside the visible area, then the chart scrolls along the abscissa axis, in the direction of the decreasing values, and is updated afterwards. The chart scrolls by a number of scroll ratios that are necessary to be able to draw the data point in the visible area.

IlvScrollModeCycle 

Enumeration value indicating that a cyclic scroll mode is applied.

If the chart needs to scroll (see the description of when this occurs above), the new data point is displayed in the area where the minimum values are displayed, thus erasing these values as the scrolling goes on. The chart scrolls by a number of scroll ratios that are necessary to be able to draw the data point in the visible area.


Constructor & Destructor Documentation

IlvChartGraphic::IlvChartGraphic ( IlvDisplay display,
const IlvRect bbox,
IlvPalette palette = 0 
)

Constructor.

Initializes a new IlvChartGraphic object. In its initial state, this new object is connected to an empty instance of IlvMemoryChartData. It has a default layout (instance of IlvChartLayout), no legend, no scales and no displayers.

Parameters:
display The display connection that will handle the drawing of the current object.
bbox The bounding box of the current object.
palette The palette used by the current object.
virtual IlvChartGraphic::~IlvChartGraphic (  )  [virtual]

Destructor.

The destructor destroys the displayers that display the graphical representations of data. Then it releases the chart data object that is stored in this object (by calling its IlvAbstractChartData::unLock method), then destroys the layout that was used.
Finally, the projector and the scales are destroyed.
Note that the destructor will not destroy the legend, if there was one.


Member Function Documentation

IlvAbstractChartCursor* IlvChartGraphic::addAbscissaCursor ( IlDouble  value,
IlvPalette palette = 0,
IlBoolean  reDraw = IlTrue 
)

Adds a cursor on the abscissa axis.

Cursors that make it possible to focus on precise abscissa values can be added to a chart graphic, using this method.

Parameters:
value The abscissa value where the cursor must be located.
palette The palette that this cursor must use. If this parameter is omitted or set to 0, the palette that this cursor will be using is the one of the abscissa scale.
reDraw If set to IlFalse, the display will not be immediately refreshed.
Returns:
A pointer to the newly created cursor object.
IlvAbstractGridDisplayer* IlvChartGraphic::addAbscissaGrid ( IlvPalette majorPalette = 0,
IlvPalette minorPalette = 0,
IlBoolean  reDraw = IlTrue 
)

Adds a grid on the abscissa axis.

Parameters:
majorPalette The palette that will be used to draw the major lines of the grid. If this parameter is omitted or set to 0, the palette that will be used is the palette of the abscissa scale.
minorPalette The palette that will be used to draw the minor lines of the grid. If this parameter is omitted or set to 0, the palette that will be used is the palette of the abscissa scale.
reDraw If set to IlFalse, the display will not be immediately refreshed.
Returns:
A pointer to the newly created grid object.
virtual IlBoolean IlvChartGraphic::addDisplayer ( IlvAbstractChartDisplayer displayer,
IlUInt  count,
IlvChartDataSet *const *  dataSets,
IlvCoordinateInfo ordinateInfo = 0,
IlUInt  position = IlvLastPositionIndex 
) [virtual]

Adds a displayer connected to several data sets.

A displayer is used to render one or several data sets that are part of the chart data object used by the current chart graphic. A chart graphic can be rendered using multiple displayers.

Parameters:
displayer The displayer to add to this chart graphic.
count The number of data sets that this displayer must render.
dataSets An array of count pointers to the data sets that must be displayed by displayer. Note that all the indicated data sets must belong to the chart data object used by the current chart graphic.
ordinateInfo The coordinate information object associated with the ordinate scale that this displayer must follow. If this parameter is omitted or set to 0, the displayer will be connected to the main (the first) ordinate scale. If this parameter is not 0, then ordinateInfo must be one of the coordinate information objects associated with an ordinate scale of the chart graphic.
position The index of the new displayer. If this parameter is not specified, or set to IlvLastPositionIndex, this displayer becomes the last of that chart graphic. A value of 0 indicates that the displayer becomes the bottom-most displayer (that is, the first to be displayed).
Returns:
A Boolean value that indicates, if IlTrue, that the new displayer was successfully added. If this method returns IlFalse, then there was a problem, and an error message was produced.

Reimplemented in IlvRadarChart.

IlBoolean IlvChartGraphic::addDisplayer ( IlvAbstractChartDisplayer displayer,
IlvChartDataSet dataSet = 0,
IlvCoordinateInfo ordinateInfo = 0,
IlUInt  position = IlvLastPositionIndex 
)

Adds a displayer connected to one data set.

A displayer is used to render one or several data sets that are part of the chart data object used by the current chart graphic. A chart graphic can be rendered using multiple displayers.

Parameters:
displayer The displayer to add to this chart graphic.
dataSet The data set that is displayed by displayer. If this parameter is omitted or set to 0, the displayer will not be associated with any data set. If this parameter is not 0, then dataSet must be one of the data sets stored in the chart data object used by the current chart graphic.
ordinateInfo The coordinate information object associated with the ordinate scale that this displayer must follow. If this parameter is omitted or set to 0, the displayer will be connected to the main (the first) ordinate scale. If this parameter is not 0, then ordinateInfo must be one of the coordinate information objects associated with an ordinate scale of the chart graphic.
position The index of the new displayer. If this parameter is not specified or set to IlvLastPositionIndex, this displayer becomes the last of this chart graphic. A value of 0 indicates that the displayer becomes the bottom-most displayer (that is, the first to be displayed).
Returns:
A Boolean value that indicates, if IlTrue, that the new displayer was successfully added. If this method returns IlFalse, then there has been a problem, and an error message was produced.
IlvAbstractChartCursor* IlvChartGraphic::addOrdinateCursor ( IlDouble  value,
IlvPalette palette = 0,
IlUInt  index = 0,
IlBoolean  reDraw = IlTrue 
)

Adds a cursor on an ordinate axis.

Cursors that make it possible to focus on precise ordinate values can be added on a specific ordinate axis, using this method.

Parameters:
value The ordinate value where the cursor must be located.
index The index of the ordinate axis that is referred to.
palette The palette that this cursor must use. If this parameter is omitted or set to 0, the palette that this cursor will be using is the one of the indicated ordinate scale.
reDraw If set to IlFalse, the display will not be immediately refreshed.
Returns:
A pointer to the newly created cursor object.
IlvAbstractGridDisplayer* IlvChartGraphic::addOrdinateGrid ( IlvPalette majorPalette = 0,
IlvPalette minorPalette = 0,
IlUInt  index = 0,
IlBoolean  reDraw = IlTrue 
)

Adds a grid to an ordinate axis.

Parameters:
index The index of the ordinate axis that is referred to.
majorPalette The palette that will be used to draw the major lines of the grid. If this parameter is omitted or set to 0, the palette that will be used is the palette of the indicated ordinate scale.
minorPalette The palette that will be used to draw the minor lines of the grid. If this parameter is omitted or set to 0, the palette that will be used is the palette of the indicated ordinate scale.
reDraw If set to IlFalse, the display will not be immediately refreshed.
Returns:
A pointer to the newly created grid object.
void IlvChartGraphic::addOrdinateScale ( IlvAbstractScaleDisplayer scale  ) 

Adds an ordinate scale.

This method adds a ordinate scale at the end of the list of ordinate scales. It is equivalent to insertOrdinateScale(scale, IlvLastPositionIndex).

Parameters:
scale The scale to be added.
virtual void IlvChartGraphic::dataPointsAdded ( const IlvChartDataSet ds,
IlUInt  iMin,
IlUInt  iMax,
IlBoolean  reDraw = IlTrue 
) [virtual]

Performs the automatic update when new data are added.

Called whenever a value has been added to a data set referenced by the chart. It performs the update of the chart, depending on the scroll mode. In order to disable the notification, you can:

Parameters:
ds The data set that has been modified.
iMin The index in the data set of the first added point.
iMax The index in the data set of the last added point.
reDraw A Boolean value indicating whether a reDraw operation must be performed.
IlBoolean IlvChartGraphic::dataPointsToDisplay ( IlUInt  count,
const IlvDoublePoint dataPoints,
IlvPoint points,
const IlvCoordinateInfo ordinateInfo,
IlBoolean  shiftOfCycleLength,
const IlvTransformer t = 0 
) const

Converts data points to screen coordinates.

Parameters:
count The number of data points to be projected.
dataPoints The array of count data points.
points The output array where the projected points will be stored. This must be a pointer to at least count IlvPoint objects. These points are transformed by t.
ordinateInfo A pointer to the coordinate information object of the ordinate axis that must be used for the projection.
shiftOfCycleLength A Boolean value indicating, if IlTrue, that the data points must be shifted by the length of the cycle.
t The transformer that is applied to chart graphic.
Returns:
A Boolean value that indicates, when IlTrue, that the operation was successful. If not, the returned value is IlFalse.
IlBoolean IlvChartGraphic::displayToDataPoints ( IlUInt  count,
const IlvPoint points,
IlvDoublePoint dataPoints,
const IlvCoordinateInfo ordinateInfo,
IlBoolean  shiftOfCycleLength,
const IlvTransformer t = 0 
) const

Converts screen coordinates to data points.

This method lets you convert screen coordinates to data points.

Parameters:
count The number of data points to be projected.
points The array where the screen points are stored. These points are considered to be already transformed by t.
dataPoints The output array where the data points will be stored. This must be a pointer to at least count IlvDoublePoint objects.
ordinateInfo A pointer to the coordinate information object of the ordinate axis that must be used for the projection.
shiftOfCycleLength A Boolean value indicating, if IlTrue that the data points must be shifted by the length of the cycle.
t The transformer that is applied to the chart graphic.
Returns:
A Boolean value that indicates, when IlTrue, that the operation was successful. If not, the returned value is IlFalse.
void IlvChartGraphic::enableFastScroll ( IlBoolean  enable  ) 

Enables a very efficient refresh in Shift scroll mode.

This method is meaningful only if the chart graphic is in the IlvChartGraphic::IlvScrollModeShift scroll mode.

If enabled, the Fast Scroll mode makes it possible to expect excellent performance of the chart visual update. This technique directly draws on the destination port when data points are updated. It has several limitations:

  • There must be no other graphical objects underneath the chart graphic.
  • Using displayers that display filled polygonal representations, such as polygon and stair displayers, should be avoided since an additional vertical line is drawn for each polygonal representation of an added data point.
Parameters:
enable If set to IlTrue, this parameter enables the Fast Scroll mode of the chart. The mode is disabled if enable is set to IlFalse.
IlvAbstractGridDisplayer* IlvChartGraphic::getAbscissaGrid (  )  const

Returns the abscissa grid.

Returns:
The abscissa grid used by this object.
IlvCoordinateInfo* IlvChartGraphic::getAbscissaInfo (  )  const

Returns the coordinate information object of the abscissa.

Returns:
The coordinate information of the abscissa.
IlvSingleScaleDisplayer* IlvChartGraphic::getAbscissaScale (  )  const

Returns the abscissa scale.

Returns:
The abscissa scale used by this object.
const IlvAxisCrossing* IlvChartGraphic::getAxisCrossing ( IlInt  index  )  const

Gets crossing between coordinate axes.

See also:
setAxisCrossing
IlvAbstractChartCursor* IlvChartGraphic::getCycleCursor (  )  const

Returns the cycle cursor.

This method is meaningful only if the method setScrollMode(IlvChartGraphic::IlvScrollModeCycle, IlTrue) has been called.

Returns:
The cycle cursor.
See also:
setScrollMode.
IlvAbstractChartData* IlvChartGraphic::getData (  )  const

Returns the chart data object that manages the data sets displayed by the current object.

Returns:
The chart data object used by this object.
void IlvChartGraphic::getDataDisplayArea ( const IlvCoordinateInfo coordInfo,
IlvRect dataDisplayArea,
const IlvTransformer t = 0 
) const

Returns the rectangle where the data values of a coordinate are projected.

Parameters:
coordInfo The considered coordinate.
dataDisplayArea The returned rectangle.
t The transformer applied to the returned rectangle.
void IlvChartGraphic::getDataDisplayArea ( IlvRect dataDisplayArea,
const IlvTransformer t = 0 
) const

Returns the data display area of the chart.

This call is equivalent to getLayout()->getDataDisplayArea(dataDisplayArea, t). It returns the global rectangle where data are projected and displayed.

Parameters:
dataDisplayArea The returned chart data display area.
t The transformer applied to the returned data display area.
See also:
IlvChartLayout.
IlvChartDataSet* IlvChartGraphic::getDataSet ( IlUInt  dataSetIndex  )  const

Returns a given data set.

This call is equivalent to getData()->getDataSet(dataSetIndex).

Parameters:
dataSetIndex The index of the data set that is requested.
Returns:
A pointer to the indicated data set, or 0 if the index is invalid.
IlUInt IlvChartGraphic::getDataSetIndex ( const IlvChartDataSet dataSet  )  const

Returns the index of a given data set.

This call is equivalent to getData()->getDataSetIndex(dataSet).

Parameters:
dataSet A pointer to the data set for which the index is requested.
Returns:
The index of this data set in the chart data object used by the current object, or the value IlvBadIndex if the data set could not be located.
IlvChartDataSet* const* IlvChartGraphic::getDataSets ( IlUInt dataSetCount  )  const

Returns the data sets.

This call is equivalent to getData()->getDataSets(dataSetCount).

Warning:
[note] The array is stored in an IlPoolOf(Pointer) and should not be deleted or modified.
Parameters:
dataSetCount The number of returned data sets.
Returns:
An array of pointers to the data sets of the chart data object used by the current object.
IlUInt IlvChartGraphic::getDataSetsCount (  )  const

Returns the number of data sets.

This call is equivalent to getData()->getDataSetsCount().

Returns:
The number of data sets of the chart data object used by the current object.
IlvAbstractChartDisplayer* IlvChartGraphic::getDisplayer ( IlUInt  displayerIndex  )  const

Gets one specific displayer by index.

Parameters:
displayerIndex The index of the displayer to be retrieved.
Returns:
A pointer to the displayer at the indicated index if this index is valid and 0 otherwise.
IlvAbstractChartDisplayer* IlvChartGraphic::getDisplayerByName ( const char *  name  )  const

Gets one specific displayer by name.

Parameters:
name The name of the displayer to be retrieved.
Returns:
A pointer to the displayer that has a name identical to name. If no such displayer exists, this method returns 0.
IlUInt IlvChartGraphic::getDisplayerIndex ( const IlvAbstractChartDisplayer displayer  )  const

Returns the index of a displayer.

Parameters:
displayer The displayer for which the user wants to retrieve the index.
Returns:
The index of the displayer displayer if this displayer is used by the current object, or the value IlvBadIndex if it could not be located.
IlUInt IlvChartGraphic::getDisplayersCount (  )  const

Returns the number of displayers.

Returns:
The number of displayers used by this chart graphic to display graphical representations of data.
IlUInt IlvChartGraphic::getDisplayItem ( IlvAbstractChartDisplayer *&  displayer,
IlvChartDataSet *&  dataSet,
const IlvPoint viewPoint,
const IlvTransformer t 
) const

Returns the data point whose representation on the chart includes a given screen point of the chart graphic.

This method finds which data point a screen point corresponds to, taking into account the geometry of the displayer (bar, line, and so on).

Parameters:
displayer A reference to a pointer to the displayer that we want to perform the test against. If this parameter is set to 0, then all displayers will be tested, and the reference will be set to a pointer to the closest displayer to viewPoint.
dataSet A reference to a pointer to the data set that we want to perform the test against. If this parameter is set to 0, then all data sets displayed by the displayer displayer will be tested (or all data sets displayed by all displayers, if displayer was 0), and the reference will be set to the data set, displayed by the returned displayer, which contains the closest data point to viewPoint.
viewPoint The reference point, given in the coordinates system of the displayed chart graphic.
t The transformer that is applied to the chart graphic.
Returns:
The index of the data point corresponding to the screen point which is the closest to the reference point, or the value IlvBadIndex if no data point could be found.
IlBoolean IlvChartGraphic::getDrawingArea ( IlvRect drawingArea,
const IlvTransformer t = 0 
) const

Returns the drawing area of the chart.

This call is equivalent to getLayout()->getDrawingArea(drawingArea, t).

Parameters:
drawingArea The returned chart drawing area.
t The transformer to be used to compute the drawing area.
Returns:
Always IlTrue.
See also:
IlvChartLayout.
void IlvChartGraphic::getGraphArea ( IlvRect graphArea,
const IlvTransformer t = 0 
) const

Returns the graph area of the chart.

This call is equivalent to getLayout()->getGraphArea(graphArea, t).

Parameters:
graphArea The returned chart graph area.
t The transformer applied to the returned graph area.
See also:
IlvChartLayout.
IlvChartLayout* IlvChartGraphic::getLayout (  )  const

Returns the chart layout object.

Returns:
The chart layout object used by this chart graphic.
IlvChartLegend* IlvChartGraphic::getLegend (  )  const

Returns the legend.

Returns:
The legend used by this object.
IlUInt IlvChartGraphic::getNearestPoint ( IlvAbstractChartDisplayer *&  displayer,
IlvChartDataSet *&  dataSet,
const IlvPoint viewPoint,
IlvDim  distance,
IlvPoint point,
const IlvTransformer t 
) const

Returns the nearest data point from a screen point of the chart graphic.

This method finds the closest displayer and data set provided a point in the display coordinates system (that is, in the coordinates system of the chart graphic).

Parameters:
displayer A reference to a pointer to the displayer that we want to perform the test against. If this parameter is set to 0, then all displayers will be tested, and the reference will be set to a pointer to the closest displayer to viewPoint.
dataSet A reference to a pointer to the data set that we want to perform the test against. If this parameter is set to 0, then all data sets displayed by the displayer displayer will be tested (or all data sets displayed by all displayers, if displayer was 0), and the reference will be set to the data set, displayed by the returned displayer, which contains the closest data point to viewPoint.
viewPoint The reference point, given in the coordinates system of the displayed chart graphic.
distance The threshold value over which no data point will be considered. Setting this parameter to 0 will ensure there will always be a closest point.
point A reference to an IlvPoint that will be set to the exact coordinates of the point on the display that was considered the closest.
t The transformer that is applied to the chart graphic.
Returns:
The index of the data point corresponding to the screen point which is the closest to the reference point, or the value IlvBadIndex if no data point could be found.
IlvAbstractGridDisplayer* IlvChartGraphic::getOrdinateGrid ( IlUInt  index = 0  )  const

Gets an ordinate grid by index.

Parameters:
index The index of the ordinate grid that is queried.
Returns:
The index th ordinate grid of this object, or 0 if index is invalid.
IlUInt IlvChartGraphic::getOrdinateGridIndex ( const IlvAbstractGridDisplayer grid  )  const

Returns the index of an ordinate grid.

Parameters:
grid The ordinate grid for which we want to query the index.
Returns:
The index of the indicated grid, or the value IlvBadIndex if it could not be located.
IlvCoordinateInfo* IlvChartGraphic::getOrdinateInfo ( IlUInt  index = 0  )  const

Returns the coordinate information object of an ordinate axis.

Parameters:
index The index of the ordinate axis for which the information is queried.
Returns:
The coordinate information of the index th ordinate axis, or 0 if index is not a valid parameter.
IlUInt IlvChartGraphic::getOrdinateInfoCount (  )  const

Returns the number of ordinate coordinate information objects.

Returns:
The number of ordinate coordinate information objects.
IlUInt IlvChartGraphic::getOrdinateInfoIndex ( const IlvCoordinateInfo info  )  const

Returns the index of an ordinate coordinate information object.

Parameters:
info The ordinate coordinate information object for which the index is queried.
Returns:
The index of that coordinate information object, or the value IlvBadIndex indicating that info is not known as a coordinate information object for an ordinate axis of this chart graphic.
IlvAbstractScaleDisplayer* IlvChartGraphic::getOrdinateScale ( IlUInt  index = 0  )  const

Gets an ordinate scale by index.

Parameters:
index The index of the ordinate scale that is queried.
Returns:
The index th ordinate scale of this object, or 0 if index is invalid.
IlUInt IlvChartGraphic::getOrdinateScaleIndex ( const IlvAbstractScaleDisplayer scale  )  const

Returns the index of an ordinate scale.

Parameters:
scale The ordinate scale for which we want to query the index.
Returns:
The index of the indicated scale, or the value IlvBadIndex if it could not be located.
IlUInt IlvChartGraphic::getOrdinateScalesCount (  )  const

Returns the number of ordinate scales.

Returns:
The number of ordinate scales.
IlvSingleScaleDisplayer* IlvChartGraphic::getOrdinateSingleScale ( IlUInt  index = 0  )  const

Gets a single ordinate scale by index.

This method is similar to IlvChartGraphic::getOrdinateScale, except that it returns only instances of subclasses of IlvSingleScaleDisplayer.

Parameters:
index The index of the ordinate scale that is queried.
Returns:
The index th ordinate scale of this object, or 0 if index is invalid or if the scale is not an instance of a subclass of IlvSingleScaleDisplayer.
IlvPalette* IlvChartGraphic::getProjectedPointsPalette (  )  const

Returns the palette used to display the out-of-bounds data points that are projected.

Returns:
A pointer to the palette object used to display the out of bounds data points that are projected on the limits of the data display area.
Warning:
[note] This palette is used only for projected data points, and some data points may be projected only if the IlvChartGraphic::projectHorizontally or IlvChartGraphic::projectVertically methods return IlTrue. (See these methods for more details).
IlvAbstractProjector* IlvChartGraphic::getProjector (  )  const

Returns the projector.

Returns:
The projector used by this chart graphic.
void IlvChartGraphic::getProjectorArea ( const IlvAbstractScaleDisplayer scale,
IlvProjectorArea &  projArea,
const IlvTransformer t = 0 
) const

Returns the description of the projecting area associated with a scale.

Parameters:
coordInfo The considered scale.
projArea The returned projecting area.
t The transformer applied to the returned area.
void IlvChartGraphic::getProjectorArea ( const IlvCoordinateInfo coordInfo,
IlvProjectorArea &  projArea,
const IlvTransformer t 
) const

Returns the description of the projecting area associated with a coordinate.

Parameters:
coordInfo The considered coordinate.
projArea The returned projecting area.
t The transformer applied to the returned area.
IlvSingleScaleDisplayer* IlvChartGraphic::getScaleForCursor ( const IlvAbstractChartCursor cursor  )  const

Returns the scale for a cursor.

Parameters:
cursor The cursor for which we query the scale.
Returns:
A pointer to the scale object to which the cursor cursor is attached, or 0 if the cursor cursor could not be located.
IlvAbstractChartCursor* IlvChartGraphic::getScrollCursor (  )  const

Returns the scrolling cursor.

This method is meaningful only if the method setScrollMode(IlvChartGraphic::IlvScrollModeShift, IlTrue) or setScrollMode(IlvChartGraphic::IlvScrollModeCycle, IlTrue) has been called.

Returns:
The scrolling cursor.
See also:
setScrollMode.
ScrollMode IlvChartGraphic::getScrollMode (  )  const

Returns the scrolling mode.

Returns:
The current scrolling mode for this chart graphic.
IlDouble IlvChartGraphic::getScrollRatio (  )  const

Returns the scrolling ratio.

Returns:
The unit ratio that is used to scroll the chart in the automatic scroll mode.
Warning:
[note] This ratio is defined relative to the part of the abscissa range that is visible. Its value must be between 0 and 1.
virtual void IlvChartGraphic::insertOrdinateScale ( IlvAbstractScaleDisplayer scale,
IlUInt  index = 0 
) [virtual]

Inserts an ordinate scale.

This method adds an ordinate scale at the indicated index to the list of ordinate scales.

Parameters:
scale The scale to be added.
index The position in the ordinate scales list where this scale must be added. A value of 0 indicates that this scale should become the first of all the scales in the list. A value of IlvLastPositionIndex indicates that this scale should become the last of all the scales in the list.
IlBoolean IlvChartGraphic::isFastScrollEnabled (  )  const

Queries for the Fast Scroll mode.

Returns:
The Boolean value that indicates, if set to IlTrue, that the chart graphic is in Fast Scroll mode.
See also:
enableFastScroll.
IlBoolean IlvChartGraphic::isReDrawnWhenNotified (  )  const

Indicates whether an automatic redraw is performed.

When the chart graphic data is modified, there can be an automatic refresh of the chart. This is very handy, but sometimes it is not the most efficient way to update a chart graphic.

Returns:
IlTrue if changes to the chart data are immediately transmitted to the screen and IlFalse otherwise. When IlFalse is returned, no redraw is performed when the chart data changes.
void IlvChartGraphic::moveCursor ( IlvAbstractChartCursor cursor,
IlDouble  newValue,
IlBoolean  reDraw = IlTrue 
)

Moves a cursor.

Parameters:
cursor The cursor that must be moved.
newValue The new value at which the cursor must be located (on the associated scale).
reDraw If set to IlFalse, the display will not be immediately refreshed.
virtual void IlvChartGraphic::moveDisplayer ( IlUInt  displayerIndex,
IlUInt  newIndex 
) [virtual]

Changes the stacking order of a displayer.

Parameters:
displayerIndex The index of the displayer to be reordered.
newIndex The new index that this displayer will take.
IlBoolean IlvChartGraphic::projectHorizontally (  )  const

Indicates whether there is a horizontal projection of out-of-bounds data points.

Returns:
IlTrue if the data points that are out-of-bounds should be projected horizontally on the limits of the data display area and IlFalse otherwise.
See also:
setProjectHorizontally, projectVertically.
IlBoolean IlvChartGraphic::projectVertically (  )  const

Indicates whether there is a vertical projection of out-of-bounds data points.

Returns:
IlTrue if the data points that are out-of-bounds should be projected vertically on the limits of the data display area and IlFalse otherwise.
See also:
setProjectVertically, projectHorizontally.
void IlvChartGraphic::reDrawWhenNotified ( IlBoolean  reDraw  ) 

Specifies whether an automatic redraw is performed.

Parameters:
reDraw The new value of the Boolean indicating whether an automatic redraw is performed. If set to IlTrue, the chart graphic automatically updates itself when the data is modified. If set to IlFalse, the refresh must be performed manually.
See also:
isReDrawnWhenNotified.
IlvAbstractChartCursor* IlvChartGraphic::removeAbscissaCursor ( IlvAbstractChartCursor cursor,
IlBoolean  reDraw = IlTrue 
)

Removes a cursor from the abscissa axis.

The cursor is not destroyed so that it can be used elsewhere after this call (or destroyed if necessary).

Parameters:
cursor The cursor to be removed.
reDraw If set to IlFalse, the display will not be immediately refreshed.
Returns:
A pointer to the indicated cursor, or 0 if this cursor does not belong to the abscissa scale.
void IlvChartGraphic::removeAbscissaGrid ( IlBoolean  reDraw = IlTrue  ) 

Removes the grid from the abscissa axis.

The removed grid is destroyed.

Parameters:
reDraw If set to IlFalse, the display will not be immediately refreshed.
virtual void IlvChartGraphic::removeAbscissaScale (  )  [virtual]

Removes the abscissa scale.

The previous abscissa scale is destroyed. This method is equivalent to setAbscissaScale(0).

See also:
setAbscissaScale.
virtual IlBoolean IlvChartGraphic::removeDisplayer ( IlUInt  displayerIndex  )  [virtual]

Removes a displayer.

The removed displayer is deleted.

Parameters:
displayerIndex The index of the displayer to be removed.
Returns:
IlTrue if the removal was performed and IlFalse if displayerIndex is an invalid index.
IlvAbstractChartCursor* IlvChartGraphic::removeOrdinateCursor ( IlvAbstractChartCursor cursor,
IlUInt  index = 0,
IlBoolean  reDraw = IlTrue 
)

Removes a cursor from an ordinate axis.

The cursor is not destroyed so that it can be used elsewhere after this call (or destroyed if necessary).

Parameters:
cursor The cursor to be removed.
index The index of the ordinate axis that is referred to.
reDraw If set to IlFalse, the display will not be immediately refreshed.
Returns:
A pointer to the indicated cursor, or 0 if that cursor does not belong to the indicated ordinate scale.
void IlvChartGraphic::removeOrdinateGrid ( IlUInt  index = 0,
IlBoolean  reDraw = IlTrue 
)

Removes the grid from an ordinate axis.

The removed grid is destroyed.

Parameters:
index The index of the ordinate axis that is referred to.
reDraw If set to IlFalse, the display will not be immediately refreshed.
virtual void IlvChartGraphic::removeOrdinateGrids (  )  [virtual]

Removes all the ordinate grids.

All the ordinate grids stored by this chart graphic are destroyed.

virtual void IlvChartGraphic::removeOrdinateScale ( IlUInt  index  )  [virtual]

Removes an ordinate scale.

The indicated scale is destroyed, and all the following ordinate scales (in the ordinate scales list) are re-indexed.

Parameters:
index The index of the ordinate scale to be removed.
virtual void IlvChartGraphic::removeOrdinateScales (  )  [virtual]

Removes all the ordinate scales.

All the ordinate scales stored by this chart graphic are destroyed.

virtual IlBoolean IlvChartGraphic::replaceDisplayer ( IlvAbstractChartDisplayer oldDisplayer,
IlvAbstractChartDisplayer newDisplayer,
IlBoolean  copyPalettes = IlFalse 
) [virtual]

Replaces one displayer by another.

The displayer newDisplayer replaces the displayer oldDisplayer at the same index. The displayer oldDisplayer is deleted.

Parameters:
oldDisplayer The displayer to replace.
newDisplayer The new displayer.
copyPalettes If this parameter is set to IlTrue, the method tries to assign the palettes of oldDisplayer to newDisplayer.
Returns:
A Boolean value that indicates, if IlTrue, that the old displayer was successfully replaced by the new one. If this method returns IlFalse, the replacement could not take place.
virtual void IlvChartGraphic::setAbscissaGrid ( IlvAbstractGridDisplayer grid  )  [virtual]

Sets the abscissa grid.

The previous grid object is destroyed. If grid is set to 0, the chart graphic will not have an abscissa grid any more.

Parameters:
grid The new grid to be used for the abscissa axis.
See also:
removeAbscissaGrid.
virtual void IlvChartGraphic::setAbscissaScale ( IlvSingleScaleDisplayer scale  )  [virtual]

Sets the abscissa scale.

The previous scale object is destroyed. If scale is set to 0, the chart graphic will not have an abscissa scale any more.

Parameters:
scale The new scale to be used for the abscissa axis.
See also:
removeAbscissaScale.
void IlvChartGraphic::setAxisCrossing ( IlInt  index,
IlDouble  val 
)

Specifies the crossing between coordinate axes at a fixed value.

This crossing is taken into account by displayers such as the bar chart displayer, and so on.

void IlvChartGraphic::setAxisCrossing ( IlInt  index,
IlvAxisCrossing  
)

Specifies the crossing between coordinate axes.

This crossing is taken into account by displayers such as the bar chart displayer, and so on.

The object takes ownership of the IlvAxisCrossing passed as argument.

void IlvChartGraphic::setCursorVisible ( IlvAbstractChartCursor cursor,
IlBoolean  visible 
)

Shows or hides a cursor.

This method performs an automatic refresh of the invalidated areas.

Parameters:
cursor The cursor that must be shown or hidden.
visible If this parameter is set to IlTrue, the indicated cursor is shown in the chart graphic. The cursor is hidden if visible is set to IlFalse.
virtual void IlvChartGraphic::setData ( IlvAbstractChartData data  )  [virtual]

Sets the chart data object that manages the data sets displayed by the current object.

The new chart data object is locked, and the previous one is released. The entire chart is invalidated for an update of the display.

Parameters:
data The new chart data object to be displayed.
void IlvChartGraphic::setDrawOrder ( IlvDrawOrder  drawOrder  ) 

Sets the drawing order for all the scales and grids defined.

If the drawing order is set to IlvDrawAbove, the defined scales and grids will be drawn above the graphic representations of data in the chart. If the drawing order is set to IlvDrawBelow, they will be drawn below.

Parameters:
drawOrder The new drawing order.
virtual void IlvChartGraphic::setLayout ( IlvChartLayout layout  )  [virtual]

Sets the chart layout object.

The previous chart layout object is destroyed.

Parameters:
layout The new chart layout object to be set for this chart graphic.
void IlvChartGraphic::setLegend ( IlvChartLegend legend  ) 

Sets the legend.

The previous legend is not destroyed.

Parameters:
legend The new legend object for this chart graphic.
virtual void IlvChartGraphic::setOrdinateGrid ( IlUInt  index,
IlvAbstractGridDisplayer grid 
) [virtual]

Adds or replaces an ordinate grid.

If there is a grid at the indicated index, then this grid is destroyed.

Parameters:
grid The ordinate grid to be set.
virtual void IlvChartGraphic::setOrdinateScale ( IlUInt  index,
IlvAbstractScaleDisplayer scale 
) [virtual]

Adds or replaces an ordinate scale.

If there is a scale at the indicated index, then this scale is destroyed.

Parameters:
scale The ordinate scale to be set.
void IlvChartGraphic::setProjectedPointsPalette ( IlvPalette palette  ) 

Sets the palette used to display the out-of-bounds data points that are projected.

The previous palette is unlocked, and the new one is locked.

Parameters:
palette A pointer to the new palette object that will be used to display the out-of-bounds data points that are projected on the limits of the data display area.
Warning:
[note] This palette is used only for projected data points, and some data points may be projected only if the IlvChartGraphic::projectHorizontally or IlvChartGraphic::projectVertically methods return IlTrue. (See these methods for more details).
void IlvChartGraphic::setProjectHorizontally ( IlBoolean  projectHorizontally  ) 

Specifies whether there is a horizontal projection of out-of-bounds data points.

Parameters:
projectHorizontally The new value of the Boolean indicating whether a horizontal projection of out-of-bounds data points is requested.
Warning:
[note] If a vertical or horizontal projection is specified, the out-of-bounds data points are projected on the limits of the data display area. This feature is available for continuous data representations, such as polylines, for which the effect of the projection is to complete the parts of the polyline that are not drawn because they are outside the data display area. It is also possible to associate a specific palette to represent the projected data points (see the IlvChartGraphic::setProjectedPointsPalette method).
The projection of out-of-bounds data points should not be used while using the automatic scroll mode, otherwise there will be a loss of efficiency.
virtual IlBoolean IlvChartGraphic::setProjector ( IlvAbstractProjector projector  )  [virtual]

Sets the projector.

The previous projector is unlocked, and the new projector is locked. All scales are updated with the new projector.

Parameters:
projector The new projector that must be used by this chart graphic.
Returns:
IlTrue if the setting could be performed, and IlFalse if there was a problem.
void IlvChartGraphic::setProjectVertically ( IlBoolean  projectVertically  ) 

Specifies whether there is a vertical projection of out-of-bounds data points.

Parameters:
projectVertically The new value of the Boolean indicating whether a vertical projection of out-of-bounds data points is requested.
Warning:
[note] If a vertical or horizontal projection is specified, the out-of-bounds data points are projected on the limits of the data display area. This feature is available for continuous data representations, such as polylines, for which the effect of the projection is to complete the parts of the polyline that are not drawn because they are outside the data display area. It is also possible to associate a specific palette to represent the projected data points (see the IlvChartGraphic::setProjectedPointsPalette method).
The projection of out-of-bounds data points should not be used while using the automatic scroll mode, otherwise there will be a loss of efficiency.
void IlvChartGraphic::setScrollMode ( ScrollMode  mode,
IlBoolean  createCursor = IlFalse 
)

Sets the scrolling mode.

If the new scrolling mode is set to IlvChartGraphic::IlvScrollModeShift or IlvChartGraphic::IlvScrollModeCycle, the user can specify that a scrolling cursor should be displayed as well by setting the parameter createCursor to IlTrue. In the case of the cycle scroll mode, a cycle cursor, which is displayed at the beginning of the cycle, is also created.

Parameters:
mode The new scrolling mode for this chart graphic.
createCursor A Boolean value indicating whether cursors are to be displayed as the chart scrolls. This is meaningful only if mode is set to IlvChartGraphic::IlvScrollModeShift or IlvChartGraphic::IlvScrollModeCycle.
void IlvChartGraphic::setScrollRatio ( IlDouble  ratio  ) 

Sets the scrolling ratio.

Parameters:
ratio The new unit ratio that is used to scroll the chart in the automatic scroll mode.
Warning:
[note] This ratio is defined relative to the part of the abscissa range that is visible. Its value must be between 0 and 1.
void IlvChartGraphic::stackScales ( IlUInt  count,
const IlvSingleScaleDisplayer *const *  scales,
IlDouble  offsetRatio 
)

Stack several ordinate scales.

Stacks the scales stored in the array scales so that they share the same ordinate axis. The scales must be handled by the chart and must represent an ordinate coordinate.

Parameters:
count The number of scales to stack.
scales The scales to stack.
offsetRatio The offset between the stacked scales, expressed as a ratio of the whole length of the ordinate axis.
virtual void IlvChartGraphic::translateCharts ( IlDouble  deltaAbscissa,
IlDouble  deltaOrdinate,
IlUInt  ordinateAxisIndex = 0,
IlBoolean  redraw = IlTrue,
IlBoolean  clipToAutoRange = IlTrue 
) [virtual]

Translates the graphical representations of data.

This method translates the graphic representations of data within the current chart graphic object that displays them. The chart graphic object itself keeps its bounding box untouched.

Parameters:
deltaAbscissa The translation to be performed on the abscissa axis.
deltaOrdinate The translation to be performed on the ordinate axis (the one indicated by ordinateAxisIndex).
ordinateAxisIndex The index of the ordinate axis the ordinate translation refers to. If this parameter is omitted or set to 0 then the main (the first) ordinate axis will be considered.
redraw If set to IlFalse, the display will not be immediately refreshed.
clipToAutoRange If omitted or set to IlTrue, the result of the translation may be modified to ensure that the coordinate systems (abscissa and ordinate) remain within the range of the data sets. If this parameter is set to IlFalse this checking is not performed, and the resulting display may be irrelevant (that is, outside of the range of the data sets).
virtual void IlvChartGraphic::update (  )  [virtual]

Updates the current object.

Updates the automatic data range and the layout. Called by the updateAndReDraw method.

void IlvChartGraphic::updateAndReDraw (  ) 

Updates and redraws the current object.

The current implementation calls the initReDraws method on the holder of the current object, then updates the current object (by calling the IlvChartGraphic::update method), and finally calls the invalidateRegion and reDrawViews methods on the holder.

IlBoolean IlvChartGraphic::zoomCharts ( const IlvCoordInterval abscissaRange,
const IlvCoordInterval ordinateRange,
IlUInt  ordinateAxisIndex = 0,
IlBoolean  redraw = IlTrue,
IlBoolean  clipToAutoRange = IlTrue 
)

Zooms the graphical representations of data.

This method changes the visible range that the abscissa and a given ordinate axis displays. The bounding box of the chart graphic object itself is not modified.

Parameters:
abscissaRange The new range that the abscissa axis should display.
ordinateRange The new range that the ordinate axis (the one indicated by ordinateAxisIndex) should display.
ordinateAxisIndex The index of the ordinate axis the ordinate translation refers to. If this parameter is omitted or set to 0, the main (the first) ordinate axis will be considered.
redraw If set to IlFalse, the display will not be immediately refreshed.
clipToAutoRange If omitted or set to IlTrue, the result of the translation may be modified to ensure that the visible parts of the chart axis remain within the range of the data sets. If this parameter is set to IlFalse, the checking is not performed and the resulting display may be irrelevant (that is, outside of the range of the data sets).
virtual IlBoolean IlvChartGraphic::zoomCharts ( const IlvCoordInterval ordinateRange,
IlUInt  ordinateAxisIndex,
IlBoolean  redraw = IlTrue,
IlBoolean  clipToAutoRange = IlTrue 
) [virtual]

Zooms the graphical representations of data on an ordinate axis.

This method changes the visible range that a given ordinate axis displays.

Parameters:
ordinateRange The new range that the ordinate axis (the one indicated by ordinateAxisIndex) should display.
ordinateAxisIndex The index of the ordinate axis the ordinate translation refers to.
redraw If set to IlFalse, the display will not be immediately refreshed.
clipToAutoRange If omitted or set to IlTrue, the result of the translation may be modified to ensure that the visible part of the indicated ordinate axis remains within the range of the data sets. If this parameter is set to IlFalse, the checking is not performed and the resulting display may be irrelevant (that is, outside of the range of the data sets).
virtual IlBoolean IlvChartGraphic::zoomCharts ( const IlvCoordInterval abscissaRange,
IlBoolean  redraw = IlTrue,
IlBoolean  clipToAutoRange = IlTrue 
) [virtual]

Zooms the graphical representations of data on the abscissa axis.

This method changes the visible range that the abscissa axis displays.

Parameters:
abscissaRange The new range that the abscissa axis should display.
redraw If set to IlFalse, the display will not be immediately refreshed.
clipToAutoRange If omitted or set to IlTrue, the result of the translation may be modified to ensure that the visible part of the abscissa axis remains within the range of the data sets. If this parameter is set to IlFalse, the checking is not performed and the resulting display may be irrelevant (that is, outside of the range of the data sets).
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.