Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Legend Class Reference

#include <Legend.h>

List of all members.

Public Member Functions

 Legend ()
void save (QTextStream *t)
void open (QTextStream *t, int version)
void setFont (QFont font)
QFont Font ()
void enable (bool b=true)
bool enabled ()
void setPosition (double X, double Y)
double X ()
double Y ()
void enableBorder (bool b=true)
bool borderEnabled ()
bool getOrientation ()
void setOrientation (bool o)
void draw (QPainter *p, PType type, GraphList *graphlist, Point pos, Point size, int w, int h)
bool inside (int X, int Y)
 calculate if point x,y is inside the legend box (for mouse event)

int TicLabelLength ()
void setTicLabelLength (int l)

Private Attributes

double x
double y
int x1
int y1
int x2
int y2
QFont f
bool border
bool e
int namelength
bool orientation
int ticlabellength


Constructor & Destructor Documentation

Legend::Legend (   ) 
 


Member Function Documentation

bool Legend::borderEnabled (   )  [inline]
 

void Legend::draw (  QPainter *  p,
PType  type,
GraphList *  graphlist,
Point  pos,
Point  size,
int  w,
int  h
) 
 

void Legend::enable (  bool  b = true  )  [inline]
 

void Legend::enableBorder (  bool  b = true  )  [inline]
 

bool Legend::enabled (   )  [inline]
 

QFont Legend::Font (   )  [inline]
 

bool Legend::getOrientation (   )  [inline]
 

bool Legend::inside (  int  X,
int  Y
) 
 

calculate if point x,y is inside the legend box (for mouse event)

void Legend::open (  QTextStream *  t,
int  version
) 
 

void Legend::save (  QTextStream *  t  ) 
 

void Legend::setFont (  QFont  font  )  [inline]
 

void Legend::setOrientation (  bool  o  )  [inline]
 

void Legend::setPosition (  double  X,
double  Y
)  [inline]
 

void Legend::setTicLabelLength (  int  l  )  [inline]
 

int Legend::TicLabelLength (   )  [inline]
 

double Legend::X (   )  [inline]
 

double Legend::Y (   )  [inline]
 


Member Data Documentation

bool Legend::border [private]
 

bool Legend::e [private]
 

QFont Legend::f [private]
 

int Legend::namelength [private]
 

bool Legend::orientation [private]
 

int Legend::ticlabellength [private]
 

double Legend::x [private]
 

int Legend::x1 [private]
 

int Legend::x2 [private]
 

double Legend::y [private]
 

int Legend::y1 [private]
 

int Legend::y2 [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Aug 19 21:34:46 2005 for LabPlot by doxygen 1.3.6