public interface CyGroupSettingsManager
CyGroup
s, 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>
Modifier and Type | Interface and Description |
---|---|
static class |
CyGroupSettingsManager.DoubleClickAction
The
DoubleClickAciton enum 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 class |
CyGroupSettingsManager.GroupViewType
The
CyGroupSettingsManager.GroupViewType enum provides the options for
how to visualize a group. |
Modifier and Type | Method and Description |
---|---|
Aggregator<?> |
getAggregator(CyGroup group,
CyColumn column)
Get the
Aggregator that will be used to aggregate the values
in a specific CyColumn for all of the nodes in a group onto
the corresponding column in the group node. |
Aggregator<?> |
getDefaultAggregation(Class<?> ovClass)
Get the default
Aggregator for a specific column type
as expressed as a java Class . |
Aggregator<?> |
getDefaultAggregation(CyGroup group,
Class<?> ovClass)
Get the
Aggregator for a specific column type
as expressed as a java Class that will be used in
the specified CyGroup . |
Aggregator<?> |
getDefaultListAggregation(Class<?> ovClass)
Get the default
Aggregator for a specific List column type
as expressed as a java Class . |
Aggregator<?> |
getDefaultListAggregation(CyGroup group,
Class<?> ovClass)
Get the
Aggregator for a specific List column type
as expressed as a java Class that will be used in
the specified CyGroup . |
CyGroupSettingsManager.DoubleClickAction |
getDoubleClickAction()
Get the current default
CyGroupSettingsManager.DoubleClickAction . |
CyGroupSettingsManager.DoubleClickAction |
getDoubleClickAction(CyGroup group)
Get the current
CyGroupSettingsManager.DoubleClickAction for the specified group. |
boolean |
getEnableAttributeAggregation()
Get the setting for whether or not we're enabling aggregation.
|
boolean |
getEnableAttributeAggregation(CyGroup group)
Get the setting for whether or not we're enabling aggregation for
a specific group.
|
CyGroupSettingsManager.GroupViewType |
getGroupViewType()
Get the current default
CyGroupSettingsManager.GroupViewType . |
CyGroupSettingsManager.GroupViewType |
getGroupViewType(CyGroup group)
Get the current
CyGroupSettingsManager.GroupViewType for the specified group. |
Aggregator<?> |
getOverrideAggregation(CyColumn column)
Get the override aggregation setting for a column (if any).
|
Aggregator<?> |
getOverrideAggregation(CyGroup group,
CyColumn column)
Get the override aggregation setting for a column (if any) in a specific group.
|
boolean |
getUseNestedNetworks()
Get the default setting for whether or not to create a nested
network view on collapsed nodes.
|
boolean |
getUseNestedNetworks(CyGroup group)
Get the setting for whether or not to create a nested
network view on collapsed nodes for the specified
CyGroup . |
void |
setDefaultAggregation(Class<?> ovClass,
Aggregator<?> agg)
Set the default
Aggregator for a specific column type
as expressed as a java Class . |
void |
setDefaultAggregation(CyGroup group,
Class<?> ovClass,
Aggregator<?> agg)
Set the
Aggregator for a specific column type
as expressed as a java Class that will be used in
the specified CyGroup . |
void |
setDefaultAggregation(CyGroup group,
Class<?> ovClass,
String aggName)
Set the
Aggregator for a specific column type
as expressed as a java Class that will be used in
the specified CyGroup . |
void |
setDefaultListAggregation(Class<?> ovClass,
Aggregator<?> agg)
Set the default
Aggregator for a specific List column type
as expressed as a java Class . |
void |
setDefaultListAggregation(CyGroup group,
Class<?> ovClass,
Aggregator<?> agg)
Set the
Aggregator for a specific List column type
as expressed as a java Class that will be used in
the specified CyGroup . |
void |
setDefaultListAggregation(CyGroup group,
Class<?> ovClass,
String aggName)
Set the
Aggregator for a specific List column type
as expressed as a java Class that will be used in
the specified CyGroup . |
void |
setDoubleClickAction(CyGroup group,
CyGroupSettingsManager.DoubleClickAction action)
Set the
CyGroupSettingsManager.DoubleClickAction for a specific group. |
void |
setDoubleClickAction(CyGroupSettingsManager.DoubleClickAction action)
Set the current default
CyGroupSettingsManager.DoubleClickAction . |
void |
setEnableAttributeAggregation(boolean aggregate)
Set the setting for whether or not we're aggregating values from
member nodes onto the group node.
|
void |
setEnableAttributeAggregation(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.
|
void |
setGroupViewType(CyGroup group,
CyGroupSettingsManager.GroupViewType action)
Set the
CyGroupSettingsManager.GroupViewType for a specific group. |
void |
setGroupViewType(CyGroupSettingsManager.GroupViewType action)
Set the current default
CyGroupSettingsManager.GroupViewType . |
void |
setOverrideAggregation(CyColumn column,
Aggregator<?> agg)
set the override aggregation setting for a column (if any).
|
void |
setOverrideAggregation(CyGroup group,
CyColumn column,
Aggregator<?> agg)
set the override aggregation setting for a column in a group (if any).
|
void |
setUseNestedNetworks(boolean useNestedNetwork)
Set the default setting for whether or not to create a nested
network view on collapsed nodes.
|
void |
setUseNestedNetworks(CyGroup group,
boolean useNestedNetwork)
Set the setting for whether or not to create a nested
network view on collapsed nodes for a specific
CyGroup . |
CyGroupSettingsManager.DoubleClickAction getDoubleClickAction()
CyGroupSettingsManager.DoubleClickAction
. All new groups
will utilize this action unless changed by a group-specific set.CyGroupSettingsManager.DoubleClickAction getDoubleClickAction(CyGroup group)
CyGroupSettingsManager.DoubleClickAction
for the specified group.group
- the CyGroup
we're interested invoid setDoubleClickAction(CyGroupSettingsManager.DoubleClickAction action)
CyGroupSettingsManager.DoubleClickAction
. All new groups
will utilize this action unless changed by a group-specific set.action
- the CyGroupSettingsManager.DoubleClickAction
to set as the defaultvoid setDoubleClickAction(CyGroup group, CyGroupSettingsManager.DoubleClickAction action)
CyGroupSettingsManager.DoubleClickAction
for a specific group.group
- the CyGroup
to set the value foraction
- the CyGroupSettingsManager.DoubleClickAction
to set for this groupCyGroupSettingsManager.GroupViewType getGroupViewType()
CyGroupSettingsManager.GroupViewType
. All new groups
will utilize this visualization unless overridden by a specific
settingCyGroupSettingsManager.GroupViewType
to setCyGroupSettingsManager.GroupViewType getGroupViewType(CyGroup group)
CyGroupSettingsManager.GroupViewType
for the specified group.group
- the CyGroup
we're interested inCyGroupSettingsManager.GroupViewType
for this groupvoid setGroupViewType(CyGroupSettingsManager.GroupViewType action)
CyGroupSettingsManager.GroupViewType
. All new groups
will utilize this visualization unless changed by a group-specific set.action
- the CyGroupSettingsManager.GroupViewType
to set as the defaultvoid setGroupViewType(CyGroup group, CyGroupSettingsManager.GroupViewType action)
CyGroupSettingsManager.GroupViewType
for a specific group.group
- the CyGroup
to set the value foraction
- the CyGroupSettingsManager.GroupViewType
to set for this groupboolean getUseNestedNetworks()
boolean getUseNestedNetworks(CyGroup group)
CyGroup
.group
- the CyGroup
we want to get the nested network setting forvoid setUseNestedNetworks(boolean useNestedNetwork)
useNestedNetwork
- if true, create a nested network
image by defaultvoid setUseNestedNetworks(CyGroup group, boolean useNestedNetwork)
CyGroup
.group
- the CyGroup
we're settinguseNestedNetwork
- if true, create a nested network
image by defaultboolean getEnableAttributeAggregation()
boolean getEnableAttributeAggregation(CyGroup group)
group
- the CyGroup
we're interested invoid setEnableAttributeAggregation(boolean aggregate)
aggregate
- true if we are aggregating values, false otherwisevoid setEnableAttributeAggregation(CyGroup group, boolean aggregate)
group
- the CyGroup
we're interested inaggregate
- true if we are aggregating values, false otherwiseAggregator<?> getAggregator(CyGroup group, CyColumn column)
Aggregator
that will be used to aggregate the values
in a specific CyColumn
for all of the nodes in a group onto
the corresponding column in the group node. The returned
Aggregator
will take into account any overrides and
group-specific settings, if there are any.group
- the CyGroup
to get the Aggregator
forcolumn
- the CyColumn
to get the Aggregator
forAggregator
for the specific group and columnAggregator<?> getDefaultAggregation(Class<?> ovClass)
Aggregator
for a specific column type
as expressed as a java Class
.ovClass
- the Class
to get the default Aggregator
forAggregator
for the specific Class
Aggregator<?> getDefaultListAggregation(Class<?> ovClass)
Aggregator
for a specific List column type
as expressed as a java Class
.ovClass
- the List Class
to get the default Aggregator
forAggregator
for the specific Class
void setDefaultAggregation(Class<?> ovClass, Aggregator<?> agg)
Aggregator
for a specific column type
as expressed as a java Class
.ovClass
- the Class
to get the default Aggregator
foragg
- the Aggregator
to set as the default for the specified Class
void setDefaultListAggregation(Class<?> ovClass, Aggregator<?> agg)
Aggregator
for a specific List column type
as expressed as a java Class
.ovClass
- the List Class
to set the default Aggregator
foragg
- the Aggregator
to set as the default for the specified Class
Aggregator<?> getDefaultAggregation(CyGroup group, Class<?> ovClass)
Aggregator
for a specific column type
as expressed as a java Class
that will be used in
the specified CyGroup
.group
- the CyGroup
to get the Aggregator
forovClass
- the Class
to get the Aggregator
forAggregator
for the specific Class
in this CyGroup
Aggregator<?> getDefaultListAggregation(CyGroup group, Class<?> ovClass)
Aggregator
for a specific List column type
as expressed as a java Class
that will be used in
the specified CyGroup
.group
- the CyGroup
to get the Aggregator
forovClass
- the Class
to get the Aggregator
forAggregator
for the specific Class
in this CyGroup
void setDefaultAggregation(CyGroup group, Class<?> ovClass, Aggregator<?> agg)
Aggregator
for a specific column type
as expressed as a java Class
that will be used in
the specified CyGroup
.group
- the CyGroup
to get the Aggregator
forovClass
- the Class
to get the Aggregator
foragg
- the Aggregator
to use for the specified Class
in this CyGroup
void setDefaultListAggregation(CyGroup group, Class<?> ovClass, Aggregator<?> agg)
Aggregator
for a specific List column type
as expressed as a java Class
that will be used in
the specified CyGroup
.group
- the CyGroup
to set the Aggregator
toovClass
- the Class
to set the Aggregator
toagg
- the Aggregator
to use for the specified Class
in this CyGroup
void setDefaultAggregation(CyGroup group, Class<?> ovClass, String aggName)
Aggregator
for a specific column type
as expressed as a java Class
that will be used in
the specified CyGroup
.group
- the CyGroup
to set the Aggregator
toovClass
- the Class
to et the Aggregator
toaggName
- the name of the Aggregator
to use for the specified Class
in this CyGroup
void setDefaultListAggregation(CyGroup group, Class<?> ovClass, String aggName)
Aggregator
for a specific List column type
as expressed as a java Class
that will be used in
the specified CyGroup
.group
- the CyGroup
to set the Aggregator
toovClass
- the List Class
to set the Aggregator
toaggName
- the name of the Aggregator
to use for the specified Class
in this CyGroup
Aggregator<?> getOverrideAggregation(CyColumn column)
Aggregator
used for a specific column. For example
we may not want to aggregate the "shared node" column.column
- the CyColumn
to get the default override forAggregator
for this column, or null if no override was setvoid setOverrideAggregation(CyColumn column, Aggregator<?> agg)
Aggregator
used for a specific column. For example
we may not want to aggregate the "shared node" column.column
- the CyColumn
to set the default override foragg
- the Aggregator
for this columnAggregator<?> getOverrideAggregation(CyGroup group, CyColumn column)
Aggregator
used for a specific column. For example
we may not want to aggregate the "shared node" column.group
- the CyGroup
to get the Aggregator
forcolumn
- the CyColumn
to get the override forAggregator
for this column in this group, or null if no override was setvoid setOverrideAggregation(CyGroup group, CyColumn column, Aggregator<?> agg)
Aggregator
used for a specific column. For example
we may not want to aggregate the "shared node" column.group
- the CyGroup
to set the Aggregator
forcolumn
- the CyColumn
to set the default override foragg
- the Aggregator
for this column in this groupCopyright 2011-2015 Cytoscape Consortium. All rights reserved.