Version: 0.6.0
Crosshair Class Reference

#include <crosshair.h>

Inheritance diagram for Crosshair:
Collaboration diagram for Crosshair:

Public Member Functions

 Crosshair (int style, wxPen *pen=(wxPen *) wxBLACK_PEN)
 
void Draw (wxDC &dc, wxRect rcData)
 
void SetHorizontalValueEnabled (int index, bool enabled=true)
 
void SetVerticalValueEnabled (int index, bool enabled=true)
 
void SetPoint (double x, double y)
 
void SetHandleMouseEvents (bool handleMouseEvents)
 
void SetHorizontalAxisBg (int index, AreaDraw *bg)
 
void SetVerticalAxisBg (int index, AreaDraw *bg)
 
virtual void ChartMouseDown (wxPoint &pt, int key)
 
virtual void ChartMouseUp (wxPoint &pt, int key)
 
virtual void ChartMouseMove (wxPoint &pt)
 
- Public Member Functions inherited from ChartPanelObserver
virtual void ChartEnterWindow ()
 
virtual void ChartMouseDrag (wxPoint &pt)
 
virtual void ChartMouseWheel (int rotation)
 

Detailed Description

Crosshair class. Performs crosshair drawing.

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 files:
  • /home/bishop/work/projects/nextgismanager/include/freechart/wx/crosshair.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/crosshair.cpp