26 #include <tulip/Color.h> 
   27 #include <tulip/Observable.h> 
   34 class CaptionGraphicsBackgroundItem;
 
   35 class CaptionGraphicsItem;
 
   41 class CaptionItem : 
public QObject, 
public Observable {
 
   54   CaptionItem(View *view);
 
   57   void create(CaptionType captionType);
 
   61   void generateColorCaption(CaptionType captionType);
 
   63   void generateSizeCaption(CaptionType captionType);
 
   65   CaptionGraphicsBackgroundItem *captionGraphicsItem();
 
   67   void treatEvents(
const std::vector<Event> &ev);
 
   75   void removeObservation(
bool);
 
   77   void applyNewFilter(
float begin,
float end);
 
   78   void selectedPropertyChanged(std::string propertyName);
 
   82   void clearObservers();
 
   84   void generateGradients(
const std::vector<std::pair <double,Color> > &metricToColorFiltered, QGradient &activeGradient, QGradient &hideGradient);
 
   88   CaptionType _captionType;
 
   89   CaptionGraphicsItem *_captionGraphicsItem;
 
   92   DoubleProperty *_metricProperty;
 
   93   ColorProperty *_colorProperty;
 
   94   SizeProperty *_sizeProperty;
 
   95   ColorProperty *_backupColorProperty;
 
   96   ColorProperty *_backupBorderColorProperty;
 
  101 #endif // CAPTIONITEM_H