Legend Class Reference

#include <legend.h>

Collaboration diagram for Legend:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Legend (int vertPosition, int horizPosition, AreaDraw *background=new FillAreaDraw(), int symbolTextGap=2, int margin=2)
void Draw (wxDC &dc, wxRect rc, DatasetArray &datasets)
int GetVertPosition ()
int GetHorizPosition ()
void SetTextFont (wxFont font)
wxFont GetTextFont ()
wxSize GetExtent (wxDC &dc, DatasetArray &datasets)

Static Public Attributes

static const wxCoord labelsSpacing


Detailed Description

Legend. Performs legend drawing.

Constructor & Destructor Documentation

Legend::Legend ( int  vertPosition,
int  horizPosition,
AreaDraw background = new FillAreaDraw(),
int  symbolTextGap = 2,
int  margin = 2 
)

Constructs new legend.

Parameters:
vertPosition vertical position, can be wxTOP, wxCENTER, wxBOTTOM
horizPosition horizontal position, can be wxLEFT, wxCENTER, wxRIGHT
background background for legend area
symbolTextGap distance between symbol and text
margin legend margin


Member Function Documentation

void Legend::Draw ( wxDC &  dc,
wxRect  rc,
DatasetArray &  datasets 
)

Draw legend.

Parameters:
dc device context
rc rectangle where to draw
datasets datasets array

wxSize Legend::GetExtent ( wxDC &  dc,
DatasetArray &  datasets 
)

Returns size of area to draw legend.

Parameters:
dc device context
datasetes dataset array
Returns:
size needed for legend area

int Legend::GetHorizPosition (  )  [inline]

Returns legend horizontal position.

Returns:
legend horizontal position

wxFont Legend::GetTextFont (  )  [inline]

Returns font to draw legend labels.

Returns:
font to draw legend labels

int Legend::GetVertPosition (  )  [inline]

Returns legend vertical position.

Returns:
legend vertical position

void Legend::SetTextFont ( wxFont  font  )  [inline]

Sets font to draw legend labels.

Parameters:
font new font to draw legend labels


Member Data Documentation

const wxCoord Legend::labelsSpacing [static]

Space between serie labels.


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

Generated on Mon Feb 15 21:32:26 2010 for wxFreeChart by  doxygen 1.5.8