|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.lib.conceptmap.view.NodeView
org.problets.lib.conceptmap.view.navigable.NavigableNodeView
public class NavigableNodeView
Derived from NodeView. Adds to the functionality of a nodeview in order to handle a navigable node view.
Field Summary |
---|
Fields inherited from class org.problets.lib.conceptmap.view.NodeView |
---|
NO_NODE_PRESSED, NO_NODE_RELEASED, NON_ROOT_PRESSED, NON_ROOT_RELEASED, ROOT_PRESSED, ROOT_RELEASED |
Constructor Summary | |
---|---|
NavigableNodeView(NodeView parent,
NodeModel nodeModel)
Creates a NavigableNodeView object using the parent node view and the corresponding model as arguments. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Processes the actionPerformed event. |
javax.swing.JPopupMenu |
createPopupMenu(java.util.Vector menuItemNames)
Creates the popup menu for this node. |
MousePressedInfo |
handleMousePressed(java.awt.event.MouseEvent e)
Handles the mousePressed event. |
int |
handleMouseReleased(int xCoord,
int yCoord)
Handles the mouseReleased event. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class org.problets.lib.conceptmap.view.NodeView |
---|
draw, findNode, getChildLink, getChildNode, getCurrentXEnd, getCurrentXStart, getCurrentYEnd, getCurrentYStart, getIndex, getIsExpanded, getIsHighlighted, getIsVisible, getMaxHeightOfDescendants, getMaxWidthOfDescendants, getMouseoverVisible, getMouseoverVisibleNode, getNodeModel, getNumChildren, getParent, handleMouseClicked, handleMouseDragged, handleMouseMoved, isOnChildLinks, isOnNode, layout, paintMouseover, setCoord, setExpandedUpToDepth, setIsHighlighted, setIsHighlightedAncestorPath, setIsLastPressed, setIsVisible, setLinksVisible, setMouseoverVisible, setParent, setTextFont |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NavigableNodeView(NodeView parent, NodeModel nodeModel)
parent
- this node view's parentnodeModel
- the model representing this node viewMethod Detail |
---|
public javax.swing.JPopupMenu createPopupMenu(java.util.Vector menuItemNames)
menuItemsVector
- the vector with the names of the items in the
popup menu
public MousePressedInfo handleMousePressed(java.awt.event.MouseEvent e)
handleMousePressed
in class NodeView
e
- the mousePressed event
public int handleMouseReleased(int xCoord, int yCoord)
handleMouseReleased
in class NodeView
xCoord
- the x-coordinate of the mouse eventyCoord
- the y-coordinate of the mouse event
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
evt
- the action eventpublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |