bpp-phyl  2.2.0
bpp::BasicTreeDrawingDisplayControler Class Reference

Easy tune of tree drawings display, a basic implementation: More...

#include <Bpp/Phyl/Graphics/TreeDrawingDisplayControler.h>

+ Inheritance diagram for bpp::BasicTreeDrawingDisplayControler:
+ Collaboration diagram for bpp::BasicTreeDrawingDisplayControler:

Public Member Functions

 BasicTreeDrawingDisplayControler (const TreeDrawingSettings *settings) throw (NullPointerException)
 
void addListener (const std::string &propertyName, TreeDrawingListener *listener) throw (Exception)
 Add a listener to the controler. The controler then owns the object, and will copy or delete it when needed. More...
 
bool hasListenerFor (const std::string &propertyName) const
 
void enableListener (const std::string &propertyName, bool tf) throw (Exception)
 
bool isListenerEnabled (const std::string &propertyName) const throw (Exception)
 
void registerTreeDrawing (TreeDrawing *td) throw (Exception)
 

Static Public Attributes

static const std::string PROPERTY_NODE_IDS = "Node ids"
 
static const std::string PROPERTY_LEAF_NAMES = "Leaf names"
 
static const std::string PROPERTY_BRANCH_LENGTHS = "Branch lengths"
 
static const std::string PROPERTY_BOOTSTRAP_VALUES = "Bootstrap values"
 

Private Member Functions

 BasicTreeDrawingDisplayControler (const BasicTreeDrawingDisplayControler &)
 
BasicTreeDrawingDisplayControleroperator= (const BasicTreeDrawingDisplayControler &)
 

Private Attributes

const TreeDrawingSettingssettings_
 

Detailed Description

Easy tune of tree drawings display, a basic implementation:

This class maintains several "standard" drawing listener for:

  • Plotting node id,
  • Plotting leaves names,
  • Plotting branch lengths,
  • Plotting plotting bootstrap values.

This controler takes as an argument a TreeDrawingSettings object that is used by all listeners that require one.

Definition at line 149 of file TreeDrawingDisplayControler.h.

Constructor & Destructor Documentation

◆ BasicTreeDrawingDisplayControler() [1/2]

bpp::BasicTreeDrawingDisplayControler::BasicTreeDrawingDisplayControler ( const TreeDrawingSettings settings)
throw (NullPointerException
)
inline

◆ BasicTreeDrawingDisplayControler() [2/2]

bpp::BasicTreeDrawingDisplayControler::BasicTreeDrawingDisplayControler ( const BasicTreeDrawingDisplayControler )
inlineprivate

Definition at line 174 of file TreeDrawingDisplayControler.h.

Member Function Documentation

◆ addListener()

void TreeDrawingDisplayControler::addListener ( const std::string &  propertyName,
TreeDrawingListener listener 
)
throw (Exception
)
inherited

Add a listener to the controler. The controler then owns the object, and will copy or delete it when needed.

Definition at line 56 of file TreeDrawingDisplayControler.cpp.

Referenced by BasicTreeDrawingDisplayControler().

◆ enableListener()

void bpp::TreeDrawingDisplayControler::enableListener ( const std::string &  propertyName,
bool  tf 
)
throw (Exception
)
inlineinherited

◆ hasListenerFor()

bool bpp::TreeDrawingDisplayControler::hasListenerFor ( const std::string &  propertyName) const
inlineinherited

◆ isListenerEnabled()

bool bpp::TreeDrawingDisplayControler::isListenerEnabled ( const std::string &  propertyName) const
throw (Exception
)
inlineinherited

◆ operator=()

BasicTreeDrawingDisplayControler& bpp::BasicTreeDrawingDisplayControler::operator= ( const BasicTreeDrawingDisplayControler )
inlineprivate

Definition at line 175 of file TreeDrawingDisplayControler.h.

◆ registerTreeDrawing()

void bpp::TreeDrawingDisplayControler::registerTreeDrawing ( TreeDrawing td)
throw (Exception
)
inlineinherited

Member Data Documentation

◆ PROPERTY_BOOTSTRAP_VALUES

const string BasicTreeDrawingDisplayControler::PROPERTY_BOOTSTRAP_VALUES = "Bootstrap values"
static

Definition at line 156 of file TreeDrawingDisplayControler.h.

Referenced by BasicTreeDrawingDisplayControler().

◆ PROPERTY_BRANCH_LENGTHS

const string BasicTreeDrawingDisplayControler::PROPERTY_BRANCH_LENGTHS = "Branch lengths"
static

Definition at line 155 of file TreeDrawingDisplayControler.h.

Referenced by BasicTreeDrawingDisplayControler().

◆ PROPERTY_LEAF_NAMES

const string BasicTreeDrawingDisplayControler::PROPERTY_LEAF_NAMES = "Leaf names"
static

Definition at line 154 of file TreeDrawingDisplayControler.h.

Referenced by BasicTreeDrawingDisplayControler().

◆ PROPERTY_NODE_IDS

const string BasicTreeDrawingDisplayControler::PROPERTY_NODE_IDS = "Node ids"
static

Definition at line 153 of file TreeDrawingDisplayControler.h.

Referenced by BasicTreeDrawingDisplayControler().

◆ settings_

const TreeDrawingSettings* bpp::BasicTreeDrawingDisplayControler::settings_
private

Definition at line 159 of file TreeDrawingDisplayControler.h.

Referenced by BasicTreeDrawingDisplayControler().


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