fi.paatti.research.paattiapplication.views.eventview.tools
Class ContextMenu.MenuItem
java.lang.Object
fi.paatti.research.paattiapplication.views.eventview.tools.Clickable
fi.paatti.research.paattiapplication.views.eventview.tools.ContextMenu.MenuItem
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- ContextMenu
public class ContextMenu.MenuItem
- extends Clickable
- implements Serializable
MenuItem is a clickable that contains event tree tool enums used in
controlling the tool states and the types of nodes to be added to the
tree (if any).
- See Also:
- Serialized Form
-
-
| Fields inherited from class fi.paatti.research.paattiapplication.views.eventview.tools.Clickable |
height, width, x, y |
| Methods inherited from class fi.paatti.research.paattiapplication.views.eventview.tools.Clickable |
contains |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getNodeMode
public EventTool.NODE_MODES getNodeMode()
- Returns the node mode set to the menu item.
- Returns:
- node mode (tree tool state)
getNodeType
public NodeFactory.NODE_TYPE getNodeType()
- Returns the node type set to the menu item.
- Returns:
- node type
paint
public void paint(Graphics g)
- Paints the menu item to the current graphics context.
- Specified by:
paint in class Clickable
- Parameters:
g - graphics context
Copyright © 2012. All Rights Reserved.