Version: 0.6.0
TextElementContainer Class Reference

#include <title.h>

Public Member Functions

 TextElementContainer (const wxString &title)
 
 TextElementContainer (const TextElementContainer &orig)
 
TextElementContaineroperator= (const TextElementContainer &title)
 
void AddElement (TextElement element)
 
bool IsEmpty () const
 
void Draw (wxDC &dc, wxRect rc)
 
wxSize CalculateExtent (wxDC &dc)
 

Detailed Description

Represents a chart title. Divides the title line into three boxes which could be independently filled with content. When drawing the title, the text in the boxes is wrapped at word boundary.

Member Function Documentation

void TextElementContainer::AddElement ( TextElement  element)

Adds a TextElement to the TextElementContainer. Title takes ownership of the TextElement object.

Parameters
elementA new TextElement object which is added to the list of elements.
wxSize TextElementContainer::CalculateExtent ( wxDC &  dc)

Calculates the extent of the TextElementContainer.

Parameters
dcA wxDC drawing context.
rcThe rectangle of the drawing area
Returns
The dimension of the TextElementContainer.

Here is the call graph for this function:

Here is the caller graph for this function:

void TextElementContainer::Draw ( wxDC &  dc,
wxRect  rc 
)

Draws the TextElementContainer.

Parameters
dcThe wxDC drawing context used to draw the text.
rcThe rectangle of the drawing area.

Here is the call graph for this function:

Here is the caller graph for this function:

bool TextElementContainer::IsEmpty ( ) const

Checks whether the TextElementContainer is empty.

Returns
true if the title is empty, false otherwise.

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
  • /home/bishop/work/projects/nextgismanager/include/freechart/wx/title.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/title.cpp