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

void javamorph::CPopupMenuDecorator::mouseClicked ( MouseEvent  e  )  [inline]

The user wants to see the pop up menu.

Definition at line 147 of file CPopupMenuDecorator.java.

References m_add_mesh_points, m_add_polygon_points, m_edit_mesh, m_edit_polygon, m_off_mesh_points, m_off_polygon_points, m_sub_mesh_points, m_sub_polygon_points, parent, and popup_menu.

                                          {
        if(MouseEvent.BUTTON3 == e.getButton())
        {
            switch(CConfig.edit_state){
                case CConfig.EDIT_MESH_ADD : 
                    m_edit_mesh.setSelected(true);
                    m_add_mesh_points.setSelected(true);
                    m_off_polygon_points.setSelected(true);
                    break;
                case CConfig.EDIT_MESH_SUB : 
                    m_edit_mesh.setSelected(true);
                    m_sub_mesh_points.setSelected(true);
                    m_off_polygon_points.setSelected(true);
                    break;
                case CConfig.EDIT_MESH_OFF : 
                    m_edit_mesh.setSelected(true);
                    m_off_mesh_points.setSelected(true);
                    m_off_polygon_points.setSelected(true);
                    break;
                case CConfig.EDIT_POLYGON_ADD : 
                    m_edit_polygon.setSelected(true);
                    m_add_polygon_points.setSelected(true);
                    m_off_mesh_points.setSelected(true);
                    break;
                case CConfig.EDIT_POLYGON_SUB : 
                    m_edit_polygon.setSelected(true);
                    m_sub_polygon_points.setSelected(true);
                    m_off_mesh_points.setSelected(true);
                    break;
                case CConfig.EDIT_POLYGON_OFF :
                    m_edit_polygon.setSelected(true);
                    m_off_polygon_points.setSelected(true);
                    m_off_mesh_points.setSelected(true);
                    break;
            }
            popup_menu.show(parent, e.getX(), e.getY());
        }
    }


Generated by  Doxygen 1.6.0   Back to index