bpp-phyl  2.2.0
bpp::LabelInnerNodesTreeDrawingListener Class Reference

A TreeDrawingListener implementation that write the names of inner nodes. More...

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

+ Inheritance diagram for bpp::LabelInnerNodesTreeDrawingListener:
+ Collaboration diagram for bpp::LabelInnerNodesTreeDrawingListener:

Public Member Functions

 LabelInnerNodesTreeDrawingListener (bool autonomous=false)
 
LabelInnerNodesTreeDrawingListenerclone () const
 
void afterDrawNode (const DrawNodeEvent &event)
 
void beforeDrawTree (const DrawTreeEvent &event)
 
void afterDrawTree (const DrawTreeEvent &event)
 
void beforeDrawNode (const DrawNodeEvent &event)
 
void beforeDrawBranch (const DrawBranchEvent &event)
 
void afterDrawBranch (const DrawBranchEvent &event)
 
bool isAutonomous () const
 Tells if the listener is autonomous. If so, it will never be hard-copied or deleted. More...
 
bool isEnabled () const
 
void enable (bool tf)
 

Detailed Description

A TreeDrawingListener implementation that write the names of inner nodes.

Collapsed nodes are not labelled.

This listener works with TreeDrawing classes, but is more efficient when used with a class that fires DrawINodeEvent events.

Definition at line 264 of file TreeDrawingListener.h.

Constructor & Destructor Documentation

◆ LabelInnerNodesTreeDrawingListener()

bpp::LabelInnerNodesTreeDrawingListener::LabelInnerNodesTreeDrawingListener ( bool  autonomous = false)
inline

Definition at line 269 of file TreeDrawingListener.h.

Referenced by clone().

Member Function Documentation

◆ afterDrawBranch()

void bpp::TreeDrawingListenerAdapter::afterDrawBranch ( const DrawBranchEvent event)
inlinevirtualinherited

◆ afterDrawNode()

◆ afterDrawTree()

void bpp::TreeDrawingListenerAdapter::afterDrawTree ( const DrawTreeEvent event)
inlinevirtualinherited

Implements bpp::TreeDrawingListener.

Definition at line 99 of file TreeDrawingListener.h.

◆ beforeDrawBranch()

void bpp::TreeDrawingListenerAdapter::beforeDrawBranch ( const DrawBranchEvent event)
inlinevirtualinherited

Implements bpp::TreeDrawingListener.

Definition at line 102 of file TreeDrawingListener.h.

◆ beforeDrawNode()

void bpp::TreeDrawingListenerAdapter::beforeDrawNode ( const DrawNodeEvent event)
inlinevirtualinherited

Implements bpp::TreeDrawingListener.

Definition at line 100 of file TreeDrawingListener.h.

◆ beforeDrawTree()

void bpp::TreeDrawingListenerAdapter::beforeDrawTree ( const DrawTreeEvent event)
inlinevirtualinherited

Implements bpp::TreeDrawingListener.

Definition at line 98 of file TreeDrawingListener.h.

◆ clone()

LabelInnerNodesTreeDrawingListener* bpp::LabelInnerNodesTreeDrawingListener::clone ( ) const
inlinevirtual

Implements bpp::TreeDrawingListener.

Definition at line 272 of file TreeDrawingListener.h.

References LabelInnerNodesTreeDrawingListener().

◆ enable()

void bpp::TreeDrawingListenerAdapter::enable ( bool  tf)
inlinevirtualinherited

◆ isAutonomous()

bool bpp::TreeDrawingListenerAdapter::isAutonomous ( ) const
inlinevirtualinherited

Tells if the listener is autonomous. If so, it will never be hard-copied or deleted.

Implements bpp::TreeDrawingListener.

Definition at line 104 of file TreeDrawingListener.h.

References bpp::TreeDrawingListenerAdapter::autonomous_.

◆ isEnabled()

bool bpp::TreeDrawingListenerAdapter::isEnabled ( ) const
inlinevirtualinherited

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