|
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 |