Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | 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)
QDomElement saveXML (QDomDocument doc)
void openXML (QDomNode node)
void setFont (QFont f)
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 ()
void setColor (QColor c)
void setColor (QString c)
QColor Color ()
void setTransparent (bool t=true)
bool Transparent ()
bool getOrientation ()
void setOrientation (bool o)
int drawGraphs (QPainter *p, GraphList *gl, PType type, Point size, QFont tmpfont)
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 font
bool border
bool enabled
QColor color
bool transparent
int namelength
bool orientation
int ticlabellength


Constructor & Destructor Documentation

Legend::Legend  ) 
 


Member Function Documentation

bool Legend::BorderEnabled  )  [inline]
 

QColor Legend::Color  )  [inline]
 

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

int Legend::drawGraphs QPainter *  p,
GraphList gl,
PType  type,
Point  size,
QFont  tmpfont
 

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::openXML QDomNode  node  ) 
 

void Legend::save QTextStream *  t  ) 
 

QDomElement Legend::saveXML QDomDocument  doc  ) 
 

void Legend::setColor QString  c  )  [inline]
 

void Legend::setColor QColor  c  )  [inline]
 

void Legend::setFont QFont  f  )  [inline]
 

void Legend::setOrientation bool  o  )  [inline]
 

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

void Legend::setTicLabelLength int  l  )  [inline]
 

void Legend::setTransparent bool  t = true  )  [inline]
 

int Legend::TicLabelLength  )  [inline]
 

bool Legend::Transparent  )  [inline]
 

double Legend::X  )  [inline]
 

double Legend::Y  )  [inline]
 


Member Data Documentation

bool Legend::border [private]
 

QColor Legend::color [private]
 

bool Legend::enabled [private]
 

QFont Legend::font [private]
 

int Legend::namelength [private]
 

bool Legend::orientation [private]
 

int Legend::ticlabellength [private]
 

bool Legend::transparent [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 Sun Apr 2 02:05:10 2006 for LabPlot by  doxygen 1.4.4