|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectNodeData
public class NodeData
The data that can be stored in the node of a dominance graph -- namely, a name, a label, and a node type. In addition, objects of this class can serve as popup targets, i.e. they provide a menu item for a popup menu.
| Constructor Summary | |
|---|---|
NodeData(NodeType type,
String name,
JDomGraph parent)
New node data for an unlabelled node. |
|
NodeData(NodeType type,
String name,
String label,
JDomGraph parent)
New node data for a labelled node (with label). |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addMenuItem(String id,
String label)
Adds a menu item to the popup target's menu. |
String |
getDesc()
|
String |
getLabel()
|
JMenuItem |
getMenu()
Return the JMenu object that represents this popup target's submenu. |
String |
getMenuLabel()
Returns the label of the menu item for this popup target in a superordinate menu. |
String |
getName()
|
JDomGraph |
getParent()
|
String |
getToolTipText()
|
NodeType |
getType()
|
void |
setShowLabel(boolean b)
|
String |
toString()
|
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NodeData(NodeType type,
String name,
String label,
JDomGraph parent)
name - label - type -
public NodeData(NodeType type,
String name,
JDomGraph parent)
name - type - | Method Detail |
|---|
public String getMenuLabel()
public String getLabel()
public String getName()
public NodeType getType()
getType in interface INodeData<NodeType>public String getDesc()
public String toString()
toString in class Objectpublic void setShowLabel(boolean b)
public String getToolTipText()
getToolTipText in interface INodeData<NodeType>public JMenuItem getMenu()
public void addMenuItem(String id,
String label)
id - an identification for this menu itemlabel - the label that will be displayed for this menu item.public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic JDomGraph getParent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||