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

XYLogScaleDecorator Class Reference

#include <xysdlg.h>

Inheritance diagram for XYLogScaleDecorator:

Inheritance graph
[legend]
Collaboration diagram for XYLogScaleDecorator:

Collaboration graph
[legend]
List of all members.

Public Methods

 XYLogScaleDecorator (char *format, XYText *scale)
virtual ~XYLogScaleDecorator (void)
virtual void format (char *f)
virtual char * format (void) const
virtual void draw (const XYAxis *axis, int first_tick, int last_tick) const
virtual void boundingBox (const XYAxis *axis, int &xmin, int &ymin, int &xmax, int &ymax) const

Private Attributes

char * _format
XYText_scale

Constructor & Destructor Documentation

XYLogScaleDecorator::XYLogScaleDecorator char *    format,
XYText   scale
 

Definition at line 17 of file xysdlg.cpp.

XYLogScaleDecorator::~XYLogScaleDecorator void    [virtual]
 

Definition at line 24 of file xysdlg.cpp.


Member Function Documentation

void XYLogScaleDecorator::boundingBox const XYAxis   axis,
int &    xmin,
int &    ymin,
int &    xmax,
int &    ymax
const [virtual]
 

Implements XYScaleDecorator.

Definition at line 95 of file xysdlg.cpp.

References _scale, MAX3, MIN3, mtIntercept(), mtRotate(), and XY_PI.

void XYLogScaleDecorator::draw const XYAxis   axis,
int    first_tick,
int    last_tick
const [virtual]
 

Implements XYScaleDecorator.

Definition at line 38 of file xysdlg.cpp.

References _scale, XYText::boundingBox(), XYText::draw(), XYAxis::max(), XYAxis::min(), mtDecade(), mtIntercept(), mtRotate(), XYObject::position(), XYAxis::size(), XYAxis::step(), XYText::text(), and XY_PI.

char * XYLogScaleDecorator::format void    const [virtual]
 

Definition at line 33 of file xysdlg.cpp.

References _format.

void XYLogScaleDecorator::format char *    f [virtual]
 

Definition at line 28 of file xysdlg.cpp.

References _format.


Member Data Documentation

char* XYLogScaleDecorator::_format [private]
 

Definition at line 45 of file xysdlg.h.

Referenced by format().

XYText* XYLogScaleDecorator::_scale [private]
 

Definition at line 46 of file xysdlg.h.

Referenced by boundingBox(), and draw().


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