if(m_DiagramType == PYRAMIDDIAGRAM)
m_Diagram = new PyramidDiagram(this, getGui(), m_xFrame);
if(m_DiagramType == CYCLEDIAGRAM)
m_Diagram = new CycleDiagram(this, getGui(), m_xFrame);
if(m_DiagramType == HORIZONTALORGANIGRAM)
m_Diagram = new HorizontalOrganizationDiagram(this, getGui(), m_xFrame);
if(m_DiagramType == TABLEHIERARCHYDIAGRAM)
m_Diagram = new TableHierarchyDiagram(this, getGui(), m_xFrame);
if(m_DiagramType == SIMPLEORGANIGRAM)
m_Diagram = new SimpleOrganizationDiagram(this, getGui(), m_xFrame);
}