bpp-phyl  2.2.0
bpp::TreeDrawingListenerAdapter Class Referenceabstract

An empty implementation of the TreeDrawingListener interface. More...

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

+ Inheritance diagram for bpp::TreeDrawingListenerAdapter:
+ Collaboration diagram for bpp::TreeDrawingListenerAdapter:

Public Member Functions

 TreeDrawingListenerAdapter (bool autonomous)
 
void beforeDrawTree (const DrawTreeEvent &event)
 
void afterDrawTree (const DrawTreeEvent &event)
 
void beforeDrawNode (const DrawNodeEvent &event)
 
void afterDrawNode (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)
 
TreeDrawingListenerclone () const =0
 

Private Attributes

bool autonomous_
 
bool enabled_
 

Detailed Description

An empty implementation of the TreeDrawingListener interface.

Definition at line 87 of file TreeDrawingListener.h.

Constructor & Destructor Documentation

◆ TreeDrawingListenerAdapter()

bpp::TreeDrawingListenerAdapter::TreeDrawingListenerAdapter ( bool  autonomous)
inline

Definition at line 95 of file TreeDrawingListener.h.

Member Function Documentation

◆ afterDrawBranch()

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

◆ afterDrawNode()

void bpp::TreeDrawingListenerAdapter::afterDrawNode ( const DrawNodeEvent event)
inlinevirtual

◆ afterDrawTree()

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

Implements bpp::TreeDrawingListener.

Definition at line 99 of file TreeDrawingListener.h.

◆ beforeDrawBranch()

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

Implements bpp::TreeDrawingListener.

Definition at line 102 of file TreeDrawingListener.h.

◆ beforeDrawNode()

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

Implements bpp::TreeDrawingListener.

Definition at line 100 of file TreeDrawingListener.h.

◆ beforeDrawTree()

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

Implements bpp::TreeDrawingListener.

Definition at line 98 of file TreeDrawingListener.h.

◆ clone()

◆ enable()

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

Implements bpp::TreeDrawingListener.

Definition at line 106 of file TreeDrawingListener.h.

References enabled_.

◆ isAutonomous()

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

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 autonomous_.

◆ isEnabled()

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

Implements bpp::TreeDrawingListener.

Definition at line 105 of file TreeDrawingListener.h.

References enabled_.

Member Data Documentation

◆ autonomous_

bool bpp::TreeDrawingListenerAdapter::autonomous_
private

Definition at line 91 of file TreeDrawingListener.h.

Referenced by isAutonomous().

◆ enabled_

bool bpp::TreeDrawingListenerAdapter::enabled_
private

Definition at line 92 of file TreeDrawingListener.h.

Referenced by enable(), and isEnabled().


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