| prefuse.action.GroupAction prefuse.action.filter.GraphDistanceFilter
GraphDistanceFilter | public class GraphDistanceFilter extends GroupAction (Code) | | Filter Action that sets visible all items within a specified graph distance
from a set of focus items; all other items will be set to invisible.
author: jeffrey heer |
Constructor Summary | |
public | GraphDistanceFilter(String group) Create a new GraphDistanceFilter that processes the given data group
and uses a graph distance of 1. | public | GraphDistanceFilter(String group, int distance) Create a new GraphDistanceFilter that processes the given data group
and uses the given graph distance. | public | GraphDistanceFilter(String group, String sources, int distance) Create a new GraphDistanceFilter that processes the given data group
and uses the given graph distance.
Parameters: group - the group to process. |
Method Summary | |
public int | getDistance() Return the graph distance threshold used by this filter. | public String | getSources() Get the name of the group to use as source nodes for measuring
graph distance. | public void | run(double frac) | public void | setDistance(int distance) Set the graph distance threshold used by this filter. | public void | setSources(String sources) Set the name of the group to use as source nodes for measuring
graph distance. |
m_distance | protected int m_distance(Code) | | |
GraphDistanceFilter | public GraphDistanceFilter(String group)(Code) | | Create a new GraphDistanceFilter that processes the given data group
and uses a graph distance of 1. By default, the
prefuse.Visualization.FOCUS_ITEMS group will be used as the
source nodes from which to measure the distance.
Parameters: group - the group to process. This group should resolve to aGraph instance, otherwise exceptions will be thrown when thisAction is run. |
GraphDistanceFilter | public GraphDistanceFilter(String group, int distance)(Code) | | Create a new GraphDistanceFilter that processes the given data group
and uses the given graph distance. By default, the
prefuse.Visualization.FOCUS_ITEMS group will be used as the
source nodes from which to measure the distance.
Parameters: group - the group to process. This group should resolve to aGraph instance, otherwise exceptions will be thrown when thisAction is run. Parameters: distance - the graph distance within which items will bevisible. |
GraphDistanceFilter | public GraphDistanceFilter(String group, String sources, int distance)(Code) | | Create a new GraphDistanceFilter that processes the given data group
and uses the given graph distance.
Parameters: group - the group to process. This group should resolve to aGraph instance, otherwise exceptions will be thrown when thisAction is run. Parameters: sources - the group to use as source nodes for measuringgraph distance. Parameters: distance - the graph distance within which items will bevisible. |
getDistance | public int getDistance()(Code) | | Return the graph distance threshold used by this filter.
the graph distance threshold |
getSources | public String getSources()(Code) | | Get the name of the group to use as source nodes for measuring
graph distance. These form the roots from which the graph distance
is measured.
the source data group |
setDistance | public void setDistance(int distance)(Code) | | Set the graph distance threshold used by this filter.
Parameters: distance - the graph distance threshold to use |
setSources | public void setSources(String sources)(Code) | | Set the name of the group to use as source nodes for measuring
graph distance. These form the roots from which the graph distance
is measured.
Parameters: sources - the source data group |
|
|