GRE_LEGEND::DRAWCONTEXT Class Reference

Context for legend item drawing. More...

#include <gre/legend.h>

Inheritance diagram for GRE_LEGEND::DRAWCONTEXT:

Inheritance graph
[legend]
List of all members.

Public Types

enum  ORIENTATION { ORIENTATION_Vertical = 0, ORIENTATION_Horizonatal = 1 }

Public Member Functions

 DRAWCONTEXT (const GRE_LEGEND &legend, MGD::CONTEXT *gc, INT32 labelspace, INT32 itemspace, const LRECT2D &cliprect)
bool IsVertical () const
void SetDrawLabels (bool DrawLabels)
virtual ~DRAWCONTEXT ()

Public Attributes

LRECT2D m_cliprect
bool m_DrawLabels
bool m_DrawLabelsOnColorScales
ELEMTYPE m_ElemType
bool m_HasTextStyle
INT32 m_itemheight
INT32 m_itemspace
INT32 m_labelspace
GRE_LAYERm_layer
ORIENTATION m_Orientation
INT32 m_samplewidth
TEXTSTYLE m_TextStyle

Detailed Description

Context for legend item drawing.

Definition at line 214 of file legend.h.


Member Enumeration Documentation

enum GRE_LEGEND::DRAWCONTEXT::ORIENTATION
 

Orientation for drawing if supported by legend type.

This is used by "color scale" legend.

Enumeration values:
ORIENTATION_Vertical  Draw items in "vertical" orientation (default).
ORIENTATION_Horizonatal  Draw items in "horizontal" orientation.

Definition at line 219 of file legend.h.


Constructor & Destructor Documentation

GRE_LEGEND::DRAWCONTEXT::DRAWCONTEXT const GRE_LEGEND legend,
MGD::CONTEXT gc,
INT32  labelspace,
INT32  itemspace,
const LRECT2D cliprect
 

Constructor for use in user interface.

Parameters:
labelspace  Spacing between sample and label in pixels
itemspace  Spacing between items in pixels
cliprect  Clipping rectangle

virtual GRE_LEGEND::DRAWCONTEXT::~DRAWCONTEXT  )  [virtual]
 


Member Function Documentation

bool GRE_LEGEND::DRAWCONTEXT::IsVertical  )  const [inline]
 

Determine if legend has vertical orientation.

Definition at line 250 of file legend.h.

void GRE_LEGEND::DRAWCONTEXT::SetDrawLabels bool  DrawLabels  )  [inline]
 

Set whether or not to draw labels for legend items.

Definition at line 254 of file legend.h.


Member Data Documentation

LRECT2D GRE_LEGEND::DRAWCONTEXT::m_cliprect
 

Definition at line 230 of file legend.h.

bool GRE_LEGEND::DRAWCONTEXT::m_DrawLabels
 

Definition at line 231 of file legend.h.

bool GRE_LEGEND::DRAWCONTEXT::m_DrawLabelsOnColorScales
 

Special case override for above flag.

Definition at line 232 of file legend.h.

ELEMTYPE GRE_LEGEND::DRAWCONTEXT::m_ElemType
 

Definition at line 225 of file legend.h.

bool GRE_LEGEND::DRAWCONTEXT::m_HasTextStyle
 

Definition at line 233 of file legend.h.

INT32 GRE_LEGEND::DRAWCONTEXT::m_itemheight
 

Definition at line 226 of file legend.h.

INT32 GRE_LEGEND::DRAWCONTEXT::m_itemspace
 

Definition at line 229 of file legend.h.

INT32 GRE_LEGEND::DRAWCONTEXT::m_labelspace
 

Definition at line 228 of file legend.h.

GRE_LAYER* GRE_LEGEND::DRAWCONTEXT::m_layer
 

Definition at line 224 of file legend.h.

ORIENTATION GRE_LEGEND::DRAWCONTEXT::m_Orientation
 

Definition at line 235 of file legend.h.

INT32 GRE_LEGEND::DRAWCONTEXT::m_samplewidth
 

Definition at line 227 of file legend.h.

TEXTSTYLE GRE_LEGEND::DRAWCONTEXT::m_TextStyle
 

Definition at line 234 of file legend.h.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:19:53 2004 for TNTsdk by  doxygen 1.3.8-20040913