Package org.cytoscape.group
Interface CyGroupSettingsManager
public interface CyGroupSettingsManager
The CyGroupSettingsManager is responsible for providing an interface
to all of the possible settings controlling
CyGroups, including
the default settings and group specific settings. This includes
both view settings as well as the various aggregation settings.Module: group-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>group-api</artifactId>
</dependency>Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumTheDoubleClickAcitonenum provides the options for what to do when the user double-clicks on either a group node or a node that's a member of a group.static enumTheCyGroupSettingsManager.GroupViewTypeenum provides the options for how to visualize a group. -
Method Summary
Modifier and TypeMethodDescriptionAggregator<?>getAggregator(CyGroup group, CyColumn column) Get theAggregatorthat will be used to aggregate the values in a specificCyColumnfor all of the nodes in a group onto the corresponding column in the group node.Aggregator<?>getDefaultAggregation(Class<?> ovClass) Get the defaultAggregatorfor a specific column type as expressed as a javaClass.Aggregator<?>getDefaultAggregation(CyGroup group, Class<?> ovClass) Get theAggregatorfor a specific column type as expressed as a javaClassthat will be used in the specifiedCyGroup.Aggregator<?>getDefaultListAggregation(Class<?> ovClass) Get the defaultAggregatorfor a specific List column type as expressed as a javaClass.Aggregator<?>getDefaultListAggregation(CyGroup group, Class<?> ovClass) Get theAggregatorfor a specific List column type as expressed as a javaClassthat will be used in the specifiedCyGroup.Get the current defaultCyGroupSettingsManager.DoubleClickAction.getDoubleClickAction(CyGroup group) Get the currentCyGroupSettingsManager.DoubleClickActionfor the specified group.booleanGet the setting for whether or not we're enabling aggregation.booleanGet the setting for whether or not we're enabling aggregation for a specific group.Get the current defaultCyGroupSettingsManager.GroupViewType.getGroupViewType(CyGroup group) Get the currentCyGroupSettingsManager.GroupViewTypefor the specified group.Aggregator<?>getOverrideAggregation(CyGroup group, CyColumn column) Get the override aggregation setting for a column (if any) in a specific group.Aggregator<?>getOverrideAggregation(CyColumn column) Get the override aggregation setting for a column (if any).booleanGet the default setting for whether or not to create a nested network view on collapsed nodes.booleangetUseNestedNetworks(CyGroup group) Get the setting for whether or not to create a nested network view on collapsed nodes for the specifiedCyGroup.voidsetDefaultAggregation(Class<?> ovClass, Aggregator<?> agg) Set the defaultAggregatorfor a specific column type as expressed as a javaClass.voidsetDefaultAggregation(CyGroup group, Class<?> ovClass, String aggName) Set theAggregatorfor a specific column type as expressed as a javaClassthat will be used in the specifiedCyGroup.voidsetDefaultAggregation(CyGroup group, Class<?> ovClass, Aggregator<?> agg) Set theAggregatorfor a specific column type as expressed as a javaClassthat will be used in the specifiedCyGroup.voidsetDefaultListAggregation(Class<?> ovClass, Aggregator<?> agg) Set the defaultAggregatorfor a specific List column type as expressed as a javaClass.voidsetDefaultListAggregation(CyGroup group, Class<?> ovClass, String aggName) Set theAggregatorfor a specific List column type as expressed as a javaClassthat will be used in the specifiedCyGroup.voidsetDefaultListAggregation(CyGroup group, Class<?> ovClass, Aggregator<?> agg) Set theAggregatorfor a specific List column type as expressed as a javaClassthat will be used in the specifiedCyGroup.voidsetDoubleClickAction(CyGroup group, CyGroupSettingsManager.DoubleClickAction action) Set theCyGroupSettingsManager.DoubleClickActionfor a specific group.voidSet the current defaultCyGroupSettingsManager.DoubleClickAction.voidsetEnableAttributeAggregation(boolean aggregate) Set the setting for whether or not we're aggregating values from member nodes onto the group node.voidsetEnableAttributeAggregation(CyGroup group, boolean aggregate) Set the setting for whether or not we're aggregating values for member nodes onto the group node for a specific group.voidsetGroupViewType(CyGroup group, CyGroupSettingsManager.GroupViewType action) Set theCyGroupSettingsManager.GroupViewTypefor a specific group.voidSet the current defaultCyGroupSettingsManager.GroupViewType.voidsetOverrideAggregation(CyGroup group, CyColumn column, Aggregator<?> agg) set the override aggregation setting for a column in a group (if any).voidsetOverrideAggregation(CyColumn column, Aggregator<?> agg) set the override aggregation setting for a column (if any).voidsetUseNestedNetworks(boolean useNestedNetwork) Set the default setting for whether or not to create a nested network view on collapsed nodes.voidsetUseNestedNetworks(CyGroup group, boolean useNestedNetwork) Set the setting for whether or not to create a nested network view on collapsed nodes for a specificCyGroup.
-
Method Details
-
getDoubleClickAction
CyGroupSettingsManager.DoubleClickAction getDoubleClickAction()Get the current defaultCyGroupSettingsManager.DoubleClickAction. All new groups will utilize this action unless changed by a group-specific set.- Returns:
- the current default DoubleClickAction
-
getDoubleClickAction
Get the currentCyGroupSettingsManager.DoubleClickActionfor the specified group.- Parameters:
group- theCyGroupwe're interested in- Returns:
- the current DoubleClickAction for this group
-
setDoubleClickAction
Set the current defaultCyGroupSettingsManager.DoubleClickAction. All new groups will utilize this action unless changed by a group-specific set.- Parameters:
action- theCyGroupSettingsManager.DoubleClickActionto set as the default
-
setDoubleClickAction
Set theCyGroupSettingsManager.DoubleClickActionfor a specific group.- Parameters:
group- theCyGroupto set the value foraction- theCyGroupSettingsManager.DoubleClickActionto set for this group
-
getGroupViewType
CyGroupSettingsManager.GroupViewType getGroupViewType()Get the current defaultCyGroupSettingsManager.GroupViewType. All new groups will utilize this visualization unless overridden by a specific setting- Returns:
- the current default
CyGroupSettingsManager.GroupViewTypeto set
-
getGroupViewType
Get the currentCyGroupSettingsManager.GroupViewTypefor the specified group.- Parameters:
group- theCyGroupwe're interested in- Returns:
- the current
CyGroupSettingsManager.GroupViewTypefor this group
-
setGroupViewType
Set the current defaultCyGroupSettingsManager.GroupViewType. All new groups will utilize this visualization unless changed by a group-specific set.- Parameters:
action- theCyGroupSettingsManager.GroupViewTypeto set as the default
-
setGroupViewType
Set theCyGroupSettingsManager.GroupViewTypefor a specific group.- Parameters:
group- theCyGroupto set the value foraction- theCyGroupSettingsManager.GroupViewTypeto set for this group
-
getUseNestedNetworks
boolean getUseNestedNetworks()Get the default setting for whether or not to create a nested network view on collapsed nodes.- Returns:
- use nested network image on collapsed nodes if true
-
getUseNestedNetworks
Get the setting for whether or not to create a nested network view on collapsed nodes for the specifiedCyGroup.- Parameters:
group- theCyGroupwe want to get the nested network setting for- Returns:
- use nested network image on collapsed nodes if true
-
setUseNestedNetworks
void setUseNestedNetworks(boolean useNestedNetwork) Set the default setting for whether or not to create a nested network view on collapsed nodes.- Parameters:
useNestedNetwork- if true, create a nested network image by default
-
setUseNestedNetworks
Set the setting for whether or not to create a nested network view on collapsed nodes for a specificCyGroup.- Parameters:
group- theCyGroupwe're settinguseNestedNetwork- if true, create a nested network image by default
-
getEnableAttributeAggregation
boolean getEnableAttributeAggregation()Get the setting for whether or not we're enabling aggregation. If the return value is true, then the values in the member nodes will be aggregated onto the corresponding column in the group node.- Returns:
- true if we are aggregating values, false otherwise
-
getEnableAttributeAggregation
Get the setting for whether or not we're enabling aggregation for a specific group. If the return value is true, then the values in the member nodes will be aggregated onto the corresponding column in the group node.- Parameters:
group- theCyGroupwe're interested in- Returns:
- true if we are aggregating values, false otherwise
-
setEnableAttributeAggregation
void setEnableAttributeAggregation(boolean aggregate) Set the setting for whether or not we're aggregating values from member nodes onto the group node.- Parameters:
aggregate- true if we are aggregating values, false otherwise
-
setEnableAttributeAggregation
Set the setting for whether or not we're aggregating values for member nodes onto the group node for a specific group.- Parameters:
group- theCyGroupwe're interested inaggregate- true if we are aggregating values, false otherwise
-
getAggregator
Get theAggregatorthat will be used to aggregate the values in a specificCyColumnfor all of the nodes in a group onto the corresponding column in the group node. The returnedAggregatorwill take into account any overrides and group-specific settings, if there are any.- Parameters:
group- theCyGroupto get theAggregatorforcolumn- theCyColumnto get theAggregatorfor- Returns:
- the
Aggregatorfor the specific group and column
-
getDefaultAggregation
Get the defaultAggregatorfor a specific column type as expressed as a javaClass.- Parameters:
ovClass- theClassto get the defaultAggregatorfor- Returns:
- the default
Aggregatorfor the specificClass
-
getDefaultListAggregation
Get the defaultAggregatorfor a specific List column type as expressed as a javaClass.- Parameters:
ovClass- the ListClassto get the defaultAggregatorfor- Returns:
- the default
Aggregatorfor the specificClass
-
setDefaultAggregation
Set the defaultAggregatorfor a specific column type as expressed as a javaClass.- Parameters:
ovClass- theClassto get the defaultAggregatorforagg- theAggregatorto set as the default for the specifiedClass
-
setDefaultListAggregation
Set the defaultAggregatorfor a specific List column type as expressed as a javaClass.- Parameters:
ovClass- the ListClassto set the defaultAggregatorforagg- theAggregatorto set as the default for the specifiedClass
-
getDefaultAggregation
Get theAggregatorfor a specific column type as expressed as a javaClassthat will be used in the specifiedCyGroup.- Parameters:
group- theCyGroupto get theAggregatorforovClass- theClassto get theAggregatorfor- Returns:
- the
Aggregatorfor the specificClassin thisCyGroup
-
getDefaultListAggregation
Get theAggregatorfor a specific List column type as expressed as a javaClassthat will be used in the specifiedCyGroup.- Parameters:
group- theCyGroupto get theAggregatorforovClass- theClassto get theAggregatorfor- Returns:
- the
Aggregatorfor the specificClassin thisCyGroup
-
setDefaultAggregation
Set theAggregatorfor a specific column type as expressed as a javaClassthat will be used in the specifiedCyGroup.- Parameters:
group- theCyGroupto get theAggregatorforovClass- theClassto get theAggregatorforagg- theAggregatorto use for the specifiedClassin thisCyGroup
-
setDefaultListAggregation
Set theAggregatorfor a specific List column type as expressed as a javaClassthat will be used in the specifiedCyGroup.- Parameters:
group- theCyGroupto set theAggregatortoovClass- theClassto set theAggregatortoagg- theAggregatorto use for the specifiedClassin thisCyGroup
-
setDefaultAggregation
Set theAggregatorfor a specific column type as expressed as a javaClassthat will be used in the specifiedCyGroup.- Parameters:
group- theCyGroupto set theAggregatortoovClass- theClassto et theAggregatortoaggName- the name of theAggregatorto use for the specifiedClassin thisCyGroup
-
setDefaultListAggregation
Set theAggregatorfor a specific List column type as expressed as a javaClassthat will be used in the specifiedCyGroup.- Parameters:
group- theCyGroupto set theAggregatortoovClass- the ListClassto set theAggregatortoaggName- the name of theAggregatorto use for the specifiedClassin thisCyGroup
-
getOverrideAggregation
Get the override aggregation setting for a column (if any). Override aggregation provides the ability to override theAggregatorused for a specific column. For example we may not want to aggregate the "shared node" column.- Parameters:
column- theCyColumnto get the default override for- Returns:
- the
Aggregatorfor this column, or null if no override was set
-
setOverrideAggregation
set the override aggregation setting for a column (if any). Override aggregation provides the ability to override theAggregatorused for a specific column. For example we may not want to aggregate the "shared node" column.- Parameters:
column- theCyColumnto set the default override foragg- theAggregatorfor this column
-
getOverrideAggregation
Get the override aggregation setting for a column (if any) in a specific group. Override aggregation provides the ability to override theAggregatorused for a specific column. For example we may not want to aggregate the "shared node" column.- Parameters:
group- theCyGroupto get theAggregatorforcolumn- theCyColumnto get the override for- Returns:
- the
Aggregatorfor this column in this group, or null if no override was set
-
setOverrideAggregation
set the override aggregation setting for a column in a group (if any). Override aggregation provides the ability to override theAggregatorused for a specific column. For example we may not want to aggregate the "shared node" column.- Parameters:
group- theCyGroupto set theAggregatorforcolumn- theCyColumnto set the default override foragg- theAggregatorfor this column in this group
-