17void NodesIdTreeDrawingListener::afterDrawNode(
const DrawNodeEvent& event)
20 Cursor cursor =
event.getCursor();
38 Cursor cursor =
event.getCursor();
54 Cursor cursor =
event.getCursor();
74 Cursor cursor =
event.getBranchCursor(0.5);
84 catch (std::bad_cast& e)
91 Cursor cursor =
event.getBranchCursor(0.5);
113 Cursor cursor =
event.getCursor();
123 catch (std::bad_cast& e)
131 Cursor cursor =
event.getCursor();
152 Cursor cursor =
event.getCursor();
160 catch (std::bad_cast& e)
167 Cursor cursor =
event.getCursor();
186 Cursor cursor =
event.getCursor();
195 catch (std::bad_cast& e)
202 Cursor cursor =
event.getCursor();
const TreeDrawingSettings * settings_
void afterDrawBranch(const DrawBranchEvent &event)
void afterDrawBranch(const DrawBranchEvent &event)
const TreeDrawingSettings * settings_
Data structure describing a plotting direction.
Event class used by TreeDrawing classes.
virtual int getNodeId() const
Event class that uses INode object (more efficient than relying on nodes id, but less generic).
const INode * getINode() const
Event class used by TreeDrawing classes.
virtual int getNodeId() const
virtual void setCurrentFont(const Font &font)=0
virtual void drawText(double x, double y, const std::string &text, short hpos=TEXT_HORIZONTAL_LEFT, short vpos=TEXT_VERTICAL_BOTTOM, double angle=0)=0
static short TEXT_HORIZONTAL_CENTER
static short TEXT_VERTICAL_CENTER
virtual const Font & getCurrentFont() const=0
static short TEXT_VERTICAL_BOTTOM
void afterDrawNode(const DrawNodeEvent &event)
void afterDrawNode(const DrawNodeEvent &event)
void afterDrawNode(const DrawNodeEvent &event)
const TreeDrawingSettings * settings_
virtual const NodeInfos & getInfos() const
virtual std::string getName() const
Get the name associated to this node, if there is one, otherwise throw a NodeException.
virtual bool hasBranchProperty(const std::string &name) const
virtual Clonable * getBranchProperty(const std::string &name)
virtual bool hasDistanceToFather() const
Tell is this node has a distance to the father.
virtual bool isLeaf() const
virtual bool hasName() const
Tell is this node has a name.
virtual double getDistanceToFather() const
Get the distance to the father node is there is one, otherwise throw a NodeException.
const TreeDrawingSettings * settings_
Basal interface for tree drawing classes.
virtual bool isNodeCollapsed(int nodeId) const =0
virtual const Tree & tree() const =0
virtual std::string getNodeName(int nodeId) const =0
virtual bool isLeaf(int nodeId) const =0
virtual Clonable * getBranchProperty(int nodeId, const std::string &name)=0
virtual bool hasDistanceToFather(int nodeId) const =0
virtual bool hasNodeName(int nodeId) const =0
virtual double getDistanceToFather(int nodeId) const =0
virtual bool hasBranchProperty(int nodeId, const std::string &name) const =0
std::string toString(T t)
Defines the basic types of data flow nodes.