if(m_DiagramType == CYCLEDIAGRAM)
m_Diagram = new CycleDiagram(this, getGui(), m_xFrame);
if(m_DiagramType == PYRAMIDDIAGRAM)
m_Diagram = new PyramidDiagram(this, getGui(), m_xFrame);
if(m_DiagramType == TARGETDIAGRAM)
m_Diagram = new TargetDiagram(this, getGui(), m_xFrame);
if(m_DiagramType == CONTINUOUSBLOCKPROCESS)
m_Diagram = new ContinuousBlockProcess(this, getGui(), m_xFrame);
if(m_DiagramType == STAGGEREDPROCESS)
m_Diagram = new StaggeredProcess(this, getGui(), m_xFrame);
if(m_DiagramType == BENDINGPROCESS)