wxFreeChart
Public Member Functions | List of all members
Crosshair Class Reference

Crosshair class. More...

#include <crosshair.h>

Public Member Functions

 Crosshair (int style, wxPen *pen=(wxPen *) wxBLACK_PEN)
 
void Draw (wxDC &dc, wxRect rcData)
 
void SetHorizontalValueEnabled (int index, bool enabled=true)
 Sets horizontal value enabled,. More...
 
void SetVerticalValueEnabled (int index, bool enabled=true)
 
void SetPoint (double x, double y)
 
void SetHandleMouseEvents (bool handleMouseEvents)
 Sets whether to handle mouse moving/clicks to move crosshair. More...
 
void SetHorizontalAxisBg (int index, AreaDraw *bg)
 Sets background for value drawn on horizontal axis. More...
 
void SetVerticalAxisBg (int index, AreaDraw *bg)
 Sets background for value drawn on vertical axis. More...
 
virtual void ChartMouseDown (wxPoint &pt, int key)
 
virtual void ChartMouseUp (wxPoint &pt, int key)
 
virtual void ChartMouseMove (wxPoint &pt)
 

Detailed Description

Crosshair class.

Performs crosshair drawing.

Definition at line 38 of file crosshair.h.

Member Function Documentation

void Crosshair::SetHandleMouseEvents ( bool  handleMouseEvents)

Sets whether to handle mouse moving/clicks to move crosshair.

Parameters
handleMouseEventstrue to handle mouse events
void Crosshair::SetHorizontalAxisBg ( int  index,
AreaDraw bg 
)

Sets background for value drawn on horizontal axis.

Parameters
indexhorizontal axis index
bgbackground
void Crosshair::SetHorizontalValueEnabled ( int  index,
bool  enabled = true 
)

Sets horizontal value enabled,.

Parameters
axisIndexaxis index
enabledtrue to enable axis value drawing
void Crosshair::SetVerticalAxisBg ( int  index,
AreaDraw bg 
)

Sets background for value drawn on vertical axis.

Parameters
indexvertical axis index
bgbackground

The documentation for this class was generated from the following file: