rwlogo

Rogue Wave Views
Charts Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
List of all members | Public Types | Public Member Functions | Protected Member Functions
IlvChartHighlightPointInteractor Class Reference

Allows information about a data point to be displayed. More...

#include <ilviews/charts/chartint.h>

Inheritance diagram for IlvChartHighlightPointInteractor:
IlvChartDataInteractor IlvChartInteractor IlvInteractor IlvChartInfoViewInteractor

Public Types

typedef void(* Action )(IlvChartGraphic *chart, IlvAbstractChartDisplayer *disp, IlvChartDataSet *dataSet, IlUInt pointIndex, IlBoolean highlight)
 Defines the type of the action to be triggered when a data point is highlighted or unhighlighted.
 
- Public Types inherited from IlvChartDataInteractor
enum  PickingMode
 

Public Member Functions

 IlvChartHighlightPointInteractor ()
 Constructor. More...
 
virtual IlBoolean handleEvent (IlvGraphic *chart, IlvEvent &ev, const IlvTransformer *t=0)
 Handles events received by the interactor. More...
 
void setAction (Action action)
 Sets the action to be triggered when a data point is highlighted or unhighlighted. More...
 
- Public Member Functions inherited from IlvChartDataInteractor
PickingMode getPickingMode () const
 Returns the current picking mode of the interactor. More...
 
void setPickingMode (PickingMode m)
 Sets the current picking mode of the interactor. More...
 
- Public Member Functions inherited from IlvChartInteractor
virtual void endSequence (IlvChartGraphic *chart, const IlvEvent &event, const IlvTransformer *t)
 Performs the actions needed when an interactor leaves an event sequence. More...
 
IlBoolean isShared () const
 Indicates whether the current object is a shared instance. More...
 
virtual IlBoolean isShowingAbscissaCursor () const
 Indicates whether the interactor uses a cursor on the abscissa. More...
 
virtual IlBoolean isShowingOrdinateCursor () const
 Indicates whether the interactor uses a cursor on the ordinate. More...
 
virtual void startSequence (IlvChartGraphic *chart, const IlvEvent &event, const IlvTransformer *t)
 Performs the actions needed when an interactor enters an event sequence. More...
 

Protected Member Functions

virtual void doIt (IlvChartGraphic *chart, IlvAbstractChartDisplayer *disp, IlvChartDataSet *dataSet, IlUInt pointIndex, IlBoolean highlight, IlvEvent &ev)
 Highlights a point. More...
 
- Protected Member Functions inherited from IlvChartDataInteractor
 IlvChartDataInteractor ()
 Constructor. More...
 
IlvChartDataSetgetHandledDataSet () const
 Returns the handled data set. More...
 
IlvAbstractChartDisplayergetHandledDisplayer () const
 Returns the chart displayer representing the handled data. More...
 
IlUInt getHandledPointIndex () const
 Returns the index of the handled data point. More...
 
IlBoolean isHandlingData () const
 Checks whether valid information about a data point has been stored. More...
 
virtual IlBoolean queryData (IlvChartGraphic *chart, IlvPoint &evp, const IlvTransformer *t)
 Retrieves and stores information about a data point. More...
 
- Protected Member Functions inherited from IlvChartInteractor
 IlvChartInteractor ()
 Constructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from IlvChartDataInteractor
static IlvDim GetPrecision ()
 Returns the precision used to find the data point corresponding to a given screen point. More...
 
static void SetPrecicion (IlvDim dim)
 Deprecated misspelling of SetPrecision()
 
static void SetPrecision (IlvDim dim)
 Sets the precision used to find the data point corresponding to a given screen point. More...
 

Detailed Description

Allows information about a data point to be displayed.

Library: ilvcharts

This class allows the user to trigger an action whenever the mouse moves over a projected point in the data display area.

The registered name of this interactor class is "ChartHighlightPoint".

Constructor & Destructor Documentation

IlvChartHighlightPointInteractor::IlvChartHighlightPointInteractor ( )

Constructor.

Initializes a new IlvChartHighlightPointInteractor object.

Member Function Documentation

virtual void IlvChartHighlightPointInteractor::doIt ( IlvChartGraphic chart,
IlvAbstractChartDisplayer disp,
IlvChartDataSet dataSet,
IlUInt  pointIndex,
IlBoolean  highlight,
IlvEvent ev 
)
protectedvirtual

Highlights a point.

This method is called whenever the mouse moves over new projected points. If a previous point was highlighted, this method is also called to remove the highlighting on that point. The default implementation is to call the highlight action method if it exists with the same parameters.

Parameters
chartThe considered chart.
dispThe curve displaying the highlighted point.
dataSetThe data set of the highlighted point.
pointIndexThe index of the highlighted point in the data set.
highlightA Boolean value indicating whether the point must be highlighted (IlTrue) or not (IlFalse).
evAn event holding the mouse cursor position.

Reimplemented in IlvChartInfoViewInteractor.

virtual IlBoolean IlvChartHighlightPointInteractor::handleEvent ( IlvGraphic chart,
IlvEvent event,
const IlvTransformer t = 0 
)
virtual

Handles events received by the interactor.

This method is the entry point of all events dispatched to this interactor.

Parameters
chartThe chart object that received the event.
eventThe received event.
tThe transformer applied to the view in which the event occurred.
Returns
IlTrue if the event was successfully handled and IlFalse otherwise.

Implements IlvChartInteractor.

Reimplemented in IlvChartInfoViewInteractor.

void IlvChartHighlightPointInteractor::setAction ( Action  action)

Sets the action to be triggered when a data point is highlighted or unhighlighted.

Parameters
actionThe action to be triggered.

© Copyright 2015, 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.