|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.isb.metanodes.actions.ActionFactory
public class ActionFactory
This class creates and returns AbstractActions that can be added to GUI elements for applying meta-node operations to a graph. Most of these actions have special requirements, so they can only be created using this factory to minimize users having to deal with implementation details.
Constructor Summary | |
---|---|
ActionFactory()
|
Method Summary | |
---|---|
static AbstractAction |
createCollapseSelectedNodesAction(boolean collapse_existent_parents,
boolean collapse_all,
boolean collapse_recursively,
boolean create_meta_relationship_edges,
String title)
Creates and returns an AbstractAction to collapse nodes that are selected in the current CyNetwork. |
static AbstractAction |
createUncollapseSelectedNodesAction(boolean recursive,
boolean temporary,
boolean newNetwork,
String title)
Creates and returns an AbstractAction that uncollapses selected meta-nodes in the current CyNetwork. |
static void |
setMetaNodeAttributesHandler(MetaNodeAttributesHandler handler)
Sets the default MetaNodeAttributesHandler that should be used to transfer node and edge attributes from children nodes and edges to meta-nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionFactory()
Method Detail |
---|
public static void setMetaNodeAttributesHandler(MetaNodeAttributesHandler handler)
MetaNodeAttributesHandler
- the handlerpublic static AbstractAction createCollapseSelectedNodesAction(boolean collapse_existent_parents, boolean collapse_all, boolean collapse_recursively, boolean create_meta_relationship_edges, String title)
collapse_existent_parents
- whether or not the existent parent meta-nodes of the selected nodes
should be collapsed instead of creating new meta-nodes for themcollapse_recursively
- if collapse_existent_parents is true, whether to find the top-level parents
of the selected nodes and collapse them, or just find the immediate parents and collapse themcreate_meta_relationship_edges
- whether or not "sharedMember" edges between meta-nodes and "childOf" edges
between meta-nodes and their children should be createdtitle
- the title of the action (displayed on buttons, menus, etc)
public static AbstractAction createUncollapseSelectedNodesAction(boolean recursive, boolean temporary, boolean newNetwork, String title)
recursive
- whether or not the selected meta-nodes should be uncollapsed
all the way down to their lowest level in the graphtemporary
- if false, the meta-nodes (parent nodes) will be permanently removed after they are uncollapsedtitle
- the title of the action (displayed on buttons, menus, etc).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |