Logo Search packages:      
Sourcecode: javamorph version File versions  Download package

void javamorph::CPopupMenuDecorator::actionPerformed ( ActionEvent  e  )  [inline]

The user has entered a menu command by clicking the menu item.

Definition at line 196 of file CPopupMenuDecorator.java.

References javamorph::CFrame::getParent(), javamorph::CMain::initMesh(), javamorph::CFrame::initPolygon(), m_about, m_add_mesh_points, m_add_polygon_points, m_delete_mesh, m_delete_polygon, m_edit_config, m_edit_mesh, m_edit_polygon, m_morph, m_off_mesh_points, m_off_polygon_points, m_sub_mesh_points, m_sub_polygon_points, javamorph::CMain::morph(), parent, javamorph::CMain::showAboutDialog(), and javamorph::CMain::showConfigDialog().

                                              {
        if(m_morph == e.getSource()){
            File list[] = new File(CStrings.OUTPUTDIR).listFiles();
            for(File f: list)f.delete();
            parent.getParent().morph();
        }
        if(m_edit_mesh == e.getSource()){
            CConfig.edit_state = CConfig.EDIT_MESH_OFF;
        }
        if(m_edit_polygon == e.getSource()){
            CConfig.edit_state = CConfig.EDIT_POLYGON_OFF;
        }
        if(m_edit_config == e.getSource()){
            parent.getParent().showConfigDialog();
        }
        if(m_about == e.getSource()){
            parent.getParent().showAboutDialog();
        }
        
        if(m_add_mesh_points == e.getSource()){
            CConfig.edit_state = CConfig.EDIT_MESH_ADD;
        }
        if(m_sub_mesh_points == e.getSource()){
            CConfig.edit_state = CConfig.EDIT_MESH_SUB;
        }
        if(m_off_mesh_points == e.getSource()){
            CConfig.edit_state = CConfig.EDIT_MESH_OFF;
        }
        if(m_delete_mesh == e.getSource()){
            CConfig.edit_state = CConfig.EDIT_MESH_OFF;
            parent.getParent().initMesh();
        }
        
        if(m_add_polygon_points == e.getSource()){
            CConfig.edit_state = CConfig.EDIT_POLYGON_ADD;
        }
        if(m_sub_polygon_points == e.getSource()){
            CConfig.edit_state = CConfig.EDIT_POLYGON_SUB;
        }
        if(m_off_polygon_points == e.getSource()){
            CConfig.edit_state = CConfig.EDIT_POLYGON_OFF;
        }
        if(m_delete_polygon == e.getSource()){
            CConfig.edit_state = CConfig.EDIT_POLYGON_OFF;
            parent.initPolygon();
        }        
        parent.getParent().repaint();
    }


Generated by  Doxygen 1.6.0   Back to index