|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavamorph.CPopupMenuDecorator
public class CPopupMenuDecorator
Field Summary | |
---|---|
static Color |
BUTTON
One of the colors of the mouse symbol (buttons). |
static Color |
CABLE
One of the colors of the mouse symbol. |
static Color |
FRAME
One of the colors of the mouse symbol (border line). |
private ButtonGroup |
g_mesh_buttons
Group of the mesh sub menu radio buttons. |
private ButtonGroup |
g_polygon_buttons
|
private ButtonGroup |
g_radio_buttons
Radio button group a) edit mesh b) edit polygon. |
private JMenuItem |
m_about
Show about box command. |
private JRadioButtonMenuItem |
m_add_mesh_points
Add mesh points command. |
private JRadioButtonMenuItem |
m_add_polygon_points
Add polygon points command. |
private JMenuItem |
m_delete_mesh
Delete whole mesh command. |
private JMenuItem |
m_delete_polygon
Delete the whole polygon command. |
private JMenuItem |
m_edit_config
Edit configuration command. |
private JRadioButtonMenuItem |
m_edit_mesh
Edit mesh command. |
private JRadioButtonMenuItem |
m_edit_polygon
Edit polygon command. |
private JMenuItem |
m_morph
Morph command. |
private JRadioButtonMenuItem |
m_off_mesh_points
Move mesh points command. |
private JRadioButtonMenuItem |
m_off_polygon_points
Move polygon points command. |
private JRadioButtonMenuItem |
m_sub_mesh_points
Remove mesh points command. |
private JRadioButtonMenuItem |
m_sub_polygon_points
Remove polygon points command. |
private JMenu |
mesh_menu
Sub menu, edit medh points. |
static Color |
MOUSE
One of the colors of the mouse symbol (area). |
private CFrame |
parent
Parent JComponent to draw the mouse symbol to. |
private JMenu |
polygon_menu
Sub menu, edit polygon points. |
private JPopupMenu |
popup_menu
Pop up menu object with application control commands. |
Constructor Summary | |
---|---|
CPopupMenuDecorator(CFrame parent)
Constructor. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
The user has entered a menu command by clicking the menu item. |
void |
mouseClicked(MouseEvent e)
The user wants to see the pop up menu. |
void |
mouseEntered(MouseEvent e)
Due to the event API. |
void |
mouseExited(MouseEvent e)
Due to the event API. |
void |
mousePressed(MouseEvent e)
Due to the event API. |
void |
mouseReleased(MouseEvent e)
Due to the event API. |
void |
paint(Graphics g)
Draw the mouse symbol to the graphics context of the parent JComponent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Color MOUSE
public static final Color BUTTON
public static final Color FRAME
public static final Color CABLE
private CFrame parent
private JPopupMenu popup_menu
private JMenu mesh_menu
private JRadioButtonMenuItem m_add_mesh_points
private JRadioButtonMenuItem m_sub_mesh_points
private JRadioButtonMenuItem m_off_mesh_points
private JMenuItem m_delete_mesh
private JMenu polygon_menu
private JRadioButtonMenuItem m_add_polygon_points
private JRadioButtonMenuItem m_sub_polygon_points
private JRadioButtonMenuItem m_off_polygon_points
private JMenuItem m_delete_polygon
private ButtonGroup g_radio_buttons
private ButtonGroup g_mesh_buttons
private ButtonGroup g_polygon_buttons
private JMenuItem m_morph
private JRadioButtonMenuItem m_edit_mesh
private JRadioButtonMenuItem m_edit_polygon
private JMenuItem m_edit_config
private JMenuItem m_about
Constructor Detail |
---|
public CPopupMenuDecorator(CFrame parent)
parent
- The parent JComponent to draw the mouse symbol to.Method Detail |
---|
public void paint(Graphics g)
paint
in interface IDecorator
g
- Graphics context of the JComponent.public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |