Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SXYTaskMoveLegend Class Reference

#include <sxy_task_mvlegend.h>

Inheritance diagram for SXYTaskMoveLegend:

Inheritance graph
[legend]
Collaboration diagram for SXYTaskMoveLegend:

Collaboration graph
[legend]
List of all members.

Public Methods

SXYTaskReturn mouseClick (SXYGraph *graph, int b, int x, int y, int sft, int ctr)
SXYTaskReturn mouseUnclick (SXYGraph *graph, int b, int x, int y, int sft, int ctr)
SXYTaskReturn mouseMotion (SXYGraph *graph, int x, int y, int sft, int ctr)
SXYTaskReturn mouseEnter (SXYGraph *graph)
SXYTaskReturn mouseLeave (SXYGraph *graph)
 SXYTaskMoveLegend (void)
virtual ~SXYTaskMoveLegend ()

Protected Methods

void drawFence (void)
void translateLegend (void)

Private Attributes

XYLegend * legend
int shift_x
int shift_y
int ref_x
int ref_y
int is_moving

Constructor & Destructor Documentation

SXYTaskMoveLegend::SXYTaskMoveLegend void   
 

Definition at line 119 of file sxy_task_mvlegend.cpp.

References is_moving, legend, ref_x, ref_y, shift_x, and shift_y.

SXYTaskMoveLegend::~SXYTaskMoveLegend   [virtual]
 

Definition at line 128 of file sxy_task_mvlegend.cpp.

References legend.


Member Function Documentation

void SXYTaskMoveLegend::drawFence void    [protected]
 

Definition at line 93 of file sxy_task_mvlegend.cpp.

References SXYTask::getXorColor(), legend, shift_x, and shift_y.

Referenced by mouseClick(), mouseMotion(), and mouseUnclick().

SXYTaskReturn SXYTaskMoveLegend::mouseClick SXYGraph   graph,
int    b,
int    x,
int    y,
int    sft,
int    ctr
[virtual]
 

Implements SXYTask.

Definition at line 18 of file sxy_task_mvlegend.cpp.

References CALLBACK_NOT_TREATED, CALLBACK_TREATED, drawFence(), SXYGraph::getChart(), SXYGraph::getChartOfEvent(), SXYChart::getXyLegend(), is_moving, legend, ref_x, ref_y, shift_x, shift_y, and SXYTaskReturn.

SXYTaskReturn SXYTaskMoveLegend::mouseEnter SXYGraph   graph [virtual]
 

Implements SXYTask.

Definition at line 77 of file sxy_task_mvlegend.cpp.

References CALLBACK_NOT_TREATED, is_moving, SXYGraph::redrawGraph(), and SXYTaskReturn.

SXYTaskReturn SXYTaskMoveLegend::mouseLeave SXYGraph   graph [virtual]
 

Implements SXYTask.

Definition at line 85 of file sxy_task_mvlegend.cpp.

References CALLBACK_NOT_TREATED, is_moving, SXYGraph::redrawGraph(), and SXYTaskReturn.

SXYTaskReturn SXYTaskMoveLegend::mouseMotion SXYGraph   graph,
int    x,
int    y,
int    sft,
int    ctr
[virtual]
 

Implements SXYTask.

Definition at line 61 of file sxy_task_mvlegend.cpp.

References CALLBACK_NOT_TREATED, CALLBACK_TREATED, drawFence(), SXYGraph::getChartOfEvent(), is_moving, ref_x, ref_y, shift_x, shift_y, and SXYTaskReturn.

SXYTaskReturn SXYTaskMoveLegend::mouseUnclick SXYGraph   graph,
int    b,
int    x,
int    y,
int    sft,
int    ctr
[virtual]
 

Implements SXYTask.

Definition at line 40 of file sxy_task_mvlegend.cpp.

References CALLBACK_NOT_TREATED, CALLBACK_TREATED, drawFence(), SXYGraph::getChartOfEvent(), is_moving, legend, SXYGraph::redrawGraph(), ref_x, ref_y, shift_x, shift_y, SXYTaskReturn, and translateLegend().

void SXYTaskMoveLegend::translateLegend void    [protected]
 

Definition at line 109 of file sxy_task_mvlegend.cpp.

References legend, shift_x, and shift_y.

Referenced by mouseUnclick().


Member Data Documentation

int SXYTaskMoveLegend::is_moving [private]
 

Definition at line 27 of file sxy_task_mvlegend.h.

Referenced by mouseClick(), mouseEnter(), mouseLeave(), mouseMotion(), mouseUnclick(), and SXYTaskMoveLegend().

XYLegend* SXYTaskMoveLegend::legend [private]
 

Definition at line 21 of file sxy_task_mvlegend.h.

Referenced by drawFence(), mouseClick(), mouseUnclick(), SXYTaskMoveLegend(), translateLegend(), and ~SXYTaskMoveLegend().

int SXYTaskMoveLegend::ref_x [private]
 

Definition at line 25 of file sxy_task_mvlegend.h.

Referenced by mouseClick(), mouseMotion(), mouseUnclick(), and SXYTaskMoveLegend().

int SXYTaskMoveLegend::ref_y [private]
 

Definition at line 26 of file sxy_task_mvlegend.h.

Referenced by mouseClick(), mouseMotion(), mouseUnclick(), and SXYTaskMoveLegend().

int SXYTaskMoveLegend::shift_x [private]
 

Definition at line 23 of file sxy_task_mvlegend.h.

Referenced by drawFence(), mouseClick(), mouseMotion(), mouseUnclick(), SXYTaskMoveLegend(), and translateLegend().

int SXYTaskMoveLegend::shift_y [private]
 

Definition at line 24 of file sxy_task_mvlegend.h.

Referenced by drawFence(), mouseClick(), mouseMotion(), mouseUnclick(), SXYTaskMoveLegend(), and translateLegend().


The documentation for this class was generated from the following files:
SXY
Tecgraf / PUC-Rio - Computer Graphics Technology Group