bpp-phyl  2.2.0
bpp::LabelCollapsedNodesTreeDrawingListener Class Reference

A TreeDrawingListener implementation that label the collapsed nodes. More...

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

+ Inheritance diagram for bpp::LabelCollapsedNodesTreeDrawingListener:
+ Collaboration diagram for bpp::LabelCollapsedNodesTreeDrawingListener:

Public Member Functions

 LabelCollapsedNodesTreeDrawingListener (bool autonomous=false)
 
LabelCollapsedNodesTreeDrawingListenerclone () 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 label the collapsed nodes.

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

Definition at line 286 of file TreeDrawingListener.h.

Constructor & Destructor Documentation

◆ LabelCollapsedNodesTreeDrawingListener()

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

Definition at line 290 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()

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

◆ 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: