Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

GtkStatsPianoRoll Class Reference

#include <gtkStatsPianoRoll.h>

Inheritance diagram for GtkStatsPianoRoll:

PStatPianoRoll PStatGraph List of all members.

Public Member Functions

 GtkStatsPianoRoll (GtkStatsMonitor *monitor, int thread_index, int xsize, int ysize)
void mark_dead ()
Gtk::Alignment * get_labels ()
Gdk_GC get_collector_gc (int collector_index)

Private Types

typedef pmap< int, Gdk_GC > GCs

Private Member Functions

virtual void begin_draw ()
virtual void draw_bar (int row, int from_x, int to_x)
virtual void end_draw ()
virtual void idle ()
virtual gint configure_event_impl (GdkEventConfigure *event)
virtual gint expose_event_impl (GdkEventExpose *event)
void pack_labels ()
void setup_white_gc ()

Private Attributes

Gdk_Pixmap _pixmap
Gdk_GC _white_gc
Gdk_GC _black_gc
Gdk_GC _dark_gc
Gdk_GC _light_gc
GCs _gcs
vector_int _y_positions
Gtk::Alignment * _label_align
Gtk::VBox * _label_box
bool _is_dead

Member Typedef Documentation

typedef pmap<int, Gdk_GC> GtkStatsPianoRoll::GCs [private]
 

Definition at line 77 of file gtkStatsPianoRoll.h.


Constructor & Destructor Documentation

GtkStatsPianoRoll::GtkStatsPianoRoll GtkStatsMonitor monitor,
int  thread_index,
int  xsize,
int  ysize
 

Definition at line 37 of file gtkStatsPianoRoll.cxx.

References _is_dead, _label_align, _label_box, PStatGraph::get_xsize(), PStatGraph::get_ysize(), NULL, pack_labels(), and request_initial_size().


Member Function Documentation

void GtkStatsPianoRoll::begin_draw  )  [private, virtual]
 

Reimplemented from PStatPianoRoll.

Definition at line 119 of file gtkStatsPianoRoll.cxx.

References _dark_gc, _light_gc, _pixmap, _white_gc, PStatGraph::get_guide_bar(), PStatPianoRoll::get_horizontal_scale(), PStatGraph::get_num_guide_bars(), PStatGraph::get_xsize(), PStatGraph::get_ysize(), and x.

gint GtkStatsPianoRoll::configure_event_impl GdkEventConfigure *  event  )  [private, virtual]
 

Definition at line 210 of file gtkStatsPianoRoll.cxx.

References _black_gc, _dark_gc, _light_gc, _pixmap, _white_gc, PStatPianoRoll::changed_size(), PStatGraph::get_xsize(), PStatGraph::get_ysize(), height, NULL, setup_white_gc(), and width.

void GtkStatsPianoRoll::draw_bar int  row,
int  from_x,
int  to_x
[private, virtual]
 

Reimplemented from PStatPianoRoll.

Definition at line 149 of file gtkStatsPianoRoll.cxx.

References _pixmap, _y_positions, get_collector_gc(), PStatGraph::get_label_collector(), height, row, and y.

void GtkStatsPianoRoll::end_draw  )  [private, virtual]
 

Reimplemented from PStatPianoRoll.

Definition at line 164 of file gtkStatsPianoRoll.cxx.

References _black_gc, _pixmap, PStatGraph::get_guide_bar(), PStatPianoRoll::get_horizontal_scale(), PStatGraph::get_num_guide_bars(), PStatGraph::get_xsize(), PStatGraph::get_ysize(), width, and x.

gint GtkStatsPianoRoll::expose_event_impl GdkEventExpose *  event  )  [private, virtual]
 

Definition at line 252 of file gtkStatsPianoRoll.cxx.

References _pixmap, and _white_gc.

Gdk_GC GtkStatsPianoRoll::get_collector_gc int  collector_index  ) 
 

Definition at line 89 of file gtkStatsPianoRoll.cxx.

References _gcs, _pixmap, PStatMonitor::get_collector_color(), PStatGraph::get_monitor(), and RGBColorf.

Referenced by draw_bar().

Gtk::Alignment * GtkStatsPianoRoll::get_labels  ) 
 

Definition at line 78 of file gtkStatsPianoRoll.cxx.

References _label_align.

Referenced by GtkStatsPianoWindow::layout_window().

void GtkStatsPianoRoll::idle  )  [private, virtual]
 

Reimplemented from PStatPianoRoll.

Definition at line 198 of file gtkStatsPianoRoll.cxx.

References pack_labels().

void GtkStatsPianoRoll::mark_dead  ) 
 

Definition at line 61 of file gtkStatsPianoRoll.cxx.

References _is_dead, PStatPianoRoll::force_redraw(), and setup_white_gc().

Referenced by GtkStatsPianoWindow::mark_dead().

void GtkStatsPianoRoll::pack_labels  )  [private]
 

Definition at line 267 of file gtkStatsPianoRoll.cxx.

References _label_align, _label_box, PStatGraph::_labels_changed, _y_positions, GtkStatsLabel::get_height(), PStatGraph::get_label_collector(), PStatGraph::get_monitor(), PStatGraph::get_num_labels(), and y.

Referenced by GtkStatsPianoRoll(), and idle().

void GtkStatsPianoRoll::setup_white_gc  )  [private]
 

Definition at line 307 of file gtkStatsPianoRoll.cxx.

References _white_gc.

Referenced by configure_event_impl(), and mark_dead().


Member Data Documentation

Gdk_GC GtkStatsPianoRoll::_black_gc [private]
 

Definition at line 72 of file gtkStatsPianoRoll.h.

Referenced by configure_event_impl(), and end_draw().

Gdk_GC GtkStatsPianoRoll::_dark_gc [private]
 

Definition at line 73 of file gtkStatsPianoRoll.h.

Referenced by begin_draw(), and configure_event_impl().

GCs GtkStatsPianoRoll::_gcs [private]
 

Definition at line 78 of file gtkStatsPianoRoll.h.

Referenced by get_collector_gc().

bool GtkStatsPianoRoll::_is_dead [private]
 

Definition at line 86 of file gtkStatsPianoRoll.h.

Referenced by GtkStatsPianoRoll(), and mark_dead().

Gtk::Alignment* GtkStatsPianoRoll::_label_align [private]
 

Definition at line 84 of file gtkStatsPianoRoll.h.

Referenced by get_labels(), GtkStatsPianoRoll(), and pack_labels().

Gtk::VBox* GtkStatsPianoRoll::_label_box [private]
 

Definition at line 85 of file gtkStatsPianoRoll.h.

Referenced by GtkStatsPianoRoll(), and pack_labels().

Gdk_GC GtkStatsPianoRoll::_light_gc [private]
 

Definition at line 74 of file gtkStatsPianoRoll.h.

Referenced by begin_draw(), and configure_event_impl().

Gdk_Pixmap GtkStatsPianoRoll::_pixmap [private]
 

Definition at line 66 of file gtkStatsPianoRoll.h.

Referenced by begin_draw(), configure_event_impl(), draw_bar(), end_draw(), expose_event_impl(), and get_collector_gc().

Gdk_GC GtkStatsPianoRoll::_white_gc [private]
 

Definition at line 71 of file gtkStatsPianoRoll.h.

Referenced by begin_draw(), configure_event_impl(), expose_event_impl(), and setup_white_gc().

vector_int GtkStatsPianoRoll::_y_positions [private]
 

Definition at line 82 of file gtkStatsPianoRoll.h.

Referenced by draw_bar(), and pack_labels().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:01:07 2003 for Panda-Tool by doxygen1.3