Rogue Wave Views Charts Package API Reference Guide |
Rogue Wave Views Documentation Home |
Displays a crosshair that tracks the pointing device. More...
#include <ilviews/charts/chartint.h>
Public Member Functions | |
IlvChartCrossHairInteractor () | |
Constructor. More... | |
virtual IlBoolean | handleEvent (IlvGraphic *chart, IlvEvent &ev, const IlvTransformer *t=0) |
Handles events received by the interactor. 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... | |
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 void | startSequence (IlvChartGraphic *chart, const IlvEvent &event, const IlvTransformer *t) |
Performs the actions needed when an interactor enters an event sequence. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvChartInteractor | |
static IlvChartInteractor * | Get (const char *name) |
Returns a shared interactor instance. More... | |
Protected Member Functions inherited from IlvChartInteractor | |
IlvChartInteractor () | |
Constructor. More... | |
Displays a crosshair that tracks the pointing device.
Library: ilvcharts
This class allows the user to trigger the visibility of a crosshair that will follow the movement of the mouse. The crosshair can be made of one or both of the cursors accessible from the interactors (abscissa/ordinate). These cursors are managed by the interactor manager instance that is associated with the interactive chart. The visibility of each cursor is defined both globally at the manager level (IlvChartInteractorManager::isShowingAbscissaCursor
and IlvChartInteractorManager::isShowingOrdinateCursor
) and locally by each interactor (IlvChartInteractor::isShowingAbscissaCursor
and IlvChartInteractor::isShowingOrdinateCursor
). This interactor works by turning on or off the global visibility of the cursors when the IlvKeyDown 'C'
event is received.
The registered name of this interactor class is "ChartCrossHair".
IlvChartCrossHairInteractor::IlvChartCrossHairInteractor | ( | ) |
Constructor.
Initializes a new IlvChartCrossHairInteractor
object.
|
virtual |
Handles events received by the interactor.
This method is the entry point of all events dispatched to this interactor.
chart | The chart object that received the event. |
event | The received event. |
t | The transformer applied to the view in which the event occurred. |
IlTrue
if the event was successfully handled and IlFalse
otherwise. Implements IlvChartInteractor.
|
virtual |
Indicates whether the interactor uses a cursor on the abscissa.
Interactor instances will use the API of IlvChartInteractorManager
to display and move the corresponding cursor. If this method returns IlTrue
and IlvChartInteractorManager::isShowingAbscissaCursor
also returns IlTrue
, the cursor will be displayed during the event sequence handled by this interactor. The default implementation returns IlFalse
.
IlTrue
if the interactor uses an abscissa cursor and IlFalse
otherwise. IlvChartInteractorManager
. Reimplemented from IlvChartInteractor.
|
virtual |
Indicates whether the interactor uses a cursor on the ordinate.
Interactor instances will use the API of IlvChartInteractorManager
to display and move the corresponding cursor. If this method returns IlTrue
and IlvChartInteractorManager::isShowingAbscissaCursor
also returns IlTrue
, the cursor will be displayed during the event sequence handled by this interactor.
IlTrue
if the interactor uses an ordinate cursor and IlFalse
otherwise. IlvChartInteractorManager
. Reimplemented from IlvChartInteractor.
© Copyright 2016, 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.