|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectEdgeData
public class EdgeData
The data that can be stored in the edge of a dominance graph -- namely, a name and an edge 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 | |
|---|---|
EdgeData(EdgeType type,
String name,
JDomGraph parent)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addMenuItem(String id,
String label)
Adds a menu item to the popup target's menu. |
String |
getDesc()
|
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()
|
EdgeType |
getType()
|
String |
toString()
|
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EdgeData(EdgeType type,
String name,
JDomGraph parent)
type - name - | Method Detail |
|---|
public String getName()
public EdgeType getType()
getType in interface IEdgeData<EdgeType>public String getDesc()
public String toString()
toString in class Objectpublic String getMenuLabel()
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 | ||||||||