AWind
DecoratorAxis Class Reference

Axis decorator primitive. It is shared between gauge and chart objects. Overriden members description see Decorator class documentation. More...

#include <DecoratorPrimitives.h>

Inheritance diagram for DecoratorAxis:
Decorator

Public Types

enum  Orientation { HorizontalTop, HorizontalBottom, VerticalLeft, VerticalRight }
 

Public Member Functions

 DecoratorAxis (Orientation orientation, uint8_t *font, int length, float minValue, float maxValue, int nTicks)
 Constructor. More...
 
void SetOffset (int offsetX, int offsetY)
 Sets decorator offset in the parent window coordinate system.
 
void GetMinMax (float &minVal, float &maxVal)
 Return min and max label values.
 
void SetMinMax (float minVal, float maxVal)
 Sets min and max for label values.
 
int GetLength ()
 Returns axis length.
 
Orientation Orientation ()
 
int EstimateLeft (DC *dc)
 Estimates decorator left coordinate.
 
int EstimateRight (DC *dc)
 Estimates decorator right coordinate.
 
int EstimateTop (DC *dc)
 Estimates decorator top coordinate.
 
int EstimateBottom (DC *dc)
 Estimates decorator bottom coordinate.
 
void Draw (DC *dc, int left, int top, int width, int height)
 Drawing code implementation. More...
 

Detailed Description

Axis decorator primitive. It is shared between gauge and chart objects. Overriden members description see Decorator class documentation.

Member Enumeration Documentation

Enumerator
HorizontalTop 

Not implemented yet.

HorizontalBottom 

Not implemented yet.

VerticalLeft 

Vertcal axis with the labels left to the axis.

VerticalRight 

Vertcal axis with the labels right to the axis.

Constructor & Destructor Documentation

DecoratorAxis::DecoratorAxis ( Orientation  orientation,
uint8_t *  font,
int  length,
float  minValue,
float  maxValue,
int  nTicks 
)
inline

Constructor.

Parameters
orientationaxis orientation
fontlabels font
lengthlength of axis
minValuemin value
maxValuemax value
nTicksnumber of short line perpendicular to the axis

Member Function Documentation

void DecoratorAxis::Draw ( DC dc,
int  left,
int  top,
int  width,
int  height 
)
inlinevirtual

Drawing code implementation.

Parameters
dcdevice context

Implements Decorator.


The documentation for this class was generated from the following file: