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

XYLegend Class Reference

#include <xyleg.h>

Inheritance diagram for XYLegend:

Inheritance graph
[legend]
Collaboration diagram for XYLegend:

Collaboration graph
[legend]
List of all members.

Public Methods

 XYLegend (XYCoordinate x, XYCoordinate y, int nlines, int ncolumns, xybool box=xytrue, xybool visible=xytrue)
virtual ~XYLegend (void)
virtual void mask (const XYList< XYMask > *mask)
virtual const XYList< XYMask > * mask (void) const
virtual void backgroundColor (long color)
virtual long backgroundColor (void) const
virtual void frameColor (long color)
virtual long frameColor (void) const
virtual void lines (int nl)
virtual int lines (void) const
virtual void columns (int nc)
virtual int columns (void) const
virtual void box (xybool b)
virtual xybool box (void) const
virtual xybool pick (int px, int py)
virtual XYMaskpickItem (int px, int py)
virtual xybool fence (int x0, int y0, int x1, int y1)
virtual void clear (void) const
virtual void clear (int xmin, int ymin, int xmax, int ymax) const
virtual void draw (void)
virtual void draw (int xmin, int ymin, int xmax, int ymax) const
virtual void boundingBox (int &bxmin, int &bymin, int &bxmax, int &bymax) const

Protected Attributes

const XYList< XYMask > * _masks
double _x
double _y
int _nLines
int _nColumns
xybool _box
long _color
long _bColor

Constructor & Destructor Documentation

XYLegend::XYLegend XYCoordinate    x,
XYCoordinate    y,
int    nlines,
int    ncolumns,
xybool    box = xytrue,
xybool    visible = xytrue
 

Definition at line 24 of file xyleg.cpp.

References XY_BLACK, and XY_WHITE.

XYLegend::~XYLegend void    [virtual]
 

Definition at line 39 of file xyleg.cpp.


Member Function Documentation

long XYLegend::backgroundColor void    const [virtual]
 

Definition at line 58 of file xyleg.cpp.

References _color.

Referenced by clear().

void XYLegend::backgroundColor long    color [virtual]
 

Definition at line 53 of file xyleg.cpp.

References _color.

void XYLegend::boundingBox int &    bxmin,
int &    bymin,
int &    bxmax,
int &    bymax
const [virtual]
 

Implements XYObject.

Definition at line 272 of file xyleg.cpp.

References AREA_MM, XYListIterator< T >::End(), MARG, XYListIterator< T >::Next(), XYListIterator< T >::Reset(), SPACE_MM, and xyfalse.

Referenced by draw(), fence(), and pick().

xybool XYLegend::box void    const [virtual]
 

Definition at line 98 of file xyleg.cpp.

References _box, and xybool.

void XYLegend::box xybool    b [virtual]
 

Definition at line 93 of file xyleg.cpp.

References _box.

void XYLegend::clear int    xmin,
int    ymin,
int    xmax,
int    ymax
const [virtual]
 

Definition at line 162 of file xyleg.cpp.

References backgroundColor().

void XYLegend::clear void    const [virtual]
 

Definition at line 149 of file xyleg.cpp.

References backgroundColor(), and XYObject::getViewport().

Referenced by draw().

int XYLegend::columns void    const [virtual]
 

Definition at line 88 of file xyleg.cpp.

References _nColumns.

void XYLegend::columns int    nc [virtual]
 

Definition at line 83 of file xyleg.cpp.

References _nColumns.

void XYLegend::draw int    xmin,
int    ymin,
int    xmax,
int    ymax
const [virtual]
 

Implements XYObject.

Definition at line 176 of file xyleg.cpp.

References _nColumns, _nLines, AREA_MM, boundingBox(), clear(), draw(), XYListIterator< T >::End(), frameColor(), MARG, XYListIterator< T >::Next(), XYObject::position(), SPACE_MM, XYObject::visible(), and xyfalse.

void XYLegend::draw void    [virtual]
 

Implements XYObject.

Definition at line 171 of file xyleg.cpp.

Referenced by draw().

xybool XYLegend::fence int    x0,
int    y0,
int    x1,
int    y1
[virtual]
 

Definition at line 137 of file xyleg.cpp.

References boundingBox(), mtInclude(), XYObject::visible(), xybool, and xyfalse.

long XYLegend::frameColor void    const [virtual]
 

Definition at line 68 of file xyleg.cpp.

References _bColor.

Referenced by draw().

void XYLegend::frameColor long    color [virtual]
 

Definition at line 63 of file xyleg.cpp.

References _bColor.

int XYLegend::lines void    const [virtual]
 

Definition at line 78 of file xyleg.cpp.

References _nLines.

void XYLegend::lines int    nl [virtual]
 

Definition at line 73 of file xyleg.cpp.

References _nLines.

const XYList< XYMask > * XYLegend::mask void    const [virtual]
 

Definition at line 48 of file xyleg.cpp.

References _masks.

void XYLegend::mask const XYList< XYMask > *    mask [virtual]
 

Definition at line 43 of file xyleg.cpp.

References _masks.

xybool XYLegend::pick int    px,
int    py
[virtual]
 

Definition at line 103 of file xyleg.cpp.

References boundingBox(), mtPointInRect(), XYObject::visible(), xybool, and xyfalse.

XYMask * XYLegend::pickItem int    px,
int    py
[virtual]
 

Definition at line 115 of file xyleg.cpp.

References XYListIterator< T >::End(), mtPointInRect(), XYListIterator< T >::Next(), XYObject::visible(), and xyfalse.


Member Data Documentation

long XYLegend::_bColor [protected]
 

Definition at line 101 of file xyleg.h.

Referenced by frameColor().

xybool XYLegend::_box [protected]
 

Definition at line 99 of file xyleg.h.

Referenced by box().

long XYLegend::_color [protected]
 

Definition at line 100 of file xyleg.h.

Referenced by backgroundColor().

const XYList<XYMask>* XYLegend::_masks [protected]
 

Definition at line 95 of file xyleg.h.

Referenced by mask().

int XYLegend::_nColumns [protected]
 

Definition at line 98 of file xyleg.h.

Referenced by columns(), and draw().

int XYLegend::_nLines [protected]
 

Definition at line 97 of file xyleg.h.

Referenced by draw(), and lines().

double XYLegend::_x [protected]
 

Definition at line 96 of file xyleg.h.

double XYLegend::_y [protected]
 

Definition at line 96 of file xyleg.h.


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