DatePlot Class Reference

#include <DatePlot.h>

Collaboration diagram for DatePlot:

Collaboration graph
[legend]

List of all members.

Public Slots

void draw ()
void drawRefresh ()
void setPixelspace (int)
void setBackgroundColor (QColor)
void setBorderColor (QColor)
void setPlotFont (QFont)
void setIndex (int)
void setInterval (BarData::BarLength)

Public Member Functions

 DatePlot (QWidget *)
 ~DatePlot ()
void clear ()
void setData (BarData *)
QMemArray< int > & getXGrid ()

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *)

Private Slots

void getDailyDate ()
void getWeeklyDate ()
void getMonthlyDate ()
void getMinuteDate ()

Private Attributes

QFont plotFont
QPixmap buffer
int pixelspace
int scaleWidth
int startX
int startIndex
BarData::BarLength interval
QColor backgroundColor
QColor borderColor
BarDatadata
QPtrList< TickItemdateList
QMemArray< int > xGrid


Detailed Description

Definition at line 42 of file DatePlot.h.


Constructor & Destructor Documentation

DatePlot::DatePlot ( QWidget *  w  ) 

Definition at line 31 of file DatePlot.cpp.

References backgroundColor, borderColor, BarData::DailyBar, data, DATE_HEIGHT, dateList, interval, pixelspace, plotFont, SCALE_WIDTH, scaleWidth, startIndex, and startX.

DatePlot::~DatePlot (  ) 

Definition at line 55 of file DatePlot.cpp.


Member Function Documentation

void DatePlot::clear (  ) 

Definition at line 59 of file DatePlot.cpp.

References data, and dateList.

Referenced by Plot::clear().

void DatePlot::setData ( BarData l  ) 

Definition at line 65 of file DatePlot.cpp.

References BarData::count(), data, dateList, getDailyDate(), getMinuteDate(), getMonthlyDate(), getWeeklyDate(), interval, BarData::Minute1, BarData::Minute10, BarData::Minute15, BarData::Minute30, BarData::Minute5, BarData::Minute60, BarData::MonthlyBar, and BarData::WeeklyBar.

Referenced by Plot::setData().

QMemArray< int > & DatePlot::getXGrid (  ) 

Definition at line 390 of file DatePlot.cpp.

References xGrid.

Referenced by Plot::setData().

void DatePlot::draw (  )  [slot]

Definition at line 95 of file DatePlot.cpp.

References backgroundColor, borderColor, buffer, dateList, TickItem::flag, paintEvent(), pixelspace, plotFont, scaleWidth, startIndex, startX, TickItem::text, and TickItem::tick.

Referenced by Plot::draw(), resizeEvent(), and Plot::setDateFlag().

void DatePlot::drawRefresh (  )  [slot]

Definition at line 154 of file DatePlot.cpp.

References paintEvent().

Referenced by Plot::drawRefresh().

void DatePlot::setPixelspace ( int  d  )  [slot]

Definition at line 185 of file DatePlot.cpp.

References pixelspace.

Referenced by Plot::setPixelspace().

void DatePlot::setBackgroundColor ( QColor  d  )  [slot]

Definition at line 170 of file DatePlot.cpp.

References backgroundColor.

Referenced by Plot::setBackgroundColor().

void DatePlot::setBorderColor ( QColor  d  )  [slot]

Definition at line 175 of file DatePlot.cpp.

References borderColor.

Referenced by Plot::setBorderColor().

void DatePlot::setPlotFont ( QFont  d  )  [slot]

Definition at line 180 of file DatePlot.cpp.

References plotFont.

Referenced by Plot::setPlotFont().

void DatePlot::setIndex ( int  d  )  [slot]

Definition at line 190 of file DatePlot.cpp.

References startIndex.

Referenced by Plot::setIndex().

void DatePlot::setInterval ( BarData::BarLength  d  )  [slot]

Definition at line 195 of file DatePlot.cpp.

References interval.

Referenced by Plot::setInterval().

void DatePlot::paintEvent ( QPaintEvent *   )  [protected, virtual]

Definition at line 159 of file DatePlot.cpp.

References buffer.

Referenced by draw(), and drawRefresh().

void DatePlot::resizeEvent ( QResizeEvent *  event  )  [protected, virtual]

Definition at line 164 of file DatePlot.cpp.

References buffer, and draw().

void DatePlot::getDailyDate (  )  [private, slot]

Definition at line 265 of file DatePlot.cpp.

References BarData::count(), data, dateList, TickItem::flag, BarData::getDate(), TickItem::text, TickItem::tick, and xGrid.

Referenced by setData().

void DatePlot::getWeeklyDate (  )  [private, slot]

Definition at line 314 of file DatePlot.cpp.

References BarData::count(), data, dateList, TickItem::flag, BarData::getDate(), TickItem::text, TickItem::tick, and xGrid.

Referenced by setData().

void DatePlot::getMonthlyDate (  )  [private, slot]

Definition at line 358 of file DatePlot.cpp.

References BarData::count(), data, dateList, TickItem::flag, BarData::getDate(), TickItem::text, TickItem::tick, and xGrid.

Referenced by setData().

void DatePlot::getMinuteDate (  )  [private, slot]

Definition at line 200 of file DatePlot.cpp.

References BarData::count(), data, dateList, TickItem::flag, BarData::getDate(), interval, BarData::Minute1, BarData::Minute30, TickItem::text, TickItem::tick, and xGrid.

Referenced by setData().


Member Data Documentation

QFont DatePlot::plotFont [private]

Definition at line 74 of file DatePlot.h.

Referenced by DatePlot(), draw(), and setPlotFont().

QPixmap DatePlot::buffer [private]

Definition at line 75 of file DatePlot.h.

Referenced by draw(), paintEvent(), and resizeEvent().

int DatePlot::pixelspace [private]

Definition at line 76 of file DatePlot.h.

Referenced by DatePlot(), draw(), and setPixelspace().

int DatePlot::scaleWidth [private]

Definition at line 77 of file DatePlot.h.

Referenced by DatePlot(), and draw().

int DatePlot::startX [private]

Definition at line 78 of file DatePlot.h.

Referenced by DatePlot(), and draw().

int DatePlot::startIndex [private]

Definition at line 79 of file DatePlot.h.

Referenced by DatePlot(), draw(), and setIndex().

BarData::BarLength DatePlot::interval [private]

Definition at line 80 of file DatePlot.h.

Referenced by DatePlot(), getMinuteDate(), setData(), and setInterval().

QColor DatePlot::backgroundColor [private]

Definition at line 81 of file DatePlot.h.

Referenced by DatePlot(), draw(), and setBackgroundColor().

QColor DatePlot::borderColor [private]

Definition at line 82 of file DatePlot.h.

Referenced by DatePlot(), draw(), and setBorderColor().

BarData* DatePlot::data [private]

Definition at line 83 of file DatePlot.h.

Referenced by clear(), DatePlot(), getDailyDate(), getMinuteDate(), getMonthlyDate(), getWeeklyDate(), and setData().

QPtrList<TickItem> DatePlot::dateList [private]

Definition at line 84 of file DatePlot.h.

Referenced by clear(), DatePlot(), draw(), getDailyDate(), getMinuteDate(), getMonthlyDate(), getWeeklyDate(), and setData().

QMemArray<int> DatePlot::xGrid [private]

Definition at line 85 of file DatePlot.h.

Referenced by getDailyDate(), getMinuteDate(), getMonthlyDate(), getWeeklyDate(), and getXGrid().


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