|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsf.groups.GroupManager
public class GroupManager
This is just a container class to provide convenient access to the group methods.
Constructor Summary | |
---|---|
GroupManager()
|
Method Summary | |
---|---|
static CyNode |
copyGroup(CyNode group,
CyNetwork newNetwork)
This method copies a group from one network to another. |
static CyNode |
createGroup(CyNetwork network,
CyNetwork child_network)
This method creates a group when given two networks: the current network and the new network that will be "contained" within the group. |
static CyNode |
createGroup(CyNetwork network,
CyNetwork child_network,
GroupAttributesHandler att_handler,
GroupModel model)
This method creates a group when given two networks: the current network and the new network that will be "contained" within the group. |
static List |
getAllGroupNodes(CyNode member)
This method returns the list of groups (as represented by CyNodes) that this CyNode is a member of (reguardless of which network). |
static CyNetwork |
getCyNetwork(CyNode group_node)
This method returns the CyNetwork this group is part of. |
static GroupAttributesHandler |
getGroupAttributesHandler(CyNode group_node)
This method returns the current attributes handler for this group. |
static CyNetwork |
getGroupMembers(CyNode group_node)
This method returns the list of members that are contained within this group. |
static GroupModel |
getGroupModel(CyNode group_node)
This method returns the current model for this group. |
static List |
getGroupNodes(CyNetwork network,
CyNode member)
This method returns the list of groups (as represented by CyNodes) that this CyNode is a member of. |
static List |
getSubGroups(CyNode group_node)
This method returns a List of the groups contained within this group |
static boolean |
isGrouped(CyNode group_node)
Test to see if a group node is in the "group" or "ungrouped" state. |
static void |
regroupGroup(CyNode group_node,
boolean create_multiple_edges,
boolean create_relationship_edges)
This method will "regroup" the group, that is, it will present the nodes in an "grouped" state. |
static void |
removeGroup(CyNode group_node)
This method will remove a group -- essentially a permanent "ungroup". |
static void |
setGroupAttributesHandler(CyNode group_node,
GroupAttributesHandler handler)
This method allows the caller to explicitly set the attributes handler used with this group. |
static void |
setGroupModel(CyNode group_node,
GroupModel model)
This method allows the caller to explicitly set the abstraction model used to represent the group. |
static void |
ungroupGroup(CyNode group_node,
boolean recursive)
This method will "ungroup" the group, that is, it will present the nodes in an "ungrouped" state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupManager()
Method Detail |
---|
public static CyNode createGroup(CyNetwork network, CyNetwork child_network, GroupAttributesHandler att_handler, GroupModel model)
network
- the CyNetwork that will contain the resulting group nodechild_network
- the CyNetwork that contains the nodes to be groupedatt_handler
- the group attributes handlermodel
- the grouping abstraction modeler
public static CyNode createGroup(CyNetwork network, CyNetwork child_network)
network
- the CyNetwork that will contain the resulting group nodechild_network
- the CyNetwork that contains the nodes to be grouped
public static CyNode copyGroup(CyNode group, CyNetwork newNetwork)
group
- the CyNode that represents the group to be copiednewNetwork
- the CyNetwork that will contain the new group
public static void ungroupGroup(CyNode group_node, boolean recursive)
group_node
- the CyNode that 'contains' this grouprecursive
- if this is 'true', all groups contained within this group will be ungroupedpublic static void regroupGroup(CyNode group_node, boolean create_multiple_edges, boolean create_relationship_edges)
group_node
- the CyNode that 'contains' this groupcreate_multiple_edges
- if the grouping action results in the "hiding" of the
internal edges, then setting this to true
will cause the external edges
will be created with one external edge for every internal edge that connects to
an external node. Otherwise, only one edge will be created between the group node
and any externally connected node.create_relationship_edges
- if the grouping action results in the "hiding" of the
internal edges, then setting this to true
will cause the creations of
edges that represent the relationship between this group and possible children.
This provides a mechanism to node that an ungrouped node from a different group is
also a member of this group.public static void removeGroup(CyNode group_node)
group_node
- the CyNode representing the group.public static void setGroupModel(CyNode group_node, GroupModel model)
group_node
- The CyNode that represents the groupmodel
- The GroupModel to use with this grouppublic static GroupModel getGroupModel(CyNode group_node)
group_node
- The CyNode that represents the group
public static void setGroupAttributesHandler(CyNode group_node, GroupAttributesHandler handler)
group_node
- The CyNode that represents the grouphandler
- The GroupAttributesHandler to use with this grouppublic static GroupAttributesHandler getGroupAttributesHandler(CyNode group_node)
group_node
- The CyNode that represents the group
public static List getGroupNodes(CyNetwork network, CyNode member)
network
- limit the search to this CyNetwork.member
- the CyNode whose membership we are looking for
public static List getAllGroupNodes(CyNode member)
member
- the CyNode whose membership we are looking for
public static List getSubGroups(CyNode group_node)
group_node
- the CyNode representing the group
public static CyNetwork getGroupMembers(CyNode group_node)
group_node
- the group CyNode whose members we want
public static CyNetwork getCyNetwork(CyNode group_node)
group_node
- the group CyNode whose CyNetwork we want
public static boolean isGrouped(CyNode group_node)
group_node
- the group CyNode whose state we want to check.
true
if the group is in the 'grouped' state.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |